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)) | |
| 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 ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| pancake.fem.PancakeMesh.build | ( | self | ) |
| pancake.fem.PancakeMesh.hole_outline | ( | self, | |
| i ) |
Node ids around the stack end face at station i (closed loop, first node not repeated).
| pancake.fem.PancakeMesh.print | ( | self | ) |
| pancake.fem.PancakeMesh.save | ( | self, | |
| path ) |
| pancake.fem.PancakeMesh.snap_end_faces | ( | self, | |
| project ) |
Move the nodes of both end faces with a projection function (e.g. onto a plane).
| pancake.fem.PancakeMesh.topology_section | ( | self, | |
| amplitude = "60 A", | |||
| period = "10 s", | |||
| offset = "-0.01 s" ) |
| pancake.fem.PancakeMesh.write_topology | ( | self, | |
| path, | |||
| ** | kw ) |
|
protected |
|
protected |
|
protected |
|
protected |
| pancake.fem.PancakeMesh.air_tets = [] |
| pancake.fem.PancakeMesh.curve = curve |
| pancake.fem.PancakeMesh.d = float(tapedistance) |
| pancake.fem.PancakeMesh.domain = domain |
| pancake.fem.PancakeMesh.domain_resolution = float(domain_resolution) |
| pancake.fem.PancakeMesh.ds = float(ds) |
| pancake.fem.PancakeMesh.grid = grid |
| pancake.fem.PancakeMesh.J = int(n_across) |
| pancake.fem.PancakeMesh.M = M |
| pancake.fem.PancakeMesh.N = int(numtapes) |
| pancake.fem.PancakeMesh.name = name |
| pancake.fem.PancakeMesh.nodes = [] |
| pancake.fem.PancakeMesh.periodic_pairs = [] |
| dict pancake.fem.PancakeMesh.physicals = {} |
| list pancake.fem.PancakeMesh.slab_tets = [] |
| pancake.fem.PancakeMesh.stack_thickness = h |
| dict pancake.fem.PancakeMesh.surfaces = {} |
| pancake.fem.PancakeMesh.t = t |
| dict pancake.fem.PancakeMesh.tris = {} |
| pancake.fem.PancakeMesh.verbose = bool(verbose) |
| pancake.fem.PancakeMesh.vertex_nodes = [] |
| pancake.fem.PancakeMesh.w = float(tapewidth) |
| pancake.fem.PancakeMesh.workdir = workdir |