Examples

Electrostatics

Configurations:

  • ZeroCharge, homogeneous Neumann b.c.

  • Ground, homogeneous Dirichlet b.c.

  • Terminal, constant Dirichlet b.c.

To run the example for the capacitance matrix of two spheres:

cd FENGSim/starter/palace/examples/spheres
./../../../../toolkit/CEM/palace/palace/build/palace-x86_64.bin spheres.json
paraview postpro/paraview/electrostatic/electrostatic.pvd
alternate text

Magnetostatics

Configurations:

  • PEC, homogeneous Dirichlet b.c.

  • PMC, homogeneous Neumann b.c.

  • SurfaceCurrent, source term

  • Nonlinear materials

From .xml to .json:

cd FENGSim/starter/palace/examples/static_mag
python3 xml2json.py
input .xml: configure
.xml is configure.xml
input .msh: mag
.msh is mesh/mag.msh

To run the magnetostatic example:

cd FENGSim/starter/palace/examples/static_mag
./../../../../toolkit/CEM/palace/palace/build/palace-x86_64.bin mag2.json
paraview postpro/paraview/magnetostatic/magnetostatic.pvd
../_images/mag_2.png ../_images/mag_1.png