hummingbird
Solving the self-adjoint angular flux transport equation using spectral elements on Cartesian geometry
Loading...
Searching...
No Matches
hummingbird::Node Struct Reference

A point in the mesh holding its coordinates, boundary info, and flux solution values. More...

#include <node.h>

Public Attributes

size_t id
 Unique identifier for the node.
double x
 X-coordinate of the node.
double y
 Y-coordinate of the node.
double z
 Z-coordinate of the node.
int bc_id = 0
 BC ID to access the boundary condition (BC) bank. ID of 0 is always NONE, meaning the node is internal to the mesh.
arma::vec3 outward_normal
 Outward pointing normal vector. This vector is only relevant if the node is on a boundary.
double scalar_flux
 Scalar flux on the node.
std::vector< double > angular_fluxes
 Angular flux values in order of the SN quadrature set.
std::vector< double > source_fluxes
 Source flux values in order of the SN quadrature set. These are scratch values: they are overwritten for each element during forcing assembly (see Element::SetNodeSourceFluxes), so on interface nodes they hold the last element's values. Do not read them outside assembly.

Detailed Description

A point in the mesh holding its coordinates, boundary info, and flux solution values.

Definition at line 26 of file node.h.

Member Data Documentation

◆ angular_fluxes

std::vector<double> hummingbird::Node::angular_fluxes

Angular flux values in order of the SN quadrature set.

Definition at line 51 of file node.h.

◆ bc_id

int hummingbird::Node::bc_id = 0

BC ID to access the boundary condition (BC) bank. ID of 0 is always NONE, meaning the node is internal to the mesh.

Definition at line 41 of file node.h.

◆ id

size_t hummingbird::Node::id

Unique identifier for the node.

Definition at line 28 of file node.h.

◆ outward_normal

arma::vec3 hummingbird::Node::outward_normal

Outward pointing normal vector. This vector is only relevant if the node is on a boundary.

Definition at line 45 of file node.h.

◆ scalar_flux

double hummingbird::Node::scalar_flux

Scalar flux on the node.

Definition at line 48 of file node.h.

◆ source_fluxes

std::vector<double> hummingbird::Node::source_fluxes

Source flux values in order of the SN quadrature set. These are scratch values: they are overwritten for each element during forcing assembly (see Element::SetNodeSourceFluxes), so on interface nodes they hold the last element's values. Do not read them outside assembly.

Definition at line 57 of file node.h.

◆ x

double hummingbird::Node::x

X-coordinate of the node.

Definition at line 31 of file node.h.

◆ y

double hummingbird::Node::y

Y-coordinate of the node.

Definition at line 34 of file node.h.

◆ z

double hummingbird::Node::z

Z-coordinate of the node.

Definition at line 37 of file node.h.


The documentation for this struct was generated from the following file:
  • /home/runner/work/hummingbird/hummingbird/include/mesh/node.h