MGIS
Loading...
Searching...
No Matches
Model.hxx File Reference

Namespaces

namespace  mgis
 the namespace mgis encloses all the MGIS project.
 

Typedefs

using mgis::model::Model = mgis::behaviour::Behaviour
 a simple alias
 

Functions

MGIS_EXPORT Model mgis::model::load (const std::string &, const std::string &, const mgis::behaviour::Hypothesis)
 load the description of a model from a library
 
MGIS_EXPORT std::optional< Modelmgis::model::load (Context &, const std::string &, const std::string &, const mgis::behaviour::Hypothesis) noexcept
 load the description of a model from a library
 
MGIS_EXPORT Model mgis::model::loadFromDatabase (const mgis::behaviour::LoadFromDatabaseOptions &)
 load a model from the database
 
MGIS_EXPORT std::optional< Modelmgis::model::loadFromDatabase (Context &, const mgis::behaviour::LoadFromDatabaseOptions &) noexcept
 load a model from the database
 

Detailed Description

Author
Thomas Helfer
Date
14/10/2021

Typedef Documentation

◆ Model

a simple alias

In MGIS, a model is a behaviour without gradients, thermodynamic forces nor tangent operator blocks.

Function Documentation

◆ load() [1/2]

MGIS_EXPORT Model mgis::model::load ( const std::string &  ,
const std::string &  ,
const mgis::behaviour::Hypothesis   
)

load the description of a model from a library

Parameters
[in]llibrary name
[in]mmodel name
[in]hmodelling hypothesis
Returns
the model description
Note
: use of std::string rather than mgis::string_view is meaningfull here

◆ load() [2/2]

MGIS_EXPORT std::optional< Model > mgis::model::load ( Context ,
const std::string &  ,
const std::string &  ,
const mgis::behaviour::Hypothesis   
)
noexcept

load the description of a model from a library

Parameters
[in]llibrary name
[in]mmodel name
[in]hmodelling hypothesis
Returns
the model description
Note
: use of std::string rather than mgis::string_view is meaningfull here

◆ loadFromDatabase() [1/2]

MGIS_EXPORT Model mgis::model::loadFromDatabase ( const mgis::behaviour::LoadFromDatabaseOptions )

load a model from the database

Returns
the model description

◆ loadFromDatabase() [2/2]

MGIS_EXPORT std::optional< Model > mgis::model::loadFromDatabase ( Context ,
const mgis::behaviour::LoadFromDatabaseOptions  
)
noexcept

load a model from the database

Parameters
[in]ctxexecution context
[in]optsoptions to select the model
Returns
the model description