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
- Fixed model adaptivity convergence at resolution boundaries to prevent infinite loops for out-of-range switching requests [#252](https://github.com/precice/micro-manager/pull/252)
14
+
- Add function `set_global_id` to the dummies and the example in the integration test [#247](https://github.com/precice/micro-manager/pull/247)
15
+
3
16
## v0.9.0
4
17
5
18
- Refactored `DomainDecomposer` class and added a new variant of non-uniform decomposition [#243](https://github.com/precice/micro-manager/pull/243)
Copy file name to clipboardExpand all lines: docs/configuration.md
+27-3Lines changed: 27 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,10 +7,28 @@ summary: Provide a JSON file to configure the Micro Manager.
7
7
8
8
{% note %} In the preCICE XML configuration the Micro Manager is a participant with the name `Micro-Manager`. {% endnote %}
9
9
10
-
The Micro Manager is configured with a JSON file. Several parameters can be set.
10
+
The Micro Manager is configured with a [JSON](https://en.wikipedia.org/wiki/JSON#Syntax) file. Several parameters can be set, in different sections. For example:
|`micro_file_name`| Path to the file containing the Python importable micro simulation class. If the file is not in the working directory, give the relative path from the directory where the Micro Manager is executed. | - |
@@ -25,6 +43,8 @@ Apart from the base settings, there are three main sections in the configuration
25
43
26
44
## Coupling Parameters
27
45
46
+
These parameters are in the section `coupling_params`.
|`precice_config_file_name`| Path to the preCICE XML configuration file from the current working directory. |
@@ -34,6 +54,8 @@ Apart from the base settings, there are three main sections in the configuration
34
54
35
55
## Simulation Parameters
36
56
57
+
These parameters are in the section `simulation_params`.
58
+
37
59
| Parameter | Description | Default |
38
60
| --- | --- | --- |
39
61
|`macro_domain_bounds`| Minimum and maximum bounds of the macro-domain, having the format `[xmin, xmax, ymin, ymax, zmin, zmax]` in 3D and `[xmin, xmax, ymin, ymax]` in 2D. | - |
@@ -50,6 +72,8 @@ Non-uniform domain decomposition is based on a geometric progression.
50
72
51
73
## Diagnostics
52
74
75
+
These parameters are in the section `diagnostics`.
|`data_from_micro_sims`| Dictionary with the names of the data from the micro simulation to be written to VTK files as keys and `"scalar"` or `"vector"` as values. | - |
@@ -117,7 +141,7 @@ To turn on model adaptivity, set `"model_adaptivity": true` in `simulation_param
|`micro_file_names`| List of paths to the files containing the Python importable micro simulation classes. If the files are not in the working directory, give the relative path from the directory where the Micro Manager is executed. Requires a minimum of 2 files. |
144
+
|`micro_file_names`| List of paths to the files containing the Python importable micro simulation classes, in order of decreasing model fidelity. If the files are not in the working directory, give the relative path from the directory where the Micro Manager is executed. Requires a minimum of 2 files. |
121
145
|`switching_function`| Path to the file containing the Python importable switching function. If the file is not in the working directory, give the relative path from the directory where the Micro Manager is executed. |
122
146
|`micro_stateless`| List of boolean values, whether the respective micro simulation model is stateless and can use model instancing. |
123
147
@@ -161,7 +185,7 @@ The Micro Manager uses the output functionality of preCICE, hence these data set
161
185
## Load balancing
162
186
163
187
Load balancing can be activated by setting `load_balancing` to true.
164
-
It balances based on either the elapsed time required to solve the prior iteration `type="time""` or the number of active simulations `type=active`.
188
+
It balances based on either the elapsed time required to solve the prior iteration `type="time"` or the number of active simulations `type="active"`.
165
189
One Initial load balancing step is performed, prior to any computation (assuming equal workload for time based load balancing or the current active counts for `active` load balancing.).
166
190
Subsequently, in the following iteration another load balancing step is performed based. (This is mainly for the time based balancing to use the just acquired timings.)
167
191
Afterwards balancing is performed `every_n_time_windows`.
Copy file name to clipboardExpand all lines: docs/micro-simulation-convert-to-library.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,6 +69,21 @@ class MicroSimulation: # Name is fixed
69
69
It will be called with frequency set by configuration option `simulation_params: micro_output_n`
70
70
This function is *optional*.
71
71
"""
72
+
73
+
defset_global_id(self, sim_id):
74
+
"""
75
+
Reset the global ID of the micro simulation.
76
+
77
+
Parameters
78
+
----------
79
+
sim_id : int
80
+
New global ID of the simulation instance.
81
+
"""
82
+
83
+
defget_global_id(self):
84
+
"""
85
+
Return the global ID of the simulation.
86
+
"""
72
87
```
73
88
74
89
A dummy code of a sample MicroSimulation class can be found in the [examples/python-dummy/micro_dummy.py](https://github.com/precice/micro-manager/blob/develop/examples/python-dummy/micro_dummy.py) directory.
Copy file name to clipboardExpand all lines: docs/model-adaptivity.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -169,3 +169,5 @@ The output is expected to be an integer and is interpreted in the following mann
169
169
| 0 | No resolution change |
170
170
| -1 | Increase model fidelity by one (go back one in list) |
171
171
| 1 | Decrease model fidelity by one (go one ahead in list) |
172
+
173
+
If the switching function requests a change beyond the available resolution range, the request is ignored and does not trigger another model-adaptivity iteration.
0 commit comments