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

#include <Spacetime_func.hpp>

Inheritance diagram for hexed::Doublet:
hexed::State_from_spacetime hexed::Spacetime_func hexed::Domain_func hexed::Qpoint_func hexed::Surface_func hexed::Output_data hexed::Boundary_func hexed::Output_data

Public Member Functions

 Doublet (std::vector< double > freestream_state)
 
std::vector< double > operator() (std::vector< double > pos, double time) const override
 
- Public Member Functions inherited from hexed::State_from_spacetime
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
 
- Public Member Functions inherited from hexed::Spacetime_func
std::vector< double > operator() (std::vector< double > pos, double time, std::vector< double > state) const override
 
- Public Member Functions inherited from hexed::Domain_func
std::vector< double > operator() (Element &, const Basis &, int i_qpoint, double time) const override
 
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
 

Public Attributes

std::array< double, 2 > location {0., 0.}
 
double radius {1.}
 
double heat_rat {1.4}
 

Detailed Description

Velocity field of this flow matches an irrotational, incompressible source/vortex doublet. The circle of radius radius will be a streamline of this flow. Thermodynamic variables are set such that entropy and stagnation enthalpy are constant. flow is isentropic. Flow field is steady, and is an exact solution only in incompressible flow.

Attention
Singularity at location! This class is applicable only to domains which do not include this point.

Member Function Documentation

◆ operator()()

std::vector< double > hexed::Doublet::operator() ( std::vector< double > pos,
double time ) const
overridevirtual

Implements hexed::Spacetime_func.


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