LCOV - code coverage report
Current view: top level - include/userobjects - AbaqusUExternalDB.h (source / functions) Hit Total Coverage
Test: idaholab/moose tensor_mechanics: d6b47a Lines: 3 3 100.0 %
Date: 2024-02-27 11:53:14 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://www.mooseframework.org
       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 "StepUOInterface.h"
      15             : class StepUserObject;
      16             : 
      17             : /**
      18             :  * Coupling user object to use Abaqus UEXTERNALDB subroutines in MOOSE
      19             :  */
      20             : class AbaqusUExternalDB : public ThreadedGeneralUserObject, StepUOInterface
      21             : {
      22             : public:
      23             :   static InputParameters validParams();
      24             : 
      25             :   AbaqusUExternalDB(const InputParameters & parameters);
      26             : 
      27         284 :   virtual void initialize() override {}
      28             :   virtual void initialSetup() override;
      29             :   /// the UEXTERNALDB subroutine gets called here
      30             :   virtual void execute() override;
      31         108 :   virtual void threadJoin(const UserObject &) override {}
      32         175 :   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 StepUserObject * _step_user_object;
      58             : };

Generated by: LCOV version 1.14