You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-21Lines changed: 17 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,10 +66,9 @@ token = "..."
66
66
The exact contents of both of the above options can be obtained directly by clicking the **Create new run** button on the web UI. Note that the environment variables have preference over the config file.
67
67
68
68
## Usage example
69
-
{Replace the example below with a similar example exhibiting how to use your Connector. The example for the FDS (Fire Dynamics Simulator) connector is given below:}
70
69
71
70
```python
72
-
fromsimvue_fds.connector importFDSRun
71
+
fromsimvue_openfoam.connector importOpenfoamRun
73
72
74
73
...
75
74
@@ -79,45 +78,42 @@ if __name__ == "__main__":
79
78
80
79
# Using a context manager means that the status will be set to completed automatically,
81
80
# and also means that if the code exits with an exception this will be reported to Simvue
82
-
withFDSRun() as run:
81
+
withOpenfoamRun() as run:
83
82
84
83
# Specify a run name, along with any other optional parameters:
85
84
run.init(
86
-
name='my-fds-simulation',# Run name
87
-
metadata= {'number_fires': 3}, # Metadata
88
-
tags= ['fds', 'multiple-fires'],# Tags
89
-
description='FDS simulation of fires in a parking garage.', # Description
90
-
folder='/fds/parking-garage/trial_1'# Folder path
85
+
name='my-openfoam-simulation', # Run name
86
+
metadata= {'angle_of_attack': 30},# Metadata
87
+
tags= ['fds', 'airfoil', '2D'], # Tags
88
+
description='OpenFOAM simulation of a 2D airfoil.',# Description
0 commit comments