Several general UDFs are used as part of the MHD model implementation.
DEFINE_INIT(mhd_init,...) is an initialization function called during the general case initialization
to set up the external magnetic field and initialize MHD model parameters
and variables.
DEFINE_ADJUST(mhd_adjust,...) is called at the start of each iteration. It is used to adjust the
magnetic boundary conditions and update MHD related variables and
properties.