|
svZeroDSolver
|
#include <Node.h>
Public Member Functions | |
| Node (int id, const std::vector< Block * > &inlet_eles, const std::vector< Block * > &outlet_eles, Model *model) | |
| Construct a new Node object. | |
| std::string | get_name () |
| Get the name of the node. | |
| void | setup_dofs (DOFHandler &dofhandler) |
| Set up the degrees of freedom (DOF) of the block. | |
Public Attributes | |
| int | id |
| Global ID of the block. | |
| std::vector< Block * > | inlet_eles |
| Inlet element of the node. | |
| std::vector< Block * > | outlet_eles |
| Outlet element of the node. | |
| Model * | model {nullptr} |
| The model to which the node belongs. | |
| int | flow_dof {0} |
| Global flow degree-of-freedom of the node. | |
| int | pres_dof {0} |
| Global pressure degree-of-freedom of the node. | |
Node.
Nodes connect two blocks with each other. Each node corresponds to a flow and pressure value of the system.
| Node::Node | ( | int | id, |
| const std::vector< Block * > & | inlet_eles, | ||
| const std::vector< Block * > & | outlet_eles, | ||
| Model * | model ) |
Construct a new Node object.
| id | Global ID of the node |
| inlet_eles | Inlet element of the node |
| outlet_eles | Outlet element of the node |
| model | The model to which the node belongs |
| std::string Node::get_name | ( | ) |
Get the name of the node.
| void Node::setup_dofs | ( | DOFHandler & | dofhandler | ) |
Set up the degrees of freedom (DOF) of the block.
Set global_var_ids and global_eqn_ids of the element based on the number of equations and the number of internal variables of the element.
| dofhandler | Degree-of-freedom handler to register variables and equations at |
| int Node::flow_dof {0} |
Global flow degree-of-freedom of the node.
| int Node::id |
Global ID of the block.
| std::vector<Block*> Node::inlet_eles |
Inlet element of the node.
| Model* Node::model {nullptr} |
The model to which the node belongs.
| std::vector<Block*> Node::outlet_eles |
Outlet element of the node.
| int Node::pres_dof {0} |
Global pressure degree-of-freedom of the node.