Skip to content

Commit

Permalink
Update HeatingCoil.res by CFF files (#1171)
Browse files Browse the repository at this point in the history
  • Loading branch information
rafacanton authored Sep 21, 2023
1 parent 8657574 commit 8e2d341
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 12 deletions.
28 changes: 18 additions & 10 deletions src/ansys/dpf/core/examples/downloads.py
Original file line number Diff line number Diff line change
Expand Up @@ -1541,18 +1541,26 @@ def download_cfx_heating_coil(
>>> from ansys.dpf.core import examples
>>> paths = examples.download_cfx_heating_coil()
>>> paths
{'cas': 'C:\\Users\\user\\AppData\\Local\\ansys-dpf-core\\ansys-dpf-core\\examples\\cfx-heating_coil\\HeatingCoil.res',
'dat': 'C:\\Users\\user\\AppData\\Local\\ansys-dpf-core\\ansys-dpf-core\\examples\\cfx-heating_coil\\HeatingCoil.res'} # noqa: E501
{'cas': 'C:\\Users\\user\\AppData\\Local\\ansys-dpf-core\\ansys-dpf-core\\examples\\cfx-heating_coil\\def.cas.cff',
'dat': 'C:\\Users\\user\\AppData\\Local\\ansys-dpf-core\\ansys-dpf-core\\examples\\cfx-heating_coil\\def.dat.cff'} # noqa: E501
"""
file = _download_file(
"result_files/cfx-heating_coil",
"HeatingCoil.res",
should_upload,
server,
return_local_path,
)
return {"cas": file, "dat": file}
return {
"cas": _download_file(
"result_files/cfx-heating_coil",
"def.cas.cff",
should_upload,
server,
return_local_path,
),
"dat": _download_file(
"result_files/cfx-heating_coil",
"def.dat.cff",
should_upload,
server,
return_local_path,
)
}


def download_cfx_mixing_elbow(
Expand Down
1 change: 0 additions & 1 deletion tests/test_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ def test_results_cfx(cfx_heating_coil, server_type):
"total_pressure",
"density",
"entropy",
"wall_shear_stress",
"temperature",
"total_temperature",
"velocity",
Expand Down
1 change: 0 additions & 1 deletion tests/test_resultinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ def test_print_result_info_with_qualifiers(cfx_heating_coil, server_type):
- total_pressure: Nodal Total Pressure
- density: Nodal Density
- entropy: Nodal Entropy
- wall_shear_stress: Nodal Wall Shear Stress
- temperature: Nodal Temperature
- total_temperature: Nodal Total Temperature
- velocity: Nodal Velocity
Expand Down

0 comments on commit 8e2d341

Please sign in to comment.