Corfield
 All Classes Namespaces Files Functions Variables Pages
Brief

For a given magnetogram, compute magnetic field lines from Sun surface to source surface (2.5 Rs).

Installation

Download repository: ``` git clone https://gitlab.irap.omp.eu/motcor_models/CORFIELD_MOTCOR.git ```

Need:

Compilation

In DEVEL/makefile, change (if needed) FC and FITSPATH variables. Go into DEVEL folder: ``` cd CORFIELD_MOTCOR/DEVEL make corfield Executablecorfield``` must be created in DEVEL.

Launch

Change dir.input/corfield_params.nml. A magnetogram must be present (same path as magmappath's parameter of config file). ``` ./corfield ```

Outputs

All output files are in dir.output.

Python wrapper (F2py): Compilation

In DEVEL/makefile, change (if needed) variables F2PY_PATH, F2PY_INCLUDE, F2PY_SUFFIX. Then: ``` cd CORFIELD_MOTCOR/DEVEL make f2py ```

Python wrapper (F2py): Launch

Usage of corfield wrapper in a python script: ``` import corfield ``` See f2py_example.py for an example.

Documentation

``` doxygen DEVEL/dir.doc/Doxyfile or call_doxygen ``` Html outputs are in html/index.html.

Latex files are in latex/ folder. For creating the Latex equivalent of Html outputs run: ``` cd latex pdflatex refman.tex ```