-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'remotes/origin/main' into feat/section_…
…data_from_rst # Conflicts: # src/ansys/dpf/composites/server_helpers/_versions.py
- Loading branch information
Showing
14 changed files
with
1,638 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# Contains minimum requirements that we support | ||
numpy == 1.22.0 | ||
matplotlib == 3.5.0 | ||
ansys-dpf-core == 0.7.3 | ||
ansys-dpf-core == 0.8.0 | ||
pyvista == 0.36.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
from dataclasses import dataclass | ||
|
||
from ansys.dpf.core import DataSources, Field, Operator, PropertyField | ||
|
||
from ansys.dpf.composites.unit_system import UnitSystemProvider | ||
|
||
|
||
@dataclass(frozen=True) | ||
class _ReferenceSurfaceMeshAndMappingField: | ||
mesh: Field | ||
mapping_field: Field | ||
|
||
|
||
def _get_reference_surface_and_mapping_field( | ||
data_sources: DataSources, unit_system: UnitSystemProvider | ||
) -> _ReferenceSurfaceMeshAndMappingField: | ||
ref_surface_operator = Operator("composite::reference_surface_operator") | ||
ref_surface_operator.inputs.data_sources.connect(data_sources) | ||
ref_surface_operator.inputs.unit_system.connect(unit_system) | ||
return _ReferenceSurfaceMeshAndMappingField( | ||
mesh=ref_surface_operator.outputs.mesh(), | ||
mapping_field=ref_surface_operator.outputs.mapping_field(), | ||
) | ||
|
||
|
||
def _get_map_to_reference_surface_operator( | ||
reference_surface_and_mapping_field: _ReferenceSurfaceMeshAndMappingField, | ||
element_layer_indices_field: PropertyField, | ||
) -> Operator: | ||
map_to_reference_surface_operator = Operator("composite::map_to_reference_surface_operator") | ||
map_to_reference_surface_operator.inputs.mapping_field.connect( | ||
reference_surface_and_mapping_field.mapping_field | ||
) | ||
map_to_reference_surface_operator.inputs.mesh.connect(reference_surface_and_mapping_field.mesh) | ||
map_to_reference_surface_operator.inputs.layers_per_element.connect(element_layer_indices_field) | ||
return map_to_reference_surface_operator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.