BELFEM 0.9.0
Berkeley Lab Finite Element Framework
Loading...
Searching...
No Matches
pancake.fem.PancakeMesh Class Reference

Public Member Functions

 __init__ (self, curve, Domain domain, int numtapes, float tapewidth, float tapedistance, float ds=1.0, int n_across=5, float domain_resolution=8.0, str workdir="/tmp", str name="pancake", bool verbose=True)
 build (self)
 snap_end_faces (self, project)
 hole_outline (self, i)
 save (self, path)
 print (self)
 topology_section (self, amplitude="60 A", period="10 s", offset="-0.01 s")
 write_topology (self, path, **kw)

Public Attributes

 curve = curve
 verbose = bool(verbose)
 domain = domain
 N = int(numtapes)
 w = float(tapewidth)
 d = float(tapedistance)
 ds = float(ds)
 J = int(n_across)
 domain_resolution = float(domain_resolution)
 workdir = workdir
 name = name
list nodes = []
dict tris = {}
dict surfaces = {}
list slab_tets = []
list air_tets = []
list periodic_pairs = []
list vertex_nodes = []
dict physicals = {}
 t = t
 stack_thickness = h
 grid = grid
 M = M

Protected Member Functions

 _add_node (self, p)
 _new_surface (self, role, **meta)
 _tags (self, role, **match)
 _build_stack (self)
 _volume (self, tet)
 _frame_dir (self, p, col)
 _fix_orientation (self)
 _mesh_air (self)
 _assemble (self)
 _validate (self)

Protected Attributes

 _mesh = None
list _station_R = []
list _station_r = []
 _station_tree = cKDTree(np.array(self._station_r))

Constructor & Destructor Documentation

◆ __init__()

pancake.fem.PancakeMesh.__init__ ( self,
curve,
Domain domain,
int numtapes,
float tapewidth,
float tapedistance,
float ds = 1.0,
int n_across = 5,
float domain_resolution = 8.0,
str workdir = "/tmp",
str name = "pancake",
bool verbose = True )

Member Function Documentation

◆ _add_node()

pancake.fem.PancakeMesh._add_node ( self,
p )
protected

◆ _assemble()

pancake.fem.PancakeMesh._assemble ( self)
protected

◆ _build_stack()

pancake.fem.PancakeMesh._build_stack ( self)
protected

◆ _fix_orientation()

pancake.fem.PancakeMesh._fix_orientation ( self)
protected

◆ _frame_dir()

pancake.fem.PancakeMesh._frame_dir ( self,
p,
col )
protected

◆ _mesh_air()

pancake.fem.PancakeMesh._mesh_air ( self)
protected

◆ _new_surface()

pancake.fem.PancakeMesh._new_surface ( self,
role,
** meta )
protected

◆ _tags()

pancake.fem.PancakeMesh._tags ( self,
role,
** match )
protected

◆ _validate()

pancake.fem.PancakeMesh._validate ( self)
protected

◆ _volume()

pancake.fem.PancakeMesh._volume ( self,
tet )
protected

◆ build()

pancake.fem.PancakeMesh.build ( self)

◆ hole_outline()

pancake.fem.PancakeMesh.hole_outline ( self,
i )
Node ids around the stack end face at station i (closed loop, first node not repeated).

◆ print()

pancake.fem.PancakeMesh.print ( self)

◆ save()

pancake.fem.PancakeMesh.save ( self,
path )

◆ snap_end_faces()

pancake.fem.PancakeMesh.snap_end_faces ( self,
project )
Move the nodes of both end faces with a projection function (e.g. onto a plane).

◆ topology_section()

pancake.fem.PancakeMesh.topology_section ( self,
amplitude = "60 A",
period = "10 s",
offset = "-0.01 s" )

◆ write_topology()

pancake.fem.PancakeMesh.write_topology ( self,
path,
** kw )

Member Data Documentation

◆ _mesh

pancake.fem.PancakeMesh._mesh = None
protected

◆ _station_R

list pancake.fem.PancakeMesh._station_R = []
protected

◆ _station_r

list pancake.fem.PancakeMesh._station_r = []
protected

◆ _station_tree

pancake.fem.PancakeMesh._station_tree = cKDTree(np.array(self._station_r))
protected

◆ air_tets

pancake.fem.PancakeMesh.air_tets = []

◆ curve

pancake.fem.PancakeMesh.curve = curve

◆ d

pancake.fem.PancakeMesh.d = float(tapedistance)

◆ domain

pancake.fem.PancakeMesh.domain = domain

◆ domain_resolution

pancake.fem.PancakeMesh.domain_resolution = float(domain_resolution)

◆ ds

pancake.fem.PancakeMesh.ds = float(ds)

◆ grid

pancake.fem.PancakeMesh.grid = grid

◆ J

pancake.fem.PancakeMesh.J = int(n_across)

◆ M

pancake.fem.PancakeMesh.M = M

◆ N

pancake.fem.PancakeMesh.N = int(numtapes)

◆ name

pancake.fem.PancakeMesh.name = name

◆ nodes

pancake.fem.PancakeMesh.nodes = []

◆ periodic_pairs

pancake.fem.PancakeMesh.periodic_pairs = []

◆ physicals

dict pancake.fem.PancakeMesh.physicals = {}

◆ slab_tets

list pancake.fem.PancakeMesh.slab_tets = []

◆ stack_thickness

pancake.fem.PancakeMesh.stack_thickness = h

◆ surfaces

dict pancake.fem.PancakeMesh.surfaces = {}

◆ t

pancake.fem.PancakeMesh.t = t

◆ tris

dict pancake.fem.PancakeMesh.tris = {}

◆ verbose

pancake.fem.PancakeMesh.verbose = bool(verbose)

◆ vertex_nodes

pancake.fem.PancakeMesh.vertex_nodes = []

◆ w

pancake.fem.PancakeMesh.w = float(tapewidth)

◆ workdir

pancake.fem.PancakeMesh.workdir = workdir

The documentation for this class was generated from the following file:
  • examples/pancake/python/pancake/fem.py