Tag: electromagnetic

  • MFEM Tutorials (4) Simple Electomagnetic Diffusion Part C

    Assemble the bilinear form and the corresponding linear system Assemble the bilinear form and the corresponding linear system, applying any necessary transformations such as: eliminating boundary conditions, applying conforming constraints for non-conforming AMR, static condensation, etc. This code first checks if the “static_cond” variable is true. If it is, it calls the EnableStaticCondensation method on…

  • MFEM Tutorials (4) Simple Electromagnetic Diffusion Part B

    Read and refined the mesh from the given mesh file We can handle triangular, quadrilateral, tetrahedral, hexahedral, surface and volume meshes with the same code. Refine the mesh to increase the resolution. In this example we do ‘ref_levels’ of uniform refinement. We choose ‘ref_levels’ to be the/ largest number that gives a final mesh with…