Skip to content

Commit c7248fe

Browse files
Updates examples for latest release (#1063)
* update docstrings * fixed BET example * fixed ID in geometry report * removed legacy file * fixed linter
1 parent 2b6635d commit c7248fe

File tree

4 files changed

+5
-19
lines changed

4 files changed

+5
-19
lines changed

examples/post_processing/report/geometry_to_report.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from flow360.plugins.report.utils import Average, DataItem, Delta
1515
from flow360.version import __solver_version__
1616

17-
project_id = "prj-75356e9e-49fc-442e-9183-473f117b6fab" # if running for the first time
17+
project_id = None # if running for the first time
1818

1919
# then replace it with your project ID to avoid re-creation of projects. You can find project ID on web GUI:
2020
# project_id = "prj-...."

flow360/component/simulation/migration/BETDisk.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,9 @@ def read_single_v1_BETDisk(
171171
--------
172172
Create a BET disk from flow360.json.
173173
174-
>>> param = fl.BETDisk.from_flow360(
175-
... file_path="flow360.json",
176-
... mesh_unit=1 * fl.u.m,
174+
>>> param = BETDisk.read_single_v1_BETDisk(
175+
... file_path="BET_Flow360.json",
176+
... mesh_unit=u.m,
177177
... freestream_temperature = 288.15 * fl.u.K,
178178
... bet_disk_name: str = "BETDisk"
179179
... )
@@ -216,7 +216,7 @@ def read_all_v1_BETDisks(
216216
--------
217217
Create a BET disk from flow360.json.
218218
219-
>>> param = fl.BETDisk.from_flow360(
219+
>>> param = read_all_v1_BETDisks(
220220
... file_path="flow360.json",
221221
... mesh_unit=1 * fl.u.m,
222222
... freestream_temperature = 288.15 * fl.u.K,

flow360/examples/betDisk/disk0.json renamed to flow360/examples/betExampleData/disk0.json

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,20 +1069,6 @@
10691069
"value": 133.97401803472948
10701070
},
10711071
"private_attribute_constructor": "default",
1072-
"private_attribute_input_cache": {
1073-
"angle_unit": null,
1074-
"blade_line_chord": null,
1075-
"chord_ref": null,
1076-
"entities": null,
1077-
"file": null,
1078-
"initial_blade_direction": null,
1079-
"length_unit": null,
1080-
"mesh_unit": null,
1081-
"n_loading_nodes": null,
1082-
"number_of_blades": null,
1083-
"omega": null,
1084-
"rotation_direction_rule": null
1085-
},
10861072
"reynolds_numbers": [
10871073
1.0,
10881074
1000.0,
File renamed without changes.

0 commit comments

Comments
 (0)