b2api
B2000++ API Reference Manual, VERSION 4.6
 
Loading...
Searching...
No Matches
b2000::TypedInitialCondition< T > Class Template Referenceabstract

#include "b2initial_condition.H"

Inheritance diagram for b2000::TypedInitialCondition< T >:
Collaboration diagram for b2000::TypedInitialCondition< T >:

Public Member Functions

virtual bool get_dynamic_initial_condition_value (b2linalg::Matrix< double, b2linalg::Mrectangle > &dof, double &time, int &stage, std::string &domain_state_id)=0
 
virtual bool get_static_initial_condition_value (b2linalg::Vector< double, b2linalg::Vdense_ref > dof, double &time, int &stage, std::string &domain_state_id)
 
- Public Member Functions inherited from b2000::InitialCondition
virtual void set_model (Model &model)=0
 
virtual void set_case (Case &case_)=0
 
- Public Member Functions inherited from b2000::Object
virtual const std::string & get_object_name () const
 
virtual ~Object ()
 

Additional Inherited Members

- Static Public Attributes inherited from b2000::Object
static ObjectType type
 

Detailed Description

template<typename T>
class b2000::TypedInitialCondition< T >

Implementations should derive this class.

Member Function Documentation

◆ get_dynamic_initial_condition_value()

template<typename T >
virtual bool b2000::TypedInitialCondition< T >::get_dynamic_initial_condition_value ( b2linalg::Matrix< double, b2linalg::Mrectangle > &  dof,
double &  time,
int &  stage,
std::string &  domain_state_id 
)
pure virtual

Compute the initial conditions for dynamic analysis. This function is called by the dynamic Solver instance during initialization.

Parameters
dofThe initial values of all degrees-of-freedom in the global reference frame, and their time-derivatives (matrix, output).
timeThe time parameter (output). For restart, the time parameter will be positive, else 0.
stageThe stage number (output).
domain_state_idThe domain state ID for restart (output). If set to a non-empty string, it identifies path-dependent Element and ElementProperty states, which have been stored previously on database and which will be loaded with Domain::load_state().

◆ get_static_initial_condition_value()

template<typename T >
virtual bool b2000::TypedInitialCondition< T >::get_static_initial_condition_value ( b2linalg::Vector< double, b2linalg::Vdense_ref >  dof,
double &  time,
int &  stage,
std::string &  domain_state_id 
)
inlinevirtual

Compute the initial conditions for static analysis. This function is called by the static Solver instance during initialization.

Parameters
dofThe initial values of all degrees-of-freedom in the global reference frame (vector, output).
timeThe time parameter (output). For restart, the time parameter will be positive, else 0.
stageThe stage number (output).
domain_state_idThe domain state ID for restart (output). If set to a non-empty string, it identifies path-dependent Element and ElementProperty states, which have been stored previously on database and which will be loaded with Domain::load_state().

The documentation for this class was generated from the following file: