svZeroDSolver
Loading...
Searching...
No Matches
Node Class Reference

Node. More...

#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.
 
Modelmodel {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.
 

Detailed Description

Node.

Nodes connect two blocks with each other. Each node corresponds to a flow and pressure value of the system.

Constructor & Destructor Documentation

◆ Node()

Node::Node ( int id,
const std::vector< Block * > & inlet_eles,
const std::vector< Block * > & outlet_eles,
Model * model )

Construct a new Node object.

Parameters
idGlobal ID of the node
inlet_elesInlet element of the node
outlet_elesOutlet element of the node
modelThe model to which the node belongs

Member Function Documentation

◆ get_name()

std::string Node::get_name ( )

Get the name of the node.

Returns
std::string Name of the node

◆ setup_dofs()

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.

Parameters
dofhandlerDegree-of-freedom handler to register variables and equations at

Member Data Documentation

◆ flow_dof

int Node::flow_dof {0}

Global flow degree-of-freedom of the node.

◆ id

int Node::id

Global ID of the block.

◆ inlet_eles

std::vector<Block *> Node::inlet_eles

Inlet element of the node.

◆ model

Model* Node::model {nullptr}

The model to which the node belongs.

◆ outlet_eles

std::vector<Block *> Node::outlet_eles

Outlet element of the node.

◆ pres_dof

int Node::pres_dof {0}

Global pressure degree-of-freedom of the node.


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