LCOV - code coverage report
Current view: top level - include/userobjects - AbaqusUExternalDB.h (source / functions) Hit Total Coverage
Test: idaholab/moose solid_mechanics: f45d79 Lines: 3 3 100.0 %
Date: 2025-07-25 05:00:39 Functions: 3 3 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : //* This file is part of the MOOSE framework
       2             : //* https://mooseframework.inl.gov
       3             : //*
       4             : //* All rights reserved, see COPYRIGHT for full restrictions
       5             : //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
       6             : //*
       7             : //* Licensed under LGPL 2.1, please see LICENSE for details
       8             : //* https://www.gnu.org/licenses/lgpl-2.1.html
       9             : 
      10             : #pragma once
      11             : 
      12             : #include "ThreadedGeneralUserObject.h"
      13             : #include "DynamicLibraryLoader.h"
      14             : #include "AnalysisStepUOInterface.h"
      15             : class AnalysisStepUserObject;
      16             : 
      17             : /**
      18             :  * Coupling user object to use Abaqus UEXTERNALDB subroutines in MOOSE
      19             :  */
      20             : class AbaqusUExternalDB : public ThreadedGeneralUserObject, AnalysisStepUOInterface
      21             : {
      22             : public:
      23             :   static InputParameters validParams();
      24             : 
      25             :   AbaqusUExternalDB(const InputParameters & parameters);
      26             : 
      27         568 :   virtual void initialize() override {}
      28             :   virtual void initialSetup() override;
      29             :   /// the UEXTERNALDB subroutine gets called here
      30             :   virtual void execute() override;
      31         216 :   virtual void threadJoin(const UserObject &) override {}
      32         350 :   virtual void finalize() override {}
      33             : 
      34             : protected:
      35             :   /// function type for the external UEXTERNALDB function
      36             :   typedef void (*uexternaldb_t)(
      37             :       int * LOP, int * LRESTART, Real TIME[], Real * DTIME, int * KSTEP, int * KINC);
      38             : 
      39             :   // call the plugin with the supplied LOP code
      40             :   void callPlugin(int lop);
      41             : 
      42             :   // The plugin file name
      43             :   FileName _plugin;
      44             : 
      45             :   // The plugin library wrapper
      46             :   DynamicLibraryLoader _library;
      47             : 
      48             :   // Function pointer to the dynamically loaded function
      49             :   uexternaldb_t _uexternaldb;
      50             : 
      51             :   // Abaqus simulation step number to pass in
      52             :   int _aqSTEP;
      53             : 
      54             :   const ExecFlagType & _current_execute_on_flag;
      55             : 
      56             :   /// User object that determines the step number
      57             :   const AnalysisStepUserObject * _step_user_object;
      58             : };

Generated by: LCOV version 1.14