field.h File Reference

#include "griddata.h"
Include dependency graph for field.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int Hcubic_Energy (GridData *gdata, Vec VMom, PetscReal *energy)
int Hcubic (GridData *gdata, Vec VHtotsum)
int Hdemag_Energy (GridData *gdata, Vec VMom, PetscReal *energy)
int Hdemag (GridData *gdata, Vec VHtotsum)
int Helastic_Energy (GridData *gdata, Vec VMom, PetscReal *energy)
int Helastic (GridData *gdata, Vec VHtotsum)
int Hexchani_Energy (GridData *gdata, Vec VMom, PetscReal *energy)
int Hexchani (GridData *gdata, Vec VHtotsum)
int Hexternal_Energy (GridData *gdata, Vec VMom, PetscReal *energy)
int Hexternal (GridData *gdata, Vec VHtotsum)
PetscReal Hexternal_hext ()
int Hext_ho (GridData *gdata, Vec VHextsum, PetscReal *hext)
int Hext_ho_hstep (GridData *gdata)
int Hext_ho_hsweep (GridData *gdata)
int Hext_kq (GridData *gdata, Vec VHextsum, PetscReal *hext)
int Hext_cu (GridData *gdata, Vec VHextsum, PetscReal *hext)
int Hext_py (GridData *gdata, Vec VHextsum, PetscReal *hext)
int Htot_EminiEnergy (GridData *gdata, PetscReal *f)
int Htot_Energy (GridData *gdata)
int Htot_Gradient (GridData *gdata)
int Htot (GridData *gdata)
int BMatrix (GridData *gdata, Mat *Bmatrix)
int Bele (PetscReal *bvert, PetscReal *facv1, PetscReal *facv2, PetscReal *facv3, PetscReal *matele)
int MpHext (Vec M, PetscReal *vres)
int read_hstep_file (FILE *fd, PetscReal **indata, const int col)
PetscScalar get_scalf_hstep (PetscReal hstep_fdata[], PetscReal hstep)

Function Documentation

int Bele ( PetscReal *  bvert,
PetscReal *  facv1,
PetscReal *  facv2,
PetscReal *  facv3,
PetscReal *  matele 
)

Definition at line 38 of file bele.c.

References D_EPS, douter, my_daxpy, my_dcopy, my_ddot, my_dnrm2, my_dscal, ND, and PointFromPlane().

Referenced by BMatrix().

Here is the call graph for this function:

Here is the caller graph for this function:

int BMatrix ( GridData gdata,
Mat *  Bmatrix 
)
PetscScalar get_scalf_hstep ( PetscReal  hstep_fdata[],
PetscReal  hstep 
)

Definition at line 142 of file hstep_file.c.

References HSTEPCOL.

Referenced by Hext_ho_hstep().

Here is the caller graph for this function:

int Hcubic ( GridData gdata,
Vec  VHtotsum 
)

Definition at line 64 of file hcubic.c.

References Hcubic_Init(), GridData::ln_vert, GridData::M, MagparFunctionInfoBegin, MagparFunctionInfoReturn, MagparFunctionProfReturn, ND, NP, GridData::propdat, GridData::vertprop, and GridData::VMs3.

Referenced by Htot(), and Htot_Gradient().

Here is the call graph for this function:

Here is the caller graph for this function:

int Hcubic_Energy ( GridData gdata,
Vec  VMom,
PetscReal *  energy 
)

Definition at line 198 of file hcubic.c.

References MagparFunctionInfoBegin, MagparFunctionInfoReturn, and MagparFunctionProfReturn.

Referenced by CalcEnergy().

Here is the caller graph for this function:

int Hdemag ( GridData gdata,
Vec  VHtotsum 
)

Definition at line 774 of file hdemag.c.

References __FUNCT__, Hdemag_Init(), ksp_Au1, ksp_Au2, GridData::M, MagparFunctionInfoBegin, MagparFunctionInfoReturn, MagparFunctionProfReturn, GridData::mode, GridData::time, GridData::tscale, and GridData::VHdem.

