#include <griddata.h>
Data Fields | |
char | simname [256] |
int | inp |
PetscReal | time |
int | mode |
PetscReal | hscale |
PetscReal | tscale |
PetscReal | escale |
PetscReal | lenscale |
PetscReal | totvol |
int | equil |
PetscReal | vequil |
global counters of finite element mesh | |
int | n_vert |
int | n_ele |
local counters (on each processor) | |
int | ln_vert |
int | ln_ele |
vertex data | |
PetscReal * | vertxyz |
int * | vertl2g |
int * | vertnewproc |
Vec | vertvol |
int * | vertprop |
element data | |
int * | elevert |
int * | eleprop |
int * | elel2g |
int * | elenewproc |
Vec | elevol |
PetscReal | elenmax |
int * | elevertall |
int * | mesh2nodal_ia |
int * | mesh2nodal_ja |
int * | mesh2dual_ia |
int * | mesh2dual_ja |
surface data | |
int | n_vert_bnd |
int | n_bnd_fac |
int | ln_bnd_fac |
int * | vertbndg2bnd |
int * | bndfacvert |
material properties | |
int | n_prop |
PetscReal * | propdat |
Matrices and vectors | |
Vec | M |
Vec | VHdem |
Vec | VMs3 |
PetscReal | Edem |
Vec | VHexchani |
PetscReal | Eexchani |
Vec | VHext |
PetscReal | Eext |
Vec | VHtot |
PetscReal | Etot |
Definition at line 138 of file griddata.h.
int* GridData::bndfacvert |
table of vertices which belong to each triangular face
Definition at line 211 of file griddata.h.
Referenced by BMatrix(), DataDestroyInit(), DataMoveData(), and FacNB().
PetscReal GridData::Edem |
magnetostatic energy
Definition at line 247 of file griddata.h.
Referenced by CheckIterationLLG(), Htot_Energy(), WriteLogData(), and WriteLogPid().
PetscReal GridData::Eexchani |
exchange + uniaxial anisotropy energy
Definition at line 249 of file griddata.h.
Referenced by Htot_Energy(), WriteLogData(), and WriteLogPid().
PetscReal GridData::Eext |
Zeeman energy
Definition at line 255 of file griddata.h.
Referenced by Htot_Energy(), WriteLogData(), and WriteLogPid().
int* GridData::elel2g |
local to global element id mapping
Definition at line 187 of file griddata.h.
Referenced by DataMoveData(), DataPartitionElementsSer(), EleVertVol(), MetisPartition(), OptimizeBandwidth(), PermuteData(), Reorder(), TrivialPartitioning(), WriteAVS(), and WriteFEMAVS().
int* GridData::elenewproc |
assignment of elements to new processors
Definition at line 188 of file griddata.h.
Referenced by CheckPartition(), DataMoveData(), DataPartitionElementsSer(), MetisPartition(), OptimizeBandwidth(), PermuteData(), Reorder(), and TrivialPartitioning().
PetscReal GridData::elenmax |
maximum edge length (vertex to vertex) in the mesh
Definition at line 190 of file griddata.h.
Referenced by EleVertVol(), and WriteDatInit().
int* GridData::eleprop |
property id assigned to each element
Definition at line 186 of file griddata.h.
Referenced by bbox2(), CalAfe2fe(), CalAfe2sq(), DataMoveData(), EleVertVol(), Hdemag_Init(), Hexchani_Init(), Hext_ho_Init(), ModifyPropPar(), ModifyPropSer(), PermuteData(), PidSharedArea(), ReadPatran(), RegularRefinement(), SerInit(), VertProp(), WriteAVS(), WriteFEMAVS(), and WriteLogPidInit().
int* GridData::elevert |
each element's corner vertices (global ids)
Definition at line 185 of file griddata.h.
Referenced by bbox2(), CalAfe2fe(), CalAfe2sq(), CheckPartition(), DataMoveData(), DistortMesh(), EleVertVol(), FacNB(), Hdemag_Init(), Hexchani_Init(), Hext_ho_Init(), MetisPartition(), ModifyPropPar(), ModifyPropSer(), OptimizeBandwidth(), PermuteData(), PidSharedArea(), Precond_Init(), ReadMesh(), ReadPatran(), RegularRefinement(), SerInit(), VertBSA(), VertProp(), WriteAVS(), WriteDatInit(), WriteFEMAVS(), and WriteLogPidInit().
int* GridData::elevertall |
each element's corner vertices (bcast to all procs during init.)
Definition at line 193 of file griddata.h.
Referenced by DataDestroyInit(), DataMoveData(), Hdemag_Init(), Hexchani_Init(), PidSharedArea(), and Precond_Init().
Vec GridData::elevol |
element volumes
Definition at line 189 of file griddata.h.
Referenced by EleVertVol(), Hdemag_Init(), Hexchani_Init(), Hext_ho_Init(), PidSharedArea(), Precond_Init(), WriteFEMAVS(), and WriteLogPidInit().
int GridData::equil |
equilibrium reached ? equil++ : equil=0
Definition at line 261 of file griddata.h.
Referenced by CheckIterationEmini(), CheckIterationLLG(), EminiSolve(), Hext_ho_hstep(), ParInit(), Solve(), and WriteLogData().
PetscReal GridData::escale |
scaling factor for energy
Definition at line 148 of file griddata.h.
Referenced by CheckIterationLLG(), ConvTest(), Hexchani_Init(), ReadKrn(), WriteLogData(), WriteLogPid(), WritePNG(), and WritePNG2().
PetscReal GridData::Etot |
total energy
Definition at line 257 of file griddata.h.
Referenced by CheckIterationLLG(), ConvTest(), Htot_Energy(), TaoEvalEnergyGrad(), WriteLogData(), WriteLogPid(), WritePNG(), and WritePNG2().
PetscReal GridData::hscale |
scaling factor of all fields and magnetization to dimensionless units
Definition at line 146 of file griddata.h.
Referenced by EleVertVol(), Helastic(), Hext_ho_hstep(), Hext_ho_hsweep(), Hext_ho_Init(), ReadKrn(), WriteAVS(), WriteDat(), WriteFEMAVS(), and WriteLogData().
int GridData::inp |
number of AVS inp file (initially read or next number to be written)
Definition at line 140 of file griddata.h.
Referenced by CheckIterationEmini(), CheckIterationLLG(), ConvTest(), EleVertVol(), EminiSolve(), keepsolving(), MagSet(), ParInit(), ReadMesh(), SerInit(), Solve(), WriteAVS(), WriteDat(), WriteDatInit(), WriteFEMAVS(), WriteLogData(), WritePNG(), WritePNG2(), and WriteSet().
PetscReal GridData::lenscale |
local number of faces on the boundary
Definition at line 209 of file griddata.h.
Referenced by BMatrix(), DataMoveData(), and FacNB().
int GridData::ln_ele |
local number of elements
Definition at line 169 of file griddata.h.
Referenced by bbox2(), CalAfe2fe(), CalAfe2sq(), DataMoveData(), DistortMesh(), EleVertVol(), Hdemag_Init(), Hexchani_Init(), Hext_ho_Init(), ModifyPropPar(), PidSharedArea(), Precond_Init(), ReadINP(), ReadPatran(), RegularRefinement(), SerInit(), VertBSA(), WriteAVS(), WriteDatInit(), WriteFEMAVS(), and WriteLogPidInit().
local number of vertices
Definition at line 168 of file griddata.h.
Referenced by BMatrix(), CalAfe2fe(), CalAfe2sq(), CalAsq2fe(), calc_dMdt(), DataMoveData(), DistortMesh(), EleVertVol(), EminiSolve(), Hcubic(), Hdemag_Init(), Helastic(), Helastic_Init(), Hexchani_Init(), Hext_cu_Init(), Hext_py_Init(), Htot_Gradient(), MagInit(), myLLGJacobian(), myTSCreateEmini(), myTSCreatePVode(), Precond_Init(), ReadINP(), ReadPatran(), RegularRefinement(), SerInit(), TaoEvalEnergyGrad(), WriteAVS(), WriteDatInit(), WriteFEMAVS(), WriteLogInit(), and WriteLogPidInit().
Vec GridData::M |
magnetization
Definition at line 244 of file griddata.h.
Referenced by CalAfe2fe(), CalAsq2fe(), calc_dMdt(), CheckIterationEmini(), CheckIterationLLG(), ConvTest(), DataMoveData(), EleVertVol(), EminiSolve(), Hcubic(), Hcubic_Init(), Hdemag(), Hdemag_Init(), Helastic(), Helastic_Init(), Hexchani(), Hexchani_Init(), Hext_cu_Init(), Hext_ho_Init(), Hext_py_Init(), Hexternal_Init(), Htot_Energy(), Htot_Init(), keepsolving(), MagInit(), MagSet(), myTSCreateEmini(), myTSCreatePVode(), myTSStepPVode(), ParInit(), PermuteData(), Precond(), Precond_Init(), PVodeReInit(), RegularRefinement(), RHSfunction(), SerInit(), TaoEvalEnergyGrad(), WriteAVS(), WriteDat(), WriteLogData(), WriteLogInit(), WriteLogPid(), WriteLogPidInit(), WritePNG(), and WritePNG2().
Definition at line 198 of file griddata.h.
Referenced by DataDestroyInit(), and DataMoveData().
Definition at line 199 of file griddata.h.
Referenced by DataDestroyInit(), and DataMoveData().
Definition at line 196 of file griddata.h.
Referenced by DataDestroyInit(), DataMoveData(), Hdemag_Init(), Hexchani_Init(), and Precond_Init().
Definition at line 197 of file griddata.h.
Referenced by DataDestroyInit(), DataMoveData(), Hdemag_Init(), Hexchani_Init(), and Precond_Init().
int GridData::mode |
integration method (defined in allopt.txt)
Definition at line 144 of file griddata.h.
Referenced by calc_dMdt(), CheckIterationEmini(), CheckIterationLLG(), ConvTest(), EminiSolve(), Hdemag(), Hext_ho_hstep(), Hext_ho_hsweep(), Hext_ho_Init(), keepsolving(), myTSCreateEmini(), ParInit(), Solve(), TaoEvalEnergyGrad(), and WriteLogPVodeInit().
number of boundary faces
Definition at line 208 of file griddata.h.
Referenced by DataMoveData(), EleVertVol(), and FacNB().
int GridData::n_ele |
number of elements
Definition at line 162 of file griddata.h.
Referenced by CheckPartition(), DataMoveData(), DataPartitionElementsSer(), EleVertVol(), FacNB(), Hdemag_Init(), Hexchani_Init(), MetisPartition(), ModifyPropSer(), OptimizeBandwidth(), PermuteData(), PidSharedArea(), Precond_Init(), ReadPatran(), RegularRefinement(), Reorder(), SerInit(), TrivialPartitioning(), VertProp(), WriteAVS(), and WriteFEMAVS().
int GridData::n_prop |
number of material properties (grains)
Definition at line 217 of file griddata.h.
Referenced by CalAfe2fe(), DataMoveData(), EleVertVol(), Hcubic_Init(), Helastic_Init(), Hexchani_Init(), MagInit(), ModifyPropPar(), ModifyPropSer(), PidSharedArea(), ReadKrn(), ReadPatran(), VertProp(), WriteLogPid(), WriteLogPidInit(), WritePNG2init(), and WritePNGinit().
int GridData::n_vert |
number of vertices
Definition at line 161 of file griddata.h.
Referenced by BMatrix(), CalAfe2fe(), CalAfe2sq(), CalAsq2fe(), CheckPartition(), DataMoveData(), DataPartitionElementsSer(), EleVertVol(), FacNB(), Hdemag_Init(), Hexchani_Init(), MagInit(), MagSet(), MetisPartition(), ModifyPropSer(), myLLGJacobian(), myTSCreateEmini(), myTSCreatePVode(), OptimizeBandwidth(), PermuteData(), PidSharedArea(), Precond_Init(), ReadINP(), ReadPatran(), RegularRefinement(), Reorder(), SerInit(), TrivialPartitioning(), VertProp(), WriteAVS(), WriteDatInit(), WriteFEMAVS(), WriteLogPidInit(), WritePNG2init(), and WritePNGinit().
number of vertices on the boundary
Definition at line 207 of file griddata.h.
Referenced by BMatrix(), DataMoveData(), EleVertVol(), FacNB(), and Hdemag_Init().
PetscReal* GridData::propdat |
NP material properties: 0: theta; 1: phi; 2: K1; 3: K2; 4: Js; 5: A; 6: e_cubic_1_x; 7: e_cubic_1_y; 8: e_cubic_1_z; 9: alpha; 10: e_cubic_2_x; 11: e_cubic_2_y; 12: e_cubic_2_z; 13: e_cubic_3_x; 14: e_cubic_3_y; 15: e_cubic_3_z; 16: anisotropy cubic ? 0-false-uniaxial : 1-cubic
Definition at line 218 of file griddata.h.
Referenced by calc_dMdt(), DataMoveData(), EleVertVol(), Hcubic(), Hcubic_Init(), Hdemag_Init(), Helastic(), Hexchani_Init(), Hext_ho_Init(), Htot_Gradient(), MagSet(), ModifyPropPar(), ModifyPropSer(), myLLGJacobian(), myTSCreateEmini(), ReadKrn(), SerInit(), TaoEvalEnergyGrad(), VertProp(), WriteFEMAVS(), and WriteLogInit().
char GridData::simname[256] |
project name, basename for output files (*.inp, *.off, etc.)
Definition at line 139 of file griddata.h.
Referenced by EleVertVol(), MagSet(), ModifyPropPar(), ReadKrn(), ReadMesh(), ReadPatran(), SerInit(), WriteAVS(), WriteDat(), WriteDatInit(), WriteFEMAVS(), WriteLogInit(), WriteLogPidInit(), WriteLogPVodeInit(), WritePNG(), and WritePNG2().
PetscReal GridData::time |
absolute time
Definition at line 142 of file griddata.h.
Referenced by adjtol(), adjtoldem(), calc_dMdt(), CheckIterationEmini(), CheckIterationLLG(), Hdemag(), Hext_ho(), Hext_ho_hsweep(), Hext_ho_Init(), Hext_py(), keepsolving(), myTSCreateEmini(), myTSStepPVode(), ParInit(), Precond(), Precond_Init(), PVodeInit(), PVodeReInit(), RHSfunction(), WriteLogData(), WriteLogPid(), WriteLogPVode(), WritePNG(), and WritePNG2().
PetscReal GridData::totvol |
total volume of magnetic material (Ms>0)
Definition at line 260 of file griddata.h.
Referenced by EleVertVol(), Hexchani_Init(), Hext_ho_Init(), Htot_Energy(), WriteLogInit(), and WriteLogPid().
PetscReal GridData::tscale |
scaling factor for dimensionless time
Definition at line 147 of file griddata.h.
Referenced by adjtol(), adjtoldem(), CheckIterationEmini(), CheckIterationLLG(), CheckIterationLLG_Init(), Hdemag(), Hext_ho(), Hext_ho_Init(), Hext_py(), keepsolving(), ParInit(), PVodeInit(), PVodeReInit(), ReadKrn(), WriteLogData(), WriteLogPid(), WriteLogPVode(), WritePNG(), and WritePNG2().
PetscReal GridData::vequil |
measure for equilibrium: max(dM/dt) TODO: RM
Definition at line 262 of file griddata.h.
Referenced by CheckIterationLLG(), ConvTest(), ParInit(), and WriteLogData().
mapping global vertex id -> "boundary vertex counter"
Definition at line 210 of file griddata.h.
Referenced by BMatrix(), DataDestroyInit(), DataMoveData(), DistortMesh(), FacNB(), and Hdemag_Init().
int* GridData::vertl2g |
mapping local vertex id -> global vertex id
Definition at line 176 of file griddata.h.
Referenced by BMatrix(), CalAfe2fe(), CalAsq2fe(), CheckPartition(), DataMoveData(), DataPartitionElementsSer(), DistortMesh(), Hext_cu_Init(), Hext_py_Init(), MetisPartition(), myLLGJacobian(), OptimizeBandwidth(), PermuteData(), Precond_Init(), Reorder(), TrivialPartitioning(), WriteAVS(), and WriteFEMAVS().
assignment of vertices to new processors
Definition at line 177 of file griddata.h.
Referenced by CheckPartition(), DataMoveData(), DataPartitionElementsSer(), MetisPartition(), OptimizeBandwidth(), PermuteData(), Reorder(), and TrivialPartitioning().
int* GridData::vertprop |
property id assigned to each vertex
Definition at line 179 of file griddata.h.
Referenced by CalAsq2fe(), calc_dMdt(), DataMoveData(), Hcubic(), Helastic(), Htot_Gradient(), MagSet(), myLLGJacobian(), myTSCreateEmini(), TaoEvalEnergyGrad(), VertProp(), WriteFEMAVS(), and WriteLogInit().
"volume" assigned to each vertex
Definition at line 178 of file griddata.h.
Referenced by EleVertVol(), Hdemag_Init(), WriteFEMAVS(), WriteLogInit(), and WriteLogPidInit().
PetscReal* GridData::vertxyz |
(x,y,z) coordinates of all vertices
Definition at line 175 of file griddata.h.
Referenced by BMatrix(), CalAfe2fe(), DataMoveData(), DistortMesh(), EleVertVol(), FacNB(), Hdemag_Init(), Hexchani_Init(), Hext_cu_Init(), Hext_py_Init(), MagSet(), ModifyPropPar(), ModifyPropSer(), PermuteData(), PidSharedArea(), ReadINP(), ReadMesh(), ReadPatran(), RegularRefinement(), SerInit(), VertBSA(), WriteAVS(), WriteDatInit(), WriteFEMAVS(), WritePNG2init(), and WritePNGinit().
Vec GridData::VHdem |
demagnetizing=magnetostatic field
Definition at line 245 of file griddata.h.
Referenced by adjtoldem(), CheckIterationLLG(), Hdemag(), Hdemag_Energy(), Hdemag_Init(), PVodeInit(), and WriteAVS().
exchange + uniaxial anisotropy field
Definition at line 248 of file griddata.h.
Referenced by Hexchani(), Hexchani_Energy(), Hexchani_Init(), and WriteAVS().
Vec GridData::VHext |
external field
Definition at line 254 of file griddata.h.
Referenced by Hext_cu_Init(), Hexternal(), Hexternal_Init(), and WriteAVS().
Vec GridData::VHtot |
total field
Definition at line 256 of file griddata.h.
Referenced by calc_dMdt(), EminiSolve(), Htot(), Htot_Gradient(), Htot_Init(), myLLGJacobian(), TaoEvalEnergyGrad(), WriteDat(), and WriteLogPid().
Vec GridData::VMs3 |
vertex volume times Ms
Definition at line 246 of file griddata.h.
Referenced by EleVertVol(), Hcubic(), Hexchani_Init(), Hext_ho_Init(), Htot_Energy(), and Htot_Gradient().