MFEM v4.7.0
Finite element discretization library
Loading...
Searching...
No Matches
pmaxwell.cpp File Reference

Go to the source code of this file.

Enumerations

enum  prob_type {
  plane_wave , fichera_oven , pml_general , pml_plane_wave_scatter ,
  pml_pointsource
}
 

Functions

void E_exact_r (const Vector &x, Vector &E_r)
 
void E_exact_i (const Vector &x, Vector &E_i)
 
void H_exact_r (const Vector &x, Vector &H_r)
 
void H_exact_i (const Vector &x, Vector &H_i)
 
void rhs_func_r (const Vector &x, Vector &J_r)
 
void rhs_func_i (const Vector &x, Vector &J_i)
 
void curlE_exact_r (const Vector &x, Vector &curlE_r)
 
void curlE_exact_i (const Vector &x, Vector &curlE_i)
 
void curlH_exact_r (const Vector &x, Vector &curlH_r)
 
void curlH_exact_i (const Vector &x, Vector &curlH_i)
 
void curlcurlE_exact_r (const Vector &x, Vector &curlcurlE_r)
 
void curlcurlE_exact_i (const Vector &x, Vector &curlcurlE_i)
 
void hatE_exact_r (const Vector &X, Vector &hatE_r)
 
void hatE_exact_i (const Vector &X, Vector &hatE_i)
 
void hatH_exact_r (const Vector &X, Vector &hatH_r)
 
void hatH_exact_i (const Vector &X, Vector &hatH_i)
 
real_t hatH_exact_scalar_r (const Vector &X)
 
real_t hatH_exact_scalar_i (const Vector &X)
 
void maxwell_solution (const Vector &X, std::vector< complex< real_t > > &E)
 
void maxwell_solution_curl (const Vector &X, std::vector< complex< real_t > > &curlE)
 
void maxwell_solution_curlcurl (const Vector &X, std::vector< complex< real_t > > &curlcurlE)
 
void source_function (const Vector &x, Vector &f)
 
int main (int argc, char *argv[])
 

Variables

int dim
 
int dimc
 
real_t omega
 
real_t mu = 1.0
 
real_t epsilon = 1.0
 
prob_type prob
 

Enumeration Type Documentation

◆ prob_type

enum prob_type
Enumerator
plane_wave 
fichera_oven 
pml_general 
pml_plane_wave_scatter 
pml_pointsource 

Definition at line 193 of file pmaxwell.cpp.

Function Documentation

◆ curlcurlE_exact_i()

void curlcurlE_exact_i ( const Vector & x,
Vector & curlcurlE_i )

Definition at line 1115 of file pmaxwell.cpp.

◆ curlcurlE_exact_r()

void curlcurlE_exact_r ( const Vector & x,
Vector & curlcurlE_r )

Definition at line 1104 of file pmaxwell.cpp.

◆ curlE_exact_i()

void curlE_exact_i ( const Vector & x,
Vector & curlE_i )

Definition at line 1093 of file pmaxwell.cpp.

◆ curlE_exact_r()

void curlE_exact_r ( const Vector & x,
Vector & curlE_r )

Definition at line 1082 of file pmaxwell.cpp.

◆ curlH_exact_i()

void curlH_exact_i ( const Vector & x,
Vector & curlH_i )

Definition at line 1165 of file pmaxwell.cpp.

◆ curlH_exact_r()

void curlH_exact_r ( const Vector & x,
Vector & curlH_r )

Definition at line 1153 of file pmaxwell.cpp.

◆ E_exact_i()

void E_exact_i ( const Vector & x,
Vector & E_i )

Definition at line 1071 of file pmaxwell.cpp.

◆ E_exact_r()

void E_exact_r ( const Vector & x,
Vector & E_r )

Definition at line 1060 of file pmaxwell.cpp.

◆ H_exact_i()

void H_exact_i ( const Vector & x,
Vector & H_i )

Definition at line 1140 of file pmaxwell.cpp.

◆ H_exact_r()

void H_exact_r ( const Vector & x,
Vector & H_r )

Definition at line 1127 of file pmaxwell.cpp.

◆ hatE_exact_i()

void hatE_exact_i ( const Vector & X,
Vector & hatE_i )

Definition at line 1194 of file pmaxwell.cpp.

◆ hatE_exact_r()

void hatE_exact_r ( const Vector & X,
Vector & hatE_r )

Definition at line 1177 of file pmaxwell.cpp.

◆ hatH_exact_i()

void hatH_exact_i ( const Vector & X,
Vector & hatH_i )

Definition at line 1216 of file pmaxwell.cpp.

◆ hatH_exact_r()

void hatH_exact_r ( const Vector & X,
Vector & hatH_r )

Definition at line 1211 of file pmaxwell.cpp.

◆ hatH_exact_scalar_i()

real_t hatH_exact_scalar_i ( const Vector & X)

Definition at line 1228 of file pmaxwell.cpp.

◆ hatH_exact_scalar_r()

real_t hatH_exact_scalar_r ( const Vector & X)

Definition at line 1221 of file pmaxwell.cpp.

◆ main()

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

Definition at line 213 of file pmaxwell.cpp.

◆ maxwell_solution()

void maxwell_solution ( const Vector & X,
std::vector< complex< real_t > > & E )

Definition at line 1263 of file pmaxwell.cpp.

◆ maxwell_solution_curl()

void maxwell_solution_curl ( const Vector & X,
std::vector< complex< real_t > > & curlE )

Definition at line 1363 of file pmaxwell.cpp.

◆ maxwell_solution_curlcurl()

void maxwell_solution_curlcurl ( const Vector & X,
std::vector< complex< real_t > > & curlcurlE )

Definition at line 1401 of file pmaxwell.cpp.

◆ rhs_func_i()

void rhs_func_i ( const Vector & x,
Vector & J_i )

Definition at line 1250 of file pmaxwell.cpp.

◆ rhs_func_r()

void rhs_func_r ( const Vector & x,
Vector & J_r )

Definition at line 1237 of file pmaxwell.cpp.

◆ source_function()

void source_function ( const Vector & x,
Vector & f )

Definition at line 1440 of file pmaxwell.cpp.

Variable Documentation

◆ dim

int dim

Definition at line 187 of file pmaxwell.cpp.

◆ dimc

int dimc

Definition at line 188 of file pmaxwell.cpp.

◆ epsilon

real_t epsilon = 1.0

Definition at line 191 of file pmaxwell.cpp.

◆ mu

real_t mu = 1.0

Definition at line 190 of file pmaxwell.cpp.

◆ omega

real_t omega

Definition at line 189 of file pmaxwell.cpp.

◆ prob

prob_type prob

Definition at line 211 of file pmaxwell.cpp.