Referenced by Htot(), and Htot_Gradient().

Here is the call graph for this function:

Here is the caller graph for this function:

int Hdemag_Energy ( GridData gdata,
Vec  VMom,
PetscReal *  energy 
)

Definition at line 1063 of file hdemag.c.

References MagparFunctionInfoBegin, MagparFunctionInfoReturn, MagparFunctionProfReturn, and GridData::VHdem.

Referenced by CalcEnergy().

Here is the caller graph for this function:

int Helastic ( GridData gdata,
Vec  VHtotsum 
)

Definition at line 186 of file helastic.c.

References Helastic_Init(), GridData::hscale, GridData::ln_vert, GridData::M, MagparFunctionInfoBegin, MagparFunctionInfoReturn, MagparFunctionProfReturn, MU0, ND, NP, NPE, GridData::propdat, and GridData::vertprop.

Referenced by Htot(), and Htot_Gradient().

Here is the call graph for this function:

Here is the caller graph for this function:

int Helastic_Energy ( GridData gdata,
Vec  VMom,
PetscReal *  energy 
)

Definition at line 391 of file helastic.c.

References MagparFunctionInfoBegin, MagparFunctionInfoReturn, and MagparFunctionProfReturn.

Referenced by CalcEnergy().

Here is the caller graph for this function:

int Hexchani ( GridData gdata,
Vec  VHtotsum 
)

Definition at line 421 of file hexch_ani.c.

References Ad2E_dMidMk, Hexchani_Init(), GridData::M, MagparFunctionInfoBegin, MagparFunctionInfoReturn, MagparFunctionProfReturn, and GridData::VHexchani.

Referenced by Htot(), and Htot_Gradient().

Here is the call graph for this function:

Here is the caller graph for this function:

int Hexchani_Energy ( GridData gdata,
Vec  VMom,
PetscReal *  energy 
)

Definition at line 447 of file hexch_ani.c.

References MagparFunctionInfoBegin, MagparFunctionInfoReturn, MagparFunctionProfReturn, and GridData::VHexchani.

Referenced by CalcEnergy().

Here is the caller graph for this function:

int Hext_cu ( GridData gdata,
Vec  VHextsum,
PetscReal *  hext 
)

Definition at line 96 of file hext_cu.c.

References Hext_cu_Init(), MagparFunctionInfoBegin, MagparFunctionInfoReturn, and MagparFunctionProfReturn.

Referenced by Hexternal().

Here is the call graph for this function:

Here is the caller graph for this function:

int Hext_ho ( GridData gdata,
Vec  VHextsum,
PetscReal *  hext 
)

Definition at line 387 of file hext_ho.c.

References D_EPS, getscalf(), Hext_ho_hsweep(), Hext_ho_Init(), MagparFunctionInfoBegin, MagparFunctionInfoReturn, MagparFunctionProfReturn, ND, GridData::time, GridData::tscale, and VecSetVec().

Referenced by Hexternal().

Here is the call graph for this function:

Here is the caller graph for this function:

int Hext_ho_hstep ( GridData gdata  ) 

Definition at line 67 of file hext_ho.c.

References GridData::equil, get_scalf_hstep(), GridData::hscale, MagparFunctionInfoBegin, MagparFunctionInfoReturn, GridData::mode, and MU0.

Referenced by CheckIterationEmini(), and CheckIterationLLG().

Here is the call graph for this function:

Here is the caller graph for this function:

int Hext_ho_hsweep ( GridData gdata  ) 

Definition at line 102 of file hext_ho.c.

References GridData::hscale, MagparFunctionInfoBegin, MagparFunctionInfoReturn, GridData::mode, MU0, and GridData::time.

Referenced by Hext_ho().

Here is the caller graph for this function:

int Hext_kq ( GridData gdata,
Vec  VHextsum,
PetscReal *  hext 
)

Definition at line 171 of file hext_kq.c.

References Hext_kq_Init(), MagparFunctionInfoBegin, MagparFunctionInfoReturn, and MagparFunctionProfReturn.

Referenced by Hexternal().

