The Open FUSION Toolkit 1.0.0-beta6
Modeling tools for plasma and fusion research and engineering
Loading...
Searching...
No Matches
oft_mesh_t3d Module Reference

Detailed Description

Mesh handling for T3D meshes.

Functions to read in, intialize and refine T3D based geometry

  • Mesh file read-in
  • CAD file read-in
  • Boundary point location and refinement
Authors
George Marklin and Chris Hansen
Date
April 2008 - Present

Data Types

type  t3d_cad
 T3D raw CAD structure. More...
type  t3d_cadgeom
 T3D CAD boundary structure. More...
 T3D CAD linkage structure. More...

Functions/Subroutines

subroutine, public mesh_t3d_add_quad (mg_mesh)
 Add quadratic mesh node points using CAD model.
subroutine mesh_t3d_cadconv
 Convert T3D CAD representation to code represenation.
subroutine, public mesh_t3d_cadlink (mesh)
 Link T3D CAD objects to mesh entities for use in refinement.
subroutine, public mesh_t3d_cadsync (mg_mesh)
 Synchronize T3D geometry information.
subroutine mesh_t3d_geom
 Read in T3D geometry information from file 'inpname'.
subroutine, public mesh_t3d_load (mg_mesh)
 Read in t3d mesh file from file "filename".
subroutine, public mesh_t3d_reffix (mg_mesh)
 Adjust boundary points to CAD boundary.
subroutine mesh_t3d_reflect (mesh, k, tol, per_flag)
 Reflect a T3D mesh and CAD model across a plane.
subroutine, public mesh_t3d_set_periodic (mesh)
 Needs docs.
subroutine mesh_t3d_surfconst (si, surf)
 Construct CAD surface object.
subroutine, public smesh_t3d_load (mg_mesh)
 Read in t3d mesh file from file "filename".

Variables

type(t3d_cadlink), pointer cad_link => NULL()
 Linkage of mesh to CAD geometry.
type(t3d_cadgeom), pointer cad_rep => NULL()
 CAD representation.
type(t3d_cadcad_tmp
 Raw CAD information from "inpname".
character(len=oft_path_slen) filename = 'none'
 Name of T3D input file for mesh.
character(len=oft_path_slen) inpname = 'none'
 Name of T3D input file for geometry (Used to retrieve CAD objects).
integer(i4), parameter, public mesh_t3d_id = 1
type(t3d_cadlink), dimension(:), pointer ml_cad_link => NULL()
 ML CAD linkage.
type(t3d_cadgeom), dimension(:), pointer ml_cad_rep => NULL()
 ML CAD representation array.
logical, dimension(3) ref_per = .FALSE.
 Character flag for periodic reflections.
character(len=3) reflect = ''
 Character flag for mesh reflection (eg. 'xy').
real(r8zstretch = 1.d0
 Scale for z-coordinates (useful for cylindrical pinch studies).

Function/Subroutine Documentation

◆ mesh_t3d_add_quad()

subroutine, public mesh_t3d_add_quad ( type(multigrid_mesh), intent(inout) mg_mesh)

Add quadratic mesh node points using CAD model.

◆ mesh_t3d_cadconv()

subroutine mesh_t3d_cadconv
private

Convert T3D CAD representation to code represenation.

◆ mesh_t3d_cadlink()

subroutine, public mesh_t3d_cadlink ( class(oft_mesh), intent(inout) mesh)

Link T3D CAD objects to mesh entities for use in refinement.

◆ mesh_t3d_cadsync()

subroutine, public mesh_t3d_cadsync ( type(multigrid_mesh), intent(inout) mg_mesh)

Synchronize T3D geometry information.

◆ mesh_t3d_geom()

subroutine mesh_t3d_geom
private

Read in T3D geometry information from file 'inpname'.

  • CAD vertices
  • Weight points
  • Curves
  • Surfaces
Note
Limited to quadratic curves and dual quadratic surfaces. Cubic curves and surfaces are not implemented at this time.

◆ mesh_t3d_load()

subroutine, public mesh_t3d_load ( type(multigrid_mesh), intent(inout) mg_mesh)

Read in t3d mesh file from file "filename".

  • Read in T3D options from input file
  • Read in mesh points and cells
  • Read in surface IDs for CAD edges and faces

◆ mesh_t3d_reffix()

subroutine, public mesh_t3d_reffix ( type(multigrid_mesh), intent(inout) mg_mesh)

Adjust boundary points to CAD boundary.

◆ mesh_t3d_reflect()

subroutine mesh_t3d_reflect ( class(oft_mesh), intent(inout) mesh,
integer(i4), intent(in) k,
real(r8), intent(in) tol,
logical, intent(in) per_flag )
private

Reflect a T3D mesh and CAD model across a plane.

Parameters
[in]kIndex of plane normal coordinate ( eg. 1 -> y-z plane )
[in]tolTolerance for marking point as on the reflection plane
[in]per_flagFlag for periodicity

◆ mesh_t3d_set_periodic()

subroutine, public mesh_t3d_set_periodic ( class(oft_mesh), intent(inout) mesh)

Needs docs.

◆ mesh_t3d_surfconst()

subroutine mesh_t3d_surfconst ( integer(i4), intent(in) si,
type(cad_surf), intent(out) surf )
private

Construct CAD surface object.

Parameters
[in]siIndex of CAD surface to use as source
[out]surfSurface object

◆ smesh_t3d_load()

subroutine, public smesh_t3d_load ( type(multigrid_mesh), intent(inout) mg_mesh)

Read in t3d mesh file from file "filename".

  • Read in T3D options from input file
  • Read in mesh points and cells
  • Read in surface IDs for CAD edges and faces

Variable Documentation

◆ cad_link

type(t3d_cadlink), pointer cad_link => NULL()
private

Linkage of mesh to CAD geometry.

◆ cad_rep

type(t3d_cadgeom), pointer cad_rep => NULL()
private

CAD representation.

◆ cad_tmp

type(t3d_cad) cad_tmp
private

Raw CAD information from "inpname".

◆ filename

character(len=oft_path_slen) filename = 'none'
private

Name of T3D input file for mesh.

◆ inpname

character(len=oft_path_slen) inpname = 'none'
private

Name of T3D input file for geometry (Used to retrieve CAD objects).

◆ mesh_t3d_id

integer(i4), parameter, public mesh_t3d_id = 1

◆ ml_cad_link

type(t3d_cadlink), dimension(:), pointer ml_cad_link => NULL()
private

ML CAD linkage.

◆ ml_cad_rep

type(t3d_cadgeom), dimension(:), pointer ml_cad_rep => NULL()
private

ML CAD representation array.

◆ ref_per

logical, dimension(3) ref_per = .FALSE.
private

Character flag for periodic reflections.

◆ reflect

character(len=3) reflect = ''
private

Character flag for mesh reflection (eg. 'xy').

◆ zstretch

real(r8) zstretch = 1.d0
private

Scale for z-coordinates (useful for cylindrical pinch studies).