b2api
B2000++ API Reference Manual, VERSION 4.6
 
Loading...
Searching...
No Matches
b2000::b2dbv3::Model Class Reference

#include "b2model_database.H"

Inheritance diagram for b2000::b2dbv3::Model:
Collaboration diagram for b2000::b2dbv3::Model:

Public Member Functions

void init (const std::string &dbname="", Dictionary *cmdline_set_=nullptr) override
 
CaseList & get_case_list () override
 
const int get_handle () override
 
Domainget_domain () override
 
NaturalBoundaryConditionget_natural_boundary_condition (ObjectTypeIncomplete< NaturalBoundaryCondition > *bc_type) override
 
EssentialBoundaryConditionget_essential_boundary_condition (ObjectTypeIncomplete< EssentialBoundaryCondition > *bc_type) override
 
ModelReductionBoundaryConditionget_model_reduction_boundary_condition (ObjectTypeIncomplete< ModelReductionBoundaryCondition > *bc_type) override
 
InitialConditionget_initial_condition () override
 
Solutionget_solution () override
 
Solverget_solver () override
 
void set_case (b2000::Case &case_) override
 
Case * get_case () override
 
int get_subcase_id () const override
 
void set_subcase_id (const int subcase_id_) override
 
void get_subcase_ids (std::set< int > &subcase_ids_) const override
 
- Public Member Functions inherited from b2000::Model
virtual void run ()
 
- 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

The object associated with the B2000 database.

Member Function Documentation

◆ get_case()

Case * b2000::b2dbv3::Model::get_case ( )
inlineoverridevirtual

Get the current case.

Returns
a pointer to the Case object describing the current load case.

Implements b2000::Model.

◆ get_case_list()

CaseList & b2000::b2dbv3::Model::get_case_list ( )
overridevirtual

Get the list of cases of the model.

Implements b2000::Model.

◆ get_domain()

Domain & b2000::b2dbv3::Model::get_domain ( )
overridevirtual

Get the Domain instance.

Implements b2000::Model.

◆ get_essential_boundary_condition()

EssentialBoundaryCondition & b2000::b2dbv3::Model::get_essential_boundary_condition ( ObjectTypeIncomplete< EssentialBoundaryCondition > *  bc_type)
overridevirtual

Get the essential boundary conditions.

Implements b2000::Model.

◆ get_handle()

const int b2000::b2dbv3::Model::get_handle ( )
overridevirtual

Get the MemCom database handle, if any, or 0 if not defined.

Implements b2000::Model.

◆ get_initial_condition()

InitialCondition & b2000::b2dbv3::Model::get_initial_condition ( )
overridevirtual

This method returns a reference to the initial_condition object which is owned by a unique_ptr. Do not call this method to assign the address of the returned object to another pointer!

Implements b2000::Model.

◆ get_model_reduction_boundary_condition()

ModelReductionBoundaryCondition & b2000::b2dbv3::Model::get_model_reduction_boundary_condition ( ObjectTypeIncomplete< ModelReductionBoundaryCondition > *  bc_type)
overridevirtual

Get the model reduction boundary conditions.

Implements b2000::Model.

◆ get_natural_boundary_condition()

NaturalBoundaryCondition & b2000::b2dbv3::Model::get_natural_boundary_condition ( ObjectTypeIncomplete< NaturalBoundaryCondition > *  bc_type)
overridevirtual

Get the natural boundary conditions.

Implements b2000::Model.

◆ get_solution()

Solution & b2000::b2dbv3::Model::get_solution ( )
overridevirtual

Get the Solution object that will hold the solution data.

Implements b2000::Model.

◆ get_solver()

Solver & b2000::b2dbv3::Model::get_solver ( )
overridevirtual

This method returns a reference to the solver object which is owned by a unique_ptr. Do not call this method to assign the address of the returned object to another pointer!

Implements b2000::Model.

◆ get_subcase_id()

int b2000::b2dbv3::Model::get_subcase_id ( ) const
inlineoverridevirtual

Get the analysis subcase.

Implements b2000::Model.

◆ get_subcase_ids()

void b2000::b2dbv3::Model::get_subcase_ids ( std::set< int > &  subcase_ids_) const
overridevirtual

Get the list of subcases that are defined for the current case, using the Case object.

Implements b2000::Model.

◆ init()

void b2000::b2dbv3::Model::init ( const std::string &  dbname = "",
Dictionary cmdline_set_ = nullptr 
)
overridevirtual

Initialize the model.

Implements b2000::Model.

◆ set_case()

void b2000::b2dbv3::Model::set_case ( b2000::Case case_)
overridevirtual

Set the case of the model.

Apply this method to all of the defined objects (domain, boundary condition, etc) of the models. The subcase ID is set to the ID of the first subcase or to 0 if no subcases are defined for this case.

Implements b2000::Model.

◆ set_subcase_id()

void b2000::b2dbv3::Model::set_subcase_id ( const int  subcase_id_)
overridevirtual

Set the analysis subcase.

Implements b2000::Model.


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