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
Holes can be defined using the `ThinCurr_compute_holes.py` script. This script analyzes the toplogy of a given
213
+
Holes can be defined using the `OFT_ThinCurr_holes.py` script. This script analyzes the toplogy of a given
214
214
mesh and automatically locates and defines needed hole elements. This is now the recommended way of defining holes in
215
215
ThinCurr models, although \ref doc_tw_dep_leg_holes "manual definition" is also still supported.
216
216
217
+
The script should be available in one of two ways depending on the installation/build setup:
218
+
- If OFT is installed via `pip` or similar, then it should be available via command line as `OFT_ThinCurr_holes` in any environment where OFT is also available (eg. virtual environment)
219
+
- If OFT is installed any other way, including installation from source, the `OFT_ThinCurr_holes.py` script will be located in the `python` directory of the install or build folder
220
+
221
+
217
222
\subsection doc_tw_main_close "Closure" elements
218
223
As stated above the fact that the solution depends only on the gradient and not on the absolute value of \f$ \phi \f$ itself can
219
224
introduce a gauge ambiguity, resulting in redundant degrees of freedom. In the cases considered above this is resolved by keeping
@@ -223,7 +228,7 @@ potential to zero at that point. We call these elements "closure" elements as th
Copy file name to clipboardExpand all lines: src/docs/ThinCurr/thincurr_example1.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,9 +15,9 @@ During the run you will see it report a bunch of general information and then it
15
15
16
16
# Post processing
17
17
18
-
Once complete you can now generate XDMF files suitable for visualization of results using the [VisIt](https://visit-dav.github.io/visit-website/index.html) code. This is a two step process. First, rerun the code as above but with `plot_run=T` in the `thincurr_eig_options` group. Once complete, you need to run the `build_xdmf.py` script, which generates XDMF metadata files that tells VisIt how to read the data. This can be done using the following command
18
+
Once complete you can now generate XDMF files suitable for visualization of results using the [VisIt](https://visit-dav.github.io/visit-website/index.html) code. This is a two step process. First, rerun the code as above but with `plot_run=T` in the `thincurr_eig_options` group. Once complete, you need to run the `OFT_build_xdmf.py` script, which generates XDMF metadata files that tells VisIt how to read the data. This can be done using the following command
19
19
20
-
python /path/to/oft/bin/build_xdmf.py
20
+
python /path/to/oft/bin/OFT_build_xdmf.py
21
21
22
22
Next use VisIt to open the `surf_static.xmf` file, which will contain a series of vector fields named as `J_XX` that correspond to the current distributions of the various eigenstates. If you are running this example remotely and using VisIt locally you will need to copy the `mesh.*.h5`, `scalar_dump.*.h5`, `vector_dump.*.h5`, and `*.xmf` files to your local computer for visualization. The first eigenmode `J_01` should look like the figure below.
Copy file name to clipboardExpand all lines: src/docs/ThinCurr/thincurr_example2.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,9 +21,9 @@ Contents of the input files are provided below and in the examples directory und
21
21
22
22
# Post processing
23
23
24
-
Once complete you can now generate VisIt files to visualize the solution as above. First, rerun the code as above but with "plot_run=T" in the `thincurr_td_options` group. Once complete, you need to run the `build_xdmf.py` script, which generates XDMF metadata files that tells VisIt how to read the data. This can be done using the following command
24
+
Once complete you can now generate VisIt files to visualize the solution as above. First, rerun the code as above but with "plot_run=T" in the `thincurr_td_options` group. Once complete, you need to run the `OFT_build_xdmf.py` script, which generates XDMF metadata files that tells VisIt how to read the data. This can be done using the following command
25
25
26
-
python /path/to/oft/bin/build_xdmf.py
26
+
python /path/to/oft/bin/OFT_build_xdmf.py
27
27
28
28
Next use VisIt to open the `surf_out_XXXX.xmf` database, which will contain a series timepoints with the vector field `J`. If you are running this example remotely and using VisIt locally you will need to copy the `mesh.*.h5`, `scalar_dump.*.h5`, `vector_dump.*.h5`, and `*.xmf` files to your local computer for visualization. The solution `J` at the first time point should look like the figure below.
Copy file name to clipboardExpand all lines: src/docs/ThinCurr/thincurr_example3.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,9 +15,9 @@ Contents of the input files are provided below and in the examples directory und
15
15
16
16
# Post processing
17
17
18
-
Once complete you can now generate XDMF files suitable for visualization of results using the [VisIt](https://visit-dav.github.io/visit-website/index.html) code. For frequency-response calculations we do not need to do a separate plotting run, so once complete, you just need to run the `build_xdmf.py` script, which generates XDMF metadata files that tells VisIt how to read the data. This can be done using the following command
18
+
Once complete you can now generate XDMF files suitable for visualization of results using the [VisIt](https://visit-dav.github.io/visit-website/index.html) code. For frequency-response calculations we do not need to do a separate plotting run, so once complete, you just need to run the `OFT_build_xdmf.py` script, which generates XDMF metadata files that tells VisIt how to read the data. This can be done using the following command
19
19
20
-
python /path/to/oft/bin/build_xdmf.py
20
+
python /path/to/oft/bin/OFT_build_xdmf.py
21
21
22
22
Next use VisIt to open the `surf_static.xmf` file, which will contain two vector fields `JRe` and `JIm` that correspond to the current distributions for the real and imaginary components of the solution in the frequency-domain. If you are running this example remotely and using VisIt locally you will need to copy the `mesh.*.h5`, `scalar_dump.*.h5`, `vector_dump.*.h5`, and `*.xmf` files to your local computer for visualization. The real component `JRe` should look like the figure below.
Copy file name to clipboardExpand all lines: src/examples/MUG/Spheromak_heating/MUG_sph_heat.F90
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -335,7 +335,7 @@ END PROGRAM MUG_sph_heat
335
335
!!/
336
336
!!\endverbatim
337
337
!!
338
-
!! Once the post-processing run is complete `bin/build_xdmf.py` can be used to generate `*.xmf` files that can be loaded by
338
+
!! Once the post-processing run is complete `bin/OFT_build_xdmf.py` can be used to generate `*.xmf` files that can be loaded by
339
339
!! [VisIt](https://visit-dav.github.io/visit-website/index.html), [ParaView](https://www.paraview.org/), or other visualization programs.
340
340
!!
341
341
!! \image html MUG_heat_ex-Fields.png "Resulting temperature distribution (shading) and magnetic field (vectors) at the end of the simulation, showing thermal confinement in the core of the torus."
@@ -362,18 +362,18 @@ END PROGRAM MUG_sph_heat
362
362
!!mesh volume 1
363
363
!!
364
364
!!set duplicate block elements off
365
-
!!block 1 add volume 1
365
+
!!block 1 add volume 1
366
366
!!block 1 element type tetra10
367
367
!!
368
368
!!set large exodus file on
369
369
!!export Genesis "cyl_heat.g" overwrite block 1
370
370
!!\endverbatim
371
371
!!
372
-
!! Once complete the mesh should be converted into the native mesh format using the `convert_cubit.py` script as
372
+
!! Once complete the mesh should be converted into the native mesh format using the `OFT_convert_cubit.py` script as
373
373
!! below. The script is located in `bin` following installation or `src/utilities` in the base repo.
0 commit comments