MFEM v4.7.0
Finite element discretization library
Loading...
Searching...
No Matches
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 575 of file acoustics.cpp.

◆ acoustics_solution_grad()

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

Definition at line 622 of file acoustics.cpp.

◆ acoustics_solution_laplacian()

complex< real_t > acoustics_solution_laplacian ( const Vector & X)

Definition at line 699 of file acoustics.cpp.

◆ d2_exact_i()

real_t d2_exact_i ( const Vector & x)

Definition at line 516 of file acoustics.cpp.

◆ d2_exact_r()

real_t d2_exact_r ( const Vector & x)

Definition at line 510 of file acoustics.cpp.

◆ divu_exact_i()

real_t divu_exact_i ( const Vector & x)

Definition at line 553 of file acoustics.cpp.

◆ divu_exact_r()

real_t divu_exact_r ( const Vector & x)

Definition at line 548 of file acoustics.cpp.

◆ gradp_exact_i()

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

Definition at line 499 of file acoustics.cpp.

◆ gradp_exact_r()

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

Definition at line 488 of file acoustics.cpp.

◆ hatp_exact_i()

real_t hatp_exact_i ( const Vector & X)

Definition at line 483 of file acoustics.cpp.

◆ hatp_exact_r()

real_t hatp_exact_r ( const Vector & X)

Definition at line 478 of file acoustics.cpp.

◆ hatu_exact_i()

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

Definition at line 540 of file acoustics.cpp.

◆ hatu_exact_r()

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

Definition at line 536 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 473 of file acoustics.cpp.

◆ p_exact_r()

real_t p_exact_r ( const Vector & x)

Definition at line 468 of file acoustics.cpp.

◆ rhs_func_i()

real_t rhs_func_i ( const Vector & x)

Definition at line 568 of file acoustics.cpp.

◆ rhs_func_r()

real_t rhs_func_r ( const Vector & x)

Definition at line 560 of file acoustics.cpp.

◆ u_exact_i()

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

Definition at line 530 of file acoustics.cpp.

◆ u_exact_r()

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

Definition at line 524 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.