[P]arallel [Hi]gh-order [Li]brary for [P]DEs  Latest
Parallel High-Order Library for PDEs through hp-adaptive Discontinuous Galerkin methods
PHiLiP::Tests::EulerVortexFunction< dim, real > Class Template Reference

#include <euler_vortex.h>

Inheritance diagram for PHiLiP::Tests::EulerVortexFunction< dim, real >:
Collaboration diagram for PHiLiP::Tests::EulerVortexFunction< dim, real >:

Public Member Functions

 EulerVortexFunction (const Physics::Euler< dim, dim+2, real > euler_physics, const dealii::Point< dim > initial_vortex_center, const real vortex_strength, const real vortex_stddev_decay)
 Constructor that initializes base_values, amplitudes, frequencies. More...
 
real value (const dealii::Point< dim > &point, const unsigned int istate=0) const
 Manufactured solution exact value. More...
 

Public Attributes

const Physics::Euler< dim, dim+2, real > euler_physics
 Euler physics.
 
const real vortex_characteristic_length
 R.
 
const dealii::Point< dim > initial_vortex_center
 x_c, y_c
 
const real vortex_strength
 beta
 
const real vortex_stddev_decay
 sigma
 

Private Member Functions

dealii::Point< dim > advected_location (const dealii::Point< dim > old_location) const
 Exact solution using the current time provided by the dealii::Function class.
 

Detailed Description

template<int dim, typename real>
class PHiLiP::Tests::EulerVortexFunction< dim, real >

Spiegel, S. C., Huynh, H. T., and DeBonis, J. R., “A Survey of the Isentropic Euler Vortex Problem using High-Order Methods,” 22nd AIAA Computational Fluid Dynamics Conference, American Institute of Aeronautics and Astronautics, 2015.

Definition at line 18 of file euler_vortex.h.

Constructor & Destructor Documentation

◆ EulerVortexFunction()

template<int dim, typename real >
PHiLiP::Tests::EulerVortexFunction< dim, real >::EulerVortexFunction ( const Physics::Euler< dim, dim+2, real >  euler_physics,
const dealii::Point< dim >  initial_vortex_center,
const real  vortex_strength,
const real  vortex_stddev_decay 
)

Constructor that initializes base_values, amplitudes, frequencies.

Calls the Function(const unsigned int n_components) constructor in deal.II This sets the public attribute n_components = nstate, which can then be accessed by all the other functions

Definition at line 39 of file euler_vortex.cpp.

Member Function Documentation

◆ value()

template<int dim, typename real >
real PHiLiP::Tests::EulerVortexFunction< dim, real >::value ( const dealii::Point< dim > &  point,
const unsigned int  istate = 0 
) const
inline

Manufactured solution exact value.

u[s] = A[s]*sin(freq[s][0]*x)*sin(freq[s][1]*y)*sin(freq[s][2]*z);

Definition at line 68 of file euler_vortex.cpp.


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