MFEM v4.7.0
Finite element discretization library
Loading...
Searching...
No Matches
convection-diffusion.cpp File Reference

Go to the source code of this file.

Enumerations

enum  prob_type { manufactured , EJ }
 

Functions

real_t exact_u (const Vector &X)
 
void exact_gradu (const Vector &X, Vector &du)
 
real_t exact_laplacian_u (const Vector &X)
 
void exact_sigma (const Vector &X, Vector &sigma)
 
real_t exact_hatu (const Vector &X)
 
void exact_hatf (const Vector &X, Vector &hatf)
 
real_t f_exact (const Vector &X)
 
void setup_test_norm_coeffs (GridFunction &c1_gf, GridFunction &c2_gf)
 
int main (int argc, char *argv[])
 

Variables

prob_type prob
 
Vector beta
 
real_t epsilon
 

Enumeration Type Documentation

◆ prob_type

enum prob_type
Enumerator
manufactured 
EJ 

Definition at line 75 of file convection-diffusion.cpp.

Function Documentation

◆ exact_gradu()

void exact_gradu ( const Vector & X,
Vector & du )

Definition at line 498 of file convection-diffusion.cpp.

◆ exact_hatf()

void exact_hatf ( const Vector & X,
Vector & hatf )

Definition at line 592 of file convection-diffusion.cpp.

◆ exact_hatu()

real_t exact_hatu ( const Vector & X)

Definition at line 587 of file convection-diffusion.cpp.

◆ exact_laplacian_u()

real_t exact_laplacian_u ( const Vector & X)

Definition at line 539 of file convection-diffusion.cpp.

◆ exact_sigma()

void exact_sigma ( const Vector & X,
Vector & sigma )

Definition at line 580 of file convection-diffusion.cpp.

◆ exact_u()

real_t exact_u ( const Vector & X)

Definition at line 467 of file convection-diffusion.cpp.

◆ f_exact()

real_t f_exact ( const Vector & X)

Definition at line 604 of file convection-diffusion.cpp.

◆ main()

int main ( int argc,
char * argv[] )

Definition at line 94 of file convection-diffusion.cpp.

◆ setup_test_norm_coeffs()

void setup_test_norm_coeffs ( GridFunction & c1_gf,
GridFunction & c2_gf )

Definition at line 619 of file convection-diffusion.cpp.

Variable Documentation

◆ beta

Vector beta

Definition at line 82 of file convection-diffusion.cpp.

◆ epsilon

real_t epsilon

Definition at line 83 of file convection-diffusion.cpp.

◆ prob

prob_type prob

Definition at line 81 of file convection-diffusion.cpp.