MFEM  v4.6.0 Finite element discretization library
ex35p.cpp File Reference

Go to the source code of this file.

## Functions

void SetPortBC (int prob, int dim, int mode, ParGridFunction &port_bc)

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

void ScalarWaveGuide (int mode, ParGridFunction &x)

void VectorWaveGuide (int mode, ParGridFunction &x)

void PseudoScalarWaveGuide (int mode, ParGridFunction &x_l2)

## ◆ main()

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

Definition at line 64 of file ex35p.cpp.

## ◆ PseudoScalarWaveGuide()

 void PseudoScalarWaveGuide ( int mode, ParGridFunction & x_l2 )

Solves the eigenvalue problem -Div(Grad x) = lambda x with homogeneous Neumann boundary conditions on the boundary of the domain. Returns mode number "mode" (counting from zero) in the ParGridFunction "x_l2". Note that mode 0 is a constant field so higher mode numbers are often more interesting. The eigenmode is solved using continuous H1 basis of the appropriate order and then projected onto the L2 basis and returned.

Definition at line 731 of file ex35p.cpp.

## ◆ ScalarWaveGuide()

 void ScalarWaveGuide ( int mode, ParGridFunction & x )

Solves the eigenvalue problem -Div(Grad x) = lambda x with homogeneous Dirichlet boundary conditions on the boundary of the domain. Returns mode number "mode" (counting from zero) in the ParGridFunction "x".

Definition at line 615 of file ex35p.cpp.

## ◆ SetPortBC()

 void SetPortBC ( int prob, int dim, int mode, ParGridFunction & port_bc )

Definition at line 794 of file ex35p.cpp.

## ◆ VectorWaveGuide()

 void VectorWaveGuide ( int mode, ParGridFunction & x )

Solves the eigenvalue problem -Curl(Curl x) = lambda x with homogeneous Dirichlet boundary conditions, on the tangential component of x, on the boundary of the domain. Returns mode number "mode" (counting from zero) in the ParGridFunction "x".

Definition at line 673 of file ex35p.cpp.