crazy_mesh_hybrid.py¶
In this script, we define a mesh in a unit cube,
⭕ To access the source code, click on the [source] button at the right
side or click on
[crazy_mesh_hybrid.py]
.
Dependence may exist. In case of error, check import and install required
packages or download required scripts. © mathischeap.com
- class crazy_mesh_hybrid.CrazyMeshHybrid(c, K)[source]¶
The hybrid version of class
CrazyMesh
.
- class crazy_mesh_hybrid.CrazyMeshHybridGlobalBoundaryDOFs(K, N)[source]¶
The hybrid version of class
CrazyMeshGlobalBoundaryDOFs
.- property TE¶
Find the dofs of an element in which are on boundary of the crazy mesh of elements.
- Returns:
A dict whose keys are ‘x_minus’, ‘x_plus’, ‘y_minus’, ‘y_plus’, ‘z_minus’, ‘z_plus’, and whose values are the global numbering of the dofs on the boundaries indicated by the keys.
- property TF¶
Find the dofs of an element in which are on boundary of the crazy mesh of elements.
- Returns:
A dict whose keys are ‘x_minus’, ‘x_plus’, ‘y_minus’, ‘y_plus’, ‘z_minus’, ‘z_plus’, and whose values are the global numbering of the dofs on the boundaries indicated by the keys.
- property TN¶
Find the dofs of an element in which are on boundary of the crazy mesh of elements.
- Returns:
A dict whose keys are ‘x_minus’, ‘x_plus’, ‘y_minus’, ‘y_plus’, ‘z_minus’, ‘z_plus’, and whose values are the global numbering of the dofs on the boundaries indicated by the keys.
- class crazy_mesh_hybrid.CrazyMeshHybridGlobalNumbering(K, N)[source]¶
The hybrid version of class
CrazyMeshGlobalNumbering
.- property EP¶
Generate a global numbering for the dofs of an element in on a hybrid crazy mesh of elements.
- property FP¶
Generate a global numbering for the dofs of an element in on a hybrid crazy mesh of elements.
- property NP¶
Generate a global numbering for the dofs of an element in on a crazy mesh of elements.
- property TE¶
Generate a global numbering for a discrete trace variable in on a hybrid crazy mesh of elements.
- property TF¶
Generate a global numbering for a discrete trace variable in on a hybrid crazy mesh of elements.
- property TN¶
Generate a global numbering for a discrete trace variable in on a hybrid crazy mesh of elements.
- property VP¶
Generate a global numbering for the dofs of an element in on a hybrid crazy mesh of elements.
Note that for , we obviously can use the numbering for the non-hybrid crazy mesh such it is discontinuous any way.
- class crazy_mesh_hybrid.CrazyMeshHybridLocalBoundaryDOFs(K, N)[source]¶
Like the
CrazyMeshHybridGlobalBoundaryDOFs
, but we now return the local numbering on each boundary.- Parameters:
- property EP¶
Find the dofs of an element in which are on boundary of the crazy mesh of elements.
- Returns:
A dict whose keys are ‘x_minus’, ‘x_plus’, ‘y_minus’, ‘y_plus’, ‘z_minus’, ‘z_plus’, and whose values are the global numbering of the dofs on the boundaries indicated by the keys.
- property FP¶
Find the dofs of an element in which are on boundary of the crazy mesh of elements.
- Returns:
A dict whose keys are ‘x_minus’, ‘x_plus’, ‘y_minus’, ‘y_plus’, ‘z_minus’, ‘z_plus’, and whose values are the global numbering of the dofs on the boundaries indicated by the keys.
- property NP¶
Find the dofs of an element in which are on boundary of the crazy mesh of elements.
- Returns:
A dict whose keys are ‘x_minus’, ‘x_plus’, ‘y_minus’, ‘y_plus’, ‘z_minus’, ‘z_plus’, and whose values are the global numbering of the dofs on the boundaries indicated by the keys.
- property TE¶
Find the dofs of an element in which are on boundary of the crazy mesh of elements.
- Returns:
A dict whose keys are ‘x_minus’, ‘x_plus’, ‘y_minus’, ‘y_plus’, ‘z_minus’, ‘z_plus’, and whose values are the global numbering of the dofs on the boundaries indicated by the keys.
- property TF¶
Find the dofs of an element in which are on boundary of the crazy mesh of elements.
- Returns:
A dict whose keys are ‘x_minus’, ‘x_plus’, ‘y_minus’, ‘y_plus’, ‘z_minus’, ‘z_plus’, and whose values are the global numbering of the dofs on the boundaries indicated by the keys.
- property TN¶
Find the dofs of an element in which are on boundary of the crazy mesh of elements.
- Returns:
A dict whose keys are ‘x_minus’, ‘x_plus’, ‘y_minus’, ‘y_plus’, ‘z_minus’, ‘z_plus’, and whose values are the global numbering of the dofs on the boundaries indicated by the keys.
↩️ Back to Ph.D. thesis complements (ptc).