coconut_tools.pyTDM.core_td.core

TDm object class to inject a flux rope (TDm or RBSL) into a COCONUT simulation.

This class loads configuration parameters, interpolates the background magnetic field, constructs the flux rope field (TDm or RBSL), superposes it to the background field, and exports the result to VTK format. Optionally updates CFmesh for Coolfluid.

Author:

Luis Linan

Classes

TDm(name)

class coconut_tools.pyTDM.core_td.core.TDm(name)[source]

Bases: object

__init__(name)[source]

Initialize the TDm object.

add_TDm_coconut(path, cfmesh)[source]

Add a TDm or RBSL flux rope to a COCONUT simulation.

Parameters:
  • path (str) – Path to the configuration .ini file.

  • cfmesh (bool) – If True, regenerate the CFmesh via Coolfluid.

Return type:

None