doc:user:tutorials:premiertest
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
doc:user:tutorials:premiertest [2015/01/07 11:41] – boman | doc:user:tutorials:premiertest [2016/07/11 15:04] (current) – [Making a film with the results] boemer | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ~~NOTOC~~ |
+ | ====== | ||
===== Preliminary remarks ===== | ===== Preliminary remarks ===== | ||
- | With Metafor, when a new calculation | + | <note important> |
+ | |||
===== Running a test with the GUI ===== | ===== Running a test with the GUI ===== | ||
Line 20: | Line 24: | ||
- The output python window, which displays the text output of the program. | - The output python window, which displays the text output of the program. | ||
- The " | - The " | ||
- | - The " | + | - The " |
- The links. This widget gathers the last loaded modules for faster access. | - The links. This widget gathers the last loaded modules for faster access. | ||
- The " | - The " | ||
Line 30: | Line 34: | ||
A test case of Metafor corresponds to usually one python module. | A test case of Metafor corresponds to usually one python module. | ||
- | Therefore, the first step usually consists in loading this module into memory. This command | + | Therefore, the first step usually consists in loading this module into memory. This operation |
To load a module with the GUI, just find it in the " | To load a module with the GUI, just find it in the " | ||
Line 38: | Line 42: | ||
load(' | load(' | ||
- | in the python command line. This command loads the module '' | + | in the python command line. This command loads the module '' |
- | This command | + | Metafor |
- | setDir(r' | + | If the module to be loaded is not in the " |
- | + | ||
- | If the module to be loaded is not in the " | + | |
- | + | ||
- | rebase(r' | + | |
==== Starting the time integration ==== | ==== Starting the time integration ==== | ||
Line 54: | Line 54: | ||
meta() | meta() | ||
- | This command calls the function '' | + | This command calls the function '' |
- | Then, the time integration procedure opens a 3D graphics window, which will be continuously refreshed during computation. | + | Then, the time integration procedure opens a 3D graphics window, which will be continuously refreshed during computation |
It is possible to close the display windows, and reopen them using the " | It is possible to close the display windows, and reopen them using the " | ||
- | When the integration | + | When the time integration |
- | + | ||
Line 69: | Line 67: | ||
{{ doc: | {{ doc: | ||
- | To load results, the corresponding module must be loaded first, as was done before starting the integration. | + | To load previously-computed |
Then, if the workspace used is the default one, Metafor automatically sets its working directory to it. Otherwise, it must be changed manually, using the workspace window. | Then, if the workspace used is the default one, Metafor automatically sets its working directory to it. Otherwise, it must be changed manually, using the workspace window. | ||
- | Once the right folder is selected, simply locate the FAC files (extension '' | + | Once the right folder is selected, simply locate the "FAC" |
- | To load other results, repeat the operation with another | + | To load other results, repeat the operation with other FAC files. The display window is updated automatically. |
\\ | \\ | ||
\\ | \\ | ||
Line 87: | Line 85: | ||
{{ doc: | {{ doc: | ||
- | For various reasons (power cut, abrupt closure of Metafore...), a simulation may have ended earlier than expected. However, it can be restarted from an intermediate FAC, usually the last one that was written before the breakdown (therefore, several saving points should be planned before running long computations). | + | For various reasons (power cut, abrupt closure of Metafor...), a simulation may have ended earlier than expected. However, it can be restarted from an intermediate FAC, usually the last one that was written before the breakdown (therefore, several saving points should be planned before running long computations). |
This is rather straightforward : | This is rather straightforward : | ||
Line 123: | Line 121: | ||
To show results in a pleasant way, an " | To show results in a pleasant way, an " | ||
- | * First, increase the number of times that results will be saved on disk. (command '' | + | * First, increase the number of times that results will be saved to disk. (command '' |
* Run the test. | * Run the test. | ||
* Load the last FAC file. Set up the scale of displayed scalar values according to their final value. Do the same for vectors, if needed. Then save the graphical options (" | * Load the last FAC file. Set up the scale of displayed scalar values according to their final value. Do the same for vectors, if needed. Then save the graphical options (" | ||
Line 133: | Line 131: | ||
===== Metafor in command line ===== | ===== Metafor in command line ===== | ||
- | {{:doc: | + | {{: |
Should you need to run Metafor in command line, open a command line ('' | Should you need to run Metafor in command line, open a command line ('' |
doc/user/tutorials/premiertest.1420627288.txt.gz · Last modified: 2016/03/30 15:22 (external edit)