hexed 0.3.0
 
Loading...
Searching...
No Matches
hexed::Pressure_stress Class Reference

Computes inviscid surface force per unit area (i.e. pressure times unit normal). More...

#include <Surface_func.hpp>

Inheritance diagram for hexed::Pressure_stress:
hexed::Surface_func hexed::Boundary_func hexed::Output_data

Public Member Functions

 Pressure_stress (double heat_rat=1.4)
 
int n_var (int n_dim) const override
 number of output variables when called on n_dim-dimensional input
 
std::string variable_name (int n_dim, int i_var) const override
 name of i_varth variable (for plotting) when called on n_dim-dimensional input
 
std::vector< double > operator() (std::vector< double > pos, double time, std::vector< double > state, std::vector< double > outward_normal) const override
 normal is surface unit normal vector pointing out of the surface (into the domain).
 
- Public Member Functions inherited from hexed::Surface_func
std::vector< double > operator() (Boundary_connection &, int i_fqpoint, double time) const override
 

Detailed Description

Computes inviscid surface force per unit area (i.e. pressure times unit normal).

Member Function Documentation

◆ n_var()

int hexed::Pressure_stress::n_var ( int n_dim) const
inlineoverridevirtual

number of output variables when called on n_dim-dimensional input

Implements hexed::Output_data.

◆ operator()()

std::vector< double > hexed::Pressure_stress::operator() ( std::vector< double > pos,
double time,
std::vector< double > state,
std::vector< double > outward_normal ) const
overridevirtual

normal is surface unit normal vector pointing out of the surface (into the domain).

Todo
use correct heat_rat

Implements hexed::Surface_func.

◆ variable_name()

std::string hexed::Pressure_stress::variable_name ( int n_dim,
int i_var ) const
inlineoverridevirtual

name of i_varth variable (for plotting) when called on n_dim-dimensional input

Reimplemented from hexed::Output_data.


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