write_vtk_mesh Subroutine

public subroutine write_vtk_mesh(equi, mesh, phi, dphi_bwd, dphi_fwd, vtk2d, vtk3d, quadratic_hex, dbgout)

Writes mesh to vtk files Based on VTKFortran library (https://github.com/szaghi/VTKFortran/) For description of cell types and their definition of connectivity see https://kitware.github.io/vtk-examples/site/VTKBook/05Chapter5/ here used (quad, bi-quadrtatic quad, hexahedron, quadratic hexahedron) For their VTK descriptor see https://vtk.org/doc/nightly/html/vtkCellType_8h_source.html

Arguments

Type IntentOptional Attributes Name
class(equilibrium_t), intent(inout) :: equi

Mesh

type(mesh_cart_t), intent(in) :: mesh

Mesh

real(kind=FP), intent(in) :: phi

Toroidal position at which center 3D mesh is located

real(kind=FP), intent(in) :: dphi_bwd

Toroidal distance in negative phi direction for which 3D aligned mesh is built

real(kind=FP), intent(in) :: dphi_fwd

Toroidal distance in positive phi direction for which 3D aligned mesh is built

type(vtk_file), intent(inout), optional :: vtk2d

VTK file for 2d vtk mesh (inplane)

type(vtk_file), intent(inout), optional :: vtk3d

VTK file for 3d vtk mesh

logical, intent(in), optional :: quadratic_hex

Indicates if 3d mesh is based on standard hexahedrons or quadratic hexahedrons (default)

integer, intent(in), optional :: dbgout

Debug output level