IgANet
IgANets - Isogeometric Analysis Networks
Loading...
Searching...
No Matches
iganet::Poisson2dModel< T > Class Template Reference

Poisson equation in 2d model. More...

Inheritance diagram for iganet::Poisson2dModel< T >:
iganet::Model< T > iganet::ModelEval iganet::ModelRefine iganet::ModelSerialize iganet::ModelXML

Public Member Functions

 Poisson2dModel ()=default
 Default constructor.
 
 ~Poisson2dModel ()
 Destructor.
 
nlohmann::json eval (const std::string &patch, const std::string &component, const nlohmann::json &json) const override
 Evaluates the model.
 
nlohmann::json exportXML (const std::string &patch, const std::string &component, int id=0) override
 Exports the model to XML (as JSON object)
 
pugi::xml_node & exportXML (const std::string &patch, const std::string &component, pugi::xml_node &xml, int id=0) override
 Exports the model to XML (as XML object)
 
std::string getDescription () const override
 Returns the model's description.
 
nlohmann::json getInputs () const override
 Returns the model's inputs.
 
std::string getName () const override
 Returns the model's name.
 
nlohmann::json getOptions () const override
 Returns the model's options.
 
nlohmann::json getOutputs () const override
 Returns the model's outputs.
 
nlohmann::json getParameters () const override
 Returns the model's parameters.
 
void importXML (const std::string &patch, const std::string &component, const nlohmann::json &json, int id=0) override
 Imports the model from XML (as JSON object)
 
void importXML (const std::string &patch, const std::string &component, const pugi::xml_node &xml, int id=0) override
 Imports the model from XML (as XML object)
 
void load (const nlohmann::json &json) override
 Loads model from LibTorch file.
 
void refine (const nlohmann::json &json=NULL) override
 Refines the model.
 
nlohmann::json save () const override
 Saves model to LibTorch file.
 
nlohmann::json to_json (const std::string &patch, const std::string &component, const std::string &attribute) const override
 Serializes the model to JSON.
 
nlohmann::json updateAttribute (const std::string &patch, const std::string &component, const std::string &attribute, const nlohmann::json &json) override
 Updates the attrbutes of the model.
 
- Public Member Functions inherited from iganet::Model< T >
 Model ()
 Constructor.
 
virtual ~Model ()
 Destructor.
 
virtual nlohmann::json getCapabilities () const
 Returns the model's capabilities.
 
virtual nlohmann::json getModel () const
 Returns the model's JSON serialization.
 
- Public Member Functions inherited from iganet::ModelEval
std::vector< std::string > getCapabilities () const
 
- Public Member Functions inherited from iganet::ModelRefine
std::vector< std::string > getCapabilities () const
 
- Public Member Functions inherited from iganet::ModelSerialize
std::vector< std::string > getCapabilities () const
 
- Public Member Functions inherited from iganet::ModelXML
std::vector< std::string > getCapabilities () const
 

Detailed Description

template<typename T>
class iganet::Poisson2dModel< T >

Poisson equation in 2d model.

Constructor & Destructor Documentation

◆ Poisson2dModel()

template<typename T >
iganet::Poisson2dModel< T >::Poisson2dModel ( )
default

Default constructor.

◆ ~Poisson2dModel()

template<typename T >
iganet::Poisson2dModel< T >::~Poisson2dModel ( )
inline

Destructor.

Member Function Documentation

◆ eval()

template<typename T >
nlohmann::json iganet::Poisson2dModel< T >::eval ( const std::string &  patch,
const std::string &  component,
const nlohmann::json &  json 
) const
inlineoverridevirtual

Evaluates the model.

Implements iganet::ModelEval.

◆ exportXML() [1/2]

template<typename T >
nlohmann::json iganet::Poisson2dModel< T >::exportXML ( const std::string &  patch,
const std::string &  component,
int  id = 0 
)
inlineoverridevirtual

Exports the model to XML (as JSON object)

Implements iganet::ModelXML.

◆ exportXML() [2/2]

template<typename T >
pugi::xml_node & iganet::Poisson2dModel< T >::exportXML ( const std::string &  patch,
const std::string &  component,
pugi::xml_node &  xml,
int  id = 0 
)
inlineoverridevirtual

Exports the model to XML (as XML object)

Implements iganet::ModelXML.

◆ getDescription()

template<typename T >
std::string iganet::Poisson2dModel< T >::getDescription ( ) const
inlineoverridevirtual

Returns the model's description.

Implements iganet::Model< T >.

◆ getInputs()

template<typename T >
nlohmann::json iganet::Poisson2dModel< T >::getInputs ( ) const
inlineoverridevirtual

Returns the model's inputs.

Implements iganet::Model< T >.

◆ getName()

template<typename T >
std::string iganet::Poisson2dModel< T >::getName ( ) const
inlineoverridevirtual

Returns the model's name.

Implements iganet::Model< T >.

◆ getOptions()

template<typename T >
nlohmann::json iganet::Poisson2dModel< T >::getOptions ( ) const
inlineoverridevirtual

Returns the model's options.

Implements iganet::Model< T >.

◆ getOutputs()

template<typename T >
nlohmann::json iganet::Poisson2dModel< T >::getOutputs ( ) const
inlineoverridevirtual

Returns the model's outputs.

Implements iganet::Model< T >.

◆ getParameters()

template<typename T >
nlohmann::json iganet::Poisson2dModel< T >::getParameters ( ) const
inlineoverridevirtual

Returns the model's parameters.

Implements iganet::Model< T >.

◆ importXML() [1/2]

template<typename T >
void iganet::Poisson2dModel< T >::importXML ( const std::string &  patch,
const std::string &  component,
const nlohmann::json &  json,
int  id = 0 
)
inlineoverridevirtual

Imports the model from XML (as JSON object)

Implements iganet::ModelXML.

◆ importXML() [2/2]

template<typename T >
void iganet::Poisson2dModel< T >::importXML ( const std::string &  patch,
const std::string &  component,
const pugi::xml_node &  xml,
int  id = 0 
)
inlineoverridevirtual

Imports the model from XML (as XML object)

Implements iganet::ModelXML.

◆ load()

template<typename T >
void iganet::Poisson2dModel< T >::load ( const nlohmann::json &  json)
inlineoverridevirtual

Loads model from LibTorch file.

Implements iganet::ModelSerialize.

◆ refine()

template<typename T >
void iganet::Poisson2dModel< T >::refine ( const nlohmann::json &  json = NULL)
inlineoverridevirtual

Refines the model.

Implements iganet::ModelRefine.

◆ save()

template<typename T >
nlohmann::json iganet::Poisson2dModel< T >::save ( ) const
inlineoverridevirtual

Saves model to LibTorch file.

Implements iganet::ModelSerialize.

◆ to_json()

template<typename T >
nlohmann::json iganet::Poisson2dModel< T >::to_json ( const std::string &  patch,
const std::string &  component,
const std::string &  attribute 
) const
inlineoverridevirtual

Serializes the model to JSON.

Reimplemented from iganet::Model< T >.

◆ updateAttribute()

template<typename T >
nlohmann::json iganet::Poisson2dModel< T >::updateAttribute ( const std::string &  patch,
const std::string &  component,
const std::string &  attribute,
const nlohmann::json &  json 
)
inlineoverridevirtual

Updates the attrbutes of the model.

Reimplemented from iganet::Model< T >.


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