MGIS
Loading...
Searching...
No Matches
mgis::behaviour::MaterialFunctionManager< SpaceType > Struct Template Reference

a simple wrapper around the MaterialDataManager class More...

#include </home/runner/work/MFrontGenericInterfaceSupport/MFrontGenericInterfaceSupport/include/MGIS/Behaviour/MaterialFunctionManager.hxx>

Inheritance diagram for mgis::behaviour::MaterialFunctionManager< SpaceType >:
mgis::PreconditionsChecker< MaterialFunctionManager< SpaceType > > mgis::behaviour::MaterialDataManager

Public Member Functions

 MaterialFunctionManager (const std::shared_ptr< const SpaceType > &, const Behaviour &)
 constructor
 
template<bool doPreconditionsCheck>
 MaterialFunctionManager (const PreconditionsCheck< doPreconditionsCheck > &, const std::shared_ptr< const SpaceType > &, const Behaviour &)
 constructor
 
 MaterialFunctionManager (const std::shared_ptr< const SpaceType > &, const std::shared_ptr< const Behaviour > &)
 constructor
 
template<bool doPreconditionsCheck>
 MaterialFunctionManager (const PreconditionsCheck< doPreconditionsCheck > &, const std::shared_ptr< const SpaceType > &, const std::shared_ptr< const Behaviour > &)
 constructor
 
const SpaceType & getSpace () const noexcept
 return the quadrature space
 
std::shared_ptr< const SpaceType > getSpacePointer () const noexcept
 return the pointer to the quadrature space
 
mgis::function::SharedSpace< SpaceType > getSharedSpace () const noexcept
 return the pointer to the quadrature space
 
- Public Member Functions inherited from mgis::behaviour::MaterialDataManager
 MaterialDataManager (const Behaviour &, const size_type)
 main constructor
 
 MaterialDataManager (const Behaviour &, const size_type, const MaterialDataManagerInitializer &)
 main constructor
 
void setThreadSafe (const bool)
 set if the MaterialDataManager must take care of thread-safety. This flag is mostly used in members functions allocating memory.
 
void allocateArrayOfTangentOperatorBlocks ()
 allocate the memory associated with the tangent operator blocks if required.
 
void useExternalArrayOfTangentOperatorBlocks (std::span< real >)
 use an externally allocated memory to store the tangent operator blocks.
 
void releaseArrayOfTangentOperatorBlocks ()
 release the memory associated with the tangent operator blocks.
 
void allocateArrayOfSpeedOfSounds ()
 allocate the memory associated with the speed of sound if required.
 
void useExternalArrayOfSpeedOfSounds (std::span< real >)
 use an externally allocated memory to store the tangent operator blocks.
 
void releaseArrayOfSpeedOfSounds ()
 release the memory associated with the tangent operator blocks.
 
BehaviourIntegrationWorkSpacegetBehaviourIntegrationWorkSpace ()
 return a workspace associated with the given behaviour.
 
void releaseBehaviourIntegrationWorkspaces ()
 clear behaviour integration workspaces.
 
 ~MaterialDataManager ()
 destructor
 

Static Public Member Functions

static bool checkPreconditions (AbstractErrorHandler &, const std::shared_ptr< const SpaceType > &, const Behaviour &)
 check that the preconditions to build the view are met
 
static bool checkPreconditions (AbstractErrorHandler &, const std::shared_ptr< const SpaceType > &, const std::shared_ptr< const Behaviour > &)
 check that the preconditions to build the view are met
 

Additional Inherited Members

- Public Attributes inherited from mgis::behaviour::MaterialDataManager
MaterialStateManager s0
 state at the beginning of the time step
 
MaterialStateManager s1
 state at the end of the time step
 
std::span< realK
 view of the stiffness matrices, if required.
 
real rdt = 1
 proposed time step increment increase factor
 
std::span< realspeed_of_sound
 view on the speed of sound.
 
const size_type n
 number of integration points
 
const size_type K_stride
 the size of the stiffness matrix for one integration point (the size of K is K_stride times the number of integration points)
 
const Behaviourb
 underlying behaviour
 

Detailed Description

template<mgis::function::LinearElementSpaceConcept SpaceType>
struct mgis::behaviour::MaterialFunctionManager< SpaceType >

a simple wrapper around the MaterialDataManager class

Constructor & Destructor Documentation

◆ MaterialFunctionManager() [1/4]

mgis::behaviour::MaterialFunctionManager< SpaceType >::MaterialFunctionManager ( const std::shared_ptr< const SpaceType > &  s,
const Behaviour behaviour 
)

constructor

Parameters
[in]squadrature space.
[in]behaviourbehaviour.

◆ MaterialFunctionManager() [2/4]

template<bool doPreconditionsCheck>
mgis::behaviour::MaterialFunctionManager< SpaceType >::MaterialFunctionManager ( const PreconditionsCheck< doPreconditionsCheck > &  pcheck,
const std::shared_ptr< const SpaceType > &  s,
const Behaviour behaviour 
)

constructor

Parameters
[in]pcheckdo preconditions checks
[in]squadrature space.
[in]behaviourbehaviour.

◆ MaterialFunctionManager() [3/4]

mgis::behaviour::MaterialFunctionManager< SpaceType >::MaterialFunctionManager ( const std::shared_ptr< const SpaceType > &  s,
const std::shared_ptr< const Behaviour > &  behaviour 
)

constructor

Parameters
[in]squadrature space.
[in]behaviourbehaviour.

◆ MaterialFunctionManager() [4/4]

template<bool doPreconditionsCheck>
mgis::behaviour::MaterialFunctionManager< SpaceType >::MaterialFunctionManager ( const PreconditionsCheck< doPreconditionsCheck > &  pcheck,
const std::shared_ptr< const SpaceType > &  s,
const std::shared_ptr< const Behaviour > &  behaviour 
)

constructor

Parameters
[in]pcheckdo preconditions checks
[in]squadrature space.
[in]behaviourbehaviour.

Member Function Documentation

◆ checkPreconditions() [1/2]

bool mgis::behaviour::MaterialFunctionManager< SpaceType >::checkPreconditions ( AbstractErrorHandler eh,
const std::shared_ptr< const SpaceType > &  s,
const Behaviour  
)
static

check that the preconditions to build the view are met

Parameters
[in]eherror handler.
[in]squadrature space
[in]behaviourbehaviour.

◆ checkPreconditions() [2/2]

bool mgis::behaviour::MaterialFunctionManager< SpaceType >::checkPreconditions ( AbstractErrorHandler eh,
const std::shared_ptr< const SpaceType > &  s,
const std::shared_ptr< const Behaviour > &  behaviour 
)
static

check that the preconditions to build the view are met

Parameters
[in]eherror handler.
[in]squadrature space
[in]behaviourbehaviour.

The documentation for this struct was generated from the following files: