pyoomph.meshes.meshdatacache module
- class pyoomph.meshes.meshdatacache.MeshDataCartesianExtrusion(n_segments=32, default_length=1, phase=0.0, apply_k_mode_expansion=True, use_k_for_length=True, numperiods=1)[source]
Bases:
MeshDataCacheOperatorBaseCan be added as
operatortoMeshFileOutputto extrude the mesh in the z-direction. Most useful combined withMeshDataCombineWithEigenfunctionand Cartesian normal mode stability analysis.- Parameters:
n_segments (
int) – Number of segments in the z-direction.default_length – Default length of the extrusion (when no wave number is available).
phase (
float) – Phase of the extrusion to start with.apply_k_mode_expansion (
bool) – If True, the extrusion will consider the exp(i*k*z) factor of the eigenfunction.use_k_for_length (
bool) – If True, the length of the extrusion will be determined by the wave number (if available, otherwise default_length).numperiods (
float) – Number of periods to extrude (in terms of either default_length or 2*pi/k).
- class pyoomph.meshes.meshdatacache.MeshDataCombineWithEigenfunction(eigenindex, eigen_prefix_real='EigenRe_', eigen_prefix_imag='EigenIm_', eigen_prefix_merged='Eigen_', add_eigen_to_mesh_positions=False)[source]
Bases:
MeshDataCacheOperatorBaseCan be added as
operatortoMeshFileOutputto combine the solution with the eigenfunction data. Both will be written to the same file and can be postprocessed in e.g. Paraview.- Parameters:
eigenindex (
Union[int,Sequence[int]]) – Index of the eigenfunction to combine with the solution. Can be a single index or a list of indices.eigen_prefix_real (
str) – Prefix for the real part of the eigenfunction data.eigen_prefix_imag (
str) – Prefix for the imaginary part of the eigenfunction data.eigen_prefix_merged (
str) – Prefix for the merged eigenfunction data.add_eigen_to_mesh_positions – If True, the eigenfunction data will be added to the mesh positions.
- class pyoomph.meshes.meshdatacache.MeshDataRotationalExtrusion(n_segments=32, angle=6.283185307179586, start_angle=0.0, rotate_eigendata_with_mode_m=True)[source]
Bases:
MeshDataCacheOperatorBaseCan be added as
operatortoMeshFileOutputto extrude the mesh along the azimuthal phi-coordinate. Most useful combined withMeshDataCombineWithEigenfunctionand azimuthal normal mode stability analysis.- Parameters:
n_segments (
int) – Number of segments to extrude the mesh to.angle (
float) – Angle to extrude the mesh to. If larger than 2*pi, it will be cut off at 2*pi.start_angle (
float) – Angle to start the extrusion at.rotate_eigendata_with_mode_m (
bool) – If True, the eigendata will be rotated with the azimuthal mode number m. This is useful for azimuthal normal mode stability analysis.