Skip to content

Commit

Permalink
Add transient options to stationary wall boundary condition (#3921)
Browse files Browse the repository at this point in the history
* add stationary wall transient options

* improve docstrings

* Update pyaedt/icepak.py

Co-authored-by: Kathy Pippert <[email protected]>

* Update pyaedt/icepak.py

Co-authored-by: Kathy Pippert <[email protected]>

* Update pyaedt/icepak.py

Co-authored-by: Kathy Pippert <[email protected]>

* Update pyaedt/icepak.py

Co-authored-by: Kathy Pippert <[email protected]>

* Update pyaedt/icepak.py

Co-authored-by: Kathy Pippert <[email protected]>

* Update pyaedt/icepak.py

Co-authored-by: Kathy Pippert <[email protected]>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* improve docstrings

* improve docstrings and coverage

* Update pyaedt/icepak.py

---------

Co-authored-by: Kathy Pippert <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Samuel Lopez <[email protected]>
  • Loading branch information
4 people authored Nov 29, 2023
1 parent c8d95ca commit 8f38bd0
Show file tree
Hide file tree
Showing 2 changed files with 421 additions and 283 deletions.
21 changes: 21 additions & 0 deletions _unittest/test_98_Icepak.py
Original file line number Diff line number Diff line change
Expand Up @@ -897,6 +897,16 @@ def test_54_assign_stationary_wall(self):
ht_correlation_value_type="Average Values",
ht_correlation_free_stream_velocity=1,
)
self.aedtapp.create_dataset("ds1", [1, 2, 3], [2, 3, 4], is_project_dataset=False)
assert self.aedtapp.assign_stationary_wall_with_htc(
"surf1",
name=None,
thickness="0mm",
material="Al-Extruded",
htc_dataset="ds1",
ref_temperature="AmbientTemp",
ht_correlation=False,
)
assert self.aedtapp.assign_stationary_wall_with_temperature(
"surf1",
name=None,
Expand Down Expand Up @@ -931,6 +941,17 @@ def test_54_assign_stationary_wall(self):
ext_surf_rad_ref_temp=0,
ext_surf_rad_view_factor=0.5,
)
self.aedtapp.solution_type = "Transient"
assert self.aedtapp.assign_stationary_wall_with_temperature(
"surf1",
name=None,
temperature={"Type": "Transient", "Function": "Sinusoidal", "Values": ["20cel", 1, 1, "1s"]},
thickness="0mm",
material="Al-Extruded",
radiate=False,
radiate_surf_mat="Steel-oxidised-surface",
shell_conduction=False,
)

@pytest.mark.skipif(config["desktopVersion"] < "2023.1" and config["use_grpc"], reason="Not working in 2022.2 GRPC")
def test_55_native_components_history(self):
Expand Down
Loading

0 comments on commit 8f38bd0

Please sign in to comment.