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

Computes viscous stress at surface. More...

#include <Boundary_func.hpp>

Inheritance diagram for hexed::Viscous_stress:
hexed::Boundary_func hexed::Output_data

Public Member Functions

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() (Boundary_connection &, int i_fqpoint, double time) const override
 

Detailed Description

Computes viscous stress at surface.

Stress is returned as a vector (i.e. the viscous force on the surface per unit area). For a steady flow with a no-slip BC, this is the shear stress. For an unsteady flow or a slip BC, there may be normal stresses.

Attention
The stress is obtained by reading the flux storage of the Boundary_connection object, which is written by the Spatial::Local kernel. Thus this only works if at least 1 iteration has been run in order to compute viscous fluxes.

Member Function Documentation

◆ n_var()

int hexed::Viscous_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::Viscous_stress::operator() ( Boundary_connection & face,
int i_fqpoint,
double time ) const
overridevirtual
Parameters
faceA Boundary_connection object representing a face of an element that is on a boundary.
i_fqpointIndex of the face quadrature point ( \( \in [0, r^{n_{dim} - 1})\) where \(r\) is row size).
timeFlow time.

Implements hexed::Boundary_func.

◆ variable_name()

std::string hexed::Viscous_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: