GridData Struct Reference

#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

Detailed Description

Definition at line 138 of file griddata.h.


Field Documentation

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().

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().

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().

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
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().

PetscReal GridData::lenscale

scaling factor for length

Definition at line 149 of file griddata.h.

Referenced by ReadKrn().

local number of faces on the boundary

Definition at line 209 of file griddata.h.

Referenced by BMatrix(), DataMoveData(), and FacNB().

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().

number of boundary faces

Definition at line 208 of file griddata.h.

Referenced by DataMoveData(), EleVertVol(), and FacNB().

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
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
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().

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().

"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

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().

external field

Definition at line 254 of file griddata.h.

Referenced by Hext_cu_Init(), Hexternal(), Hexternal_Init(), and WriteAVS().

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().


The documentation for this struct was generated from the following file:

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