hexed 0.3.0
 
Loading...
Searching...
No Matches
hexed::hil_properties Namespace Reference

functions that assign properties of objects to HIL variables More...

Functions

void element (Namespace &, Element &elem)
 
void position (Namespace &, Element &, const Basis &, int i_qpoint)
 Assigns the variables pos0, pos1, pos2
 
void state (Namespace &, Element &, int i_qpoint)
 
void surface (Namespace &, Boundary_connection &, int i_fqpoint)
 

Detailed Description

functions that assign properties of objects to HIL variables

Function Documentation

◆ element()

void hexed::hil_properties::element ( Namespace & space,
Element & elem )

Assigns the follwing variables:

  • is_extruded: 1 if element is extruded, else 0
  • n_dim: number of dimensions
  • is_def = elem.get_is_deformed()
  • ref_level = elem.refinement_level()
  • aniso_ref_level = elem.aniso_ref_level()
  • mask = elem.mask()
  • nom_sz = elem.nominal_size() -uncertainty= elem.uncertainty
  • center0, center1, center2: center of mass of vertices (not necessarily of the element itself)

◆ position()

void hexed::hil_properties::position ( Namespace & space,
Element & elem,
const Basis & basis,
int i_qpoint )

Assigns the variables pos0, pos1, pos2

to the position of the i_qpointth quadrature point. Trailing dimensions are set to 0.

◆ state()

void hexed::hil_properties::state ( Namespace & space,
Element & elem,
int i_qpoint )

Assigns the follwing variables:

  • momentum0, momentum1, momentum2 : momentum per volume
  • mass: mass per volume (aka density)
  • energy: total energy per volume
  • tss: time step scale
  • art_visc: artificial viscosity coefficient
  • residual_xxx for xxx in {momentum0, ..., energy}: residual of each of the conserved state variables
    Attention
    If Solver::update or Solver::update_art_visc_smoothness have been called since the last call to Solver::compute_residuals then the residual variables will be incorrect.

◆ surface()

void hexed::hil_properties::surface ( Namespace & space,
Boundary_connection & con,
int i_fqpoint )

Assigns the follwing variables:

  • pos0, pos, pos2: position
  • normal0, normal1, normal2: unit surface normal (out of surface, into domain)
  • momentum0, momentum1, momentum2 : momentum per volume
  • mass: mass per volume (aka density)
  • energy: total energy per volume
  • visc_stress0, visc_stress1, visc_stress2 : viscous stress at surface
  • mass_flux: diffusive mass flux through surface
  • heat_flux: surface heat flux