Here is the call graph for this function:

Here is the caller graph for this function:

int Hext_py ( GridData gdata,
Vec  VHextsum,
PetscReal *  hext 
)

Definition at line 163 of file hext_py.c.

References hext_f(), Hext_py_Init(), MagparFunctionInfoBegin, MagparFunctionInfoReturn, MagparFunctionProfReturn, GridData::time, and GridData::tscale.

Referenced by Hexternal().

Here is the call graph for this function:

Here is the caller graph for this function:

int Hexternal ( GridData gdata,
Vec  VHtotsum 
)

Definition at line 55 of file hexternal.c.

References Hext_cu(), Hext_ho(), Hext_kq(), Hext_py(), Hexternal_Init(), MagparFunctionInfoBegin, MagparFunctionProfReturn, and GridData::VHext.

Referenced by Htot(), and Htot_Gradient().

Here is the call graph for this function:

Here is the caller graph for this function:

int Hexternal_Energy ( GridData gdata,
Vec  VMom,
PetscReal *  energy 
)

Definition at line 98 of file hexternal.c.

References MagparFunctionInfoBegin, and MagparFunctionProfReturn.

Referenced by CalcEnergy().

Here is the caller graph for this function:

PetscReal Hexternal_hext (  ) 

Definition at line 113 of file hexternal.c.

References MagparFunctionInfoBegin, and MagparFunctionInfoReturn.

Referenced by CheckIterationLLG(), and WriteLogData().

Here is the caller graph for this function:

int Htot ( GridData gdata  ) 

Definition at line 55 of file htot.c.

References Hcubic(), Hdemag(), Helastic(), Hexchani(), Hexternal(), Htot_Init(), MagparFunctionInfoBegin, MagparFunctionProfReturn, and GridData::VHtot.

Referenced by calc_dMdt(), EminiSolve(), Htot_Gradient(), ParInit(), and Precond().

Here is the call graph for this function:

Here is the caller graph for this function:

int Htot_EminiEnergy ( GridData gdata,
PetscReal *  f 
)

Definition at line 228 of file htot.c.

References CalcEnergy(), GridData::Etot, GridData::M, MagparFunctionInfoBegin, MagparFunctionProfReturn, GridData::mode, GridData::totvol, and GridData::VMs3.

Here is the call graph for this function:

int Htot_Energy ( GridData gdata  ) 

Definition at line 215 of file htot.c.

References CalcEnergy(), GridData::M, MagparFunctionInfoBegin, MagparFunctionProfReturn, and GridData::VMs3.

Referenced by EminiSolve(), ParInit(), Solve(), TaoEvalEnergyGrad(), and WriteLogPid().

Here is the call graph for this function:

Here is the caller graph for this function:

int Htot_Gradient ( GridData gdata  ) 

Definition at line 96 of file htot.c.

References Hcubic(), Hdemag(), Helastic(), Hexchani(), Hexternal(), Htot(), Htot_Init(), GridData::ln_vert, MagparFunctionInfoBegin, MagparFunctionProfReturn, ND, NP, GridData::propdat, RIGID_M_ALPHA, GridData::vertprop, GridData::VHtot, and GridData::VMs3.

Referenced by TaoEvalEnergyGrad().

Here is the call graph for this function:

Here is the caller graph for this function:

int MpHext ( Vec  M,
PetscReal *  vres 
)

Definition at line 54 of file hext_ho.c.

References MagparFunctionInfoBegin, and MagparFunctionInfoReturn.

Referenced by CheckIterationEmini(), CheckIterationLLG(), keepsolving(), and WriteLogData().

Here is the caller graph for this function:

int read_hstep_file ( FILE *  fd,
PetscReal **  indata,
const int  col 
)

Definition at line 46 of file hstep_file.c.

References HSTEPCOL, MagparFunctionLogBegin, and MagparFunctionLogReturn.

Referenced by Hext_ho_hstep_Init().

Here is the caller graph for this function:


magpar - Parallel Finite Element Micromagnetics Package
Copyright (C) 2002-2010 Werner Scholz