MFEM v4.8.0
Finite element discretization library
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
acoustics.cpp File Reference

Go to the source code of this file.

Enumerations

enum  prob_type { plane_wave , gaussian_beam }
 

Functions

complex< real_tacoustics_solution (const Vector &X)
 
void acoustics_solution_grad (const Vector &X, vector< complex< real_t > > &dp)
 
complex< real_tacoustics_solution_laplacian (const Vector &X)
 
real_t p_exact_r (const Vector &x)
 
real_t p_exact_i (const Vector &x)
 
void u_exact_r (const Vector &x, Vector &u)
 
void u_exact_i (const Vector &x, Vector &u)
 
real_t rhs_func_r (const Vector &x)
 
real_t rhs_func_i (const Vector &x)
 
void gradp_exact_r (const Vector &x, Vector &gradu)
 
void gradp_exact_i (const Vector &x, Vector &gradu)
 
real_t divu_exact_r (const Vector &x)
 
real_t divu_exact_i (const Vector &x)
 
real_t d2_exact_r (const Vector &x)
 
real_t d2_exact_i (const Vector &x)
 
real_t hatp_exact_r (const Vector &X)
 
real_t hatp_exact_i (const Vector &X)
 
void hatu_exact_r (const Vector &X, Vector &hatu)
 
void hatu_exact_i (const Vector &X, Vector &hatu)
 
int main (int argc, char *argv[])
 

Variables

int dim
 
real_t omega
 
prob_type prob
 

Enumeration Type Documentation

◆ prob_type

enum prob_type
Enumerator
plane_wave 
gaussian_beam 

Definition at line 103 of file acoustics.cpp.

Function Documentation

◆ acoustics_solution()

complex< real_t > acoustics_solution ( const Vector & X)

Definition at line 576 of file acoustics.cpp.

◆ acoustics_solution_grad()

void acoustics_solution_grad ( const Vector & X,
vector< complex< real_t > > & dp )

Definition at line 623 of file acoustics.cpp.

◆ acoustics_solution_laplacian()

complex< real_t > acoustics_solution_laplacian ( const Vector & X)

Definition at line 700 of file acoustics.cpp.

◆ d2_exact_i()

real_t d2_exact_i ( const Vector & x)

Definition at line 517 of file acoustics.cpp.

◆ d2_exact_r()

real_t d2_exact_r ( const Vector & x)

Definition at line 511 of file acoustics.cpp.

◆ divu_exact_i()

real_t divu_exact_i ( const Vector & x)

Definition at line 554 of file acoustics.cpp.

◆ divu_exact_r()

real_t divu_exact_r ( const Vector & x)

Definition at line 549 of file acoustics.cpp.

◆ gradp_exact_i()

void gradp_exact_i ( const Vector & x,
Vector & gradu )

Definition at line 500 of file acoustics.cpp.

◆ gradp_exact_r()

void gradp_exact_r ( const Vector & x,
Vector & gradu )

Definition at line 489 of file acoustics.cpp.

◆ hatp_exact_i()

real_t hatp_exact_i ( const Vector & X)

Definition at line 484 of file acoustics.cpp.

◆ hatp_exact_r()

real_t hatp_exact_r ( const Vector & X)

Definition at line 479 of file acoustics.cpp.

◆ hatu_exact_i()

void hatu_exact_i ( const Vector & X,
Vector & hatu )

Definition at line 541 of file acoustics.cpp.

◆ hatu_exact_r()

void hatu_exact_r ( const Vector & X,
Vector & hatu )

Definition at line 537 of file acoustics.cpp.

◆ main()

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

Definition at line 111 of file acoustics.cpp.

◆ p_exact_i()

real_t p_exact_i ( const Vector & x)

Definition at line 474 of file acoustics.cpp.

◆ p_exact_r()

real_t p_exact_r ( const Vector & x)

Definition at line 469 of file acoustics.cpp.

◆ rhs_func_i()

real_t rhs_func_i ( const Vector & x)

Definition at line 569 of file acoustics.cpp.

◆ rhs_func_r()

real_t rhs_func_r ( const Vector & x)

Definition at line 561 of file acoustics.cpp.

◆ u_exact_i()

void u_exact_i ( const Vector & x,
Vector & u )

Definition at line 531 of file acoustics.cpp.

◆ u_exact_r()

void u_exact_r ( const Vector & x,
Vector & u )

Definition at line 525 of file acoustics.cpp.

Variable Documentation

◆ dim

int dim

Definition at line 100 of file acoustics.cpp.

◆ omega

real_t omega

Definition at line 101 of file acoustics.cpp.

◆ prob

prob_type prob

Definition at line 109 of file acoustics.cpp.