#include "petscsys.h"
#include "petscts.h"
#include "petscao.h"
#include <assert.h>
Go to the source code of this file.
Data Structures | |
struct | GridData |
Defines | |
#define | __FUNCT__ "function" |
#define | MagparFunctionLogBegin int ierr;PetscLogDouble t_t1,t_t2;{PetscFunctionBegin;PetscPrintf(PETSC_COMM_WORLD,"\n>> %s::%s\n",__FILE__,__FUNCT__);PetscInfo2(0,"%s%s",Id,Td);PetscGetTime(&t_t1);ierr=0;} |
#define | MagparFunctionLogReturn(A) {PetscGetTime(&t_t2);PetscPrintf(PETSC_COMM_WORLD,"<< %s::%s took %g s\n\n",__FILE__,__FUNCT__,t_t2-t_t1);CHKMEMQ;PetscFunctionReturn(A);} |
#define | MagparFunctionInfoBegin int ierr;PetscLogDouble t_t1,t_t2;{PetscFunctionBegin;PetscGetTime(&t_t1);ierr=0;} |
#define | MagparFunctionInfoReturn(A) {PetscGetTime(&t_t2);PetscFunctionReturn(A);} |
#define | MagparFunctionProfReturn(A) {PetscGetTime(&t_t2);PetscFunctionReturn(A);} |
#define | D_EPS PETSC_MACHINE_EPSILON*100 |
#define | RIGID_M_ALPHA 999 |
#define | my_daxpy(a, b, c, d, e, f) {(e)[0]+=b*(c)[0];(e)[1]+=b*(c)[1];(e)[2]+=b*(c)[2];} |
#define | my_dcopy(a, b, c, d, e) {(d)[0]=(b)[0];(d)[1]=(b)[1];(d)[2]=(b)[2];} |
#define | my_dnrm2(a, b, c) sqrt((b)[0]*(b)[0]+(b)[1]*(b)[1]+(b)[2]*(b)[2]) |
#define | my_dscal(a, b, c, d) {(c)[0]*=b;(c)[1]*=b;(c)[2]*=b;} |
#define | my_ddot(a, b, c, d, e) ((b)[0]*(d)[0]+(b)[1]*(d)[1]+(b)[2]*(d)[2]) |
#define | douter(a, b, c, d) {(d)[0]=(b)[1]*(c)[2]-(b)[2]*(c)[1];(d)[1]=(b)[2]*(c)[0]-(b)[0]*(c)[2];(d)[2]=(b)[0]*(c)[1]-(b)[1]*(c)[0];} |
Defines of numbers | |
#define | ND 3 |
#define | NV 4 |
#define | NF 4 |
#define | NN 3 |
#define | NP 19 |
Defines of indicators | |
#define | C_BND -1 |
#define | C_INT -2 |
#define | C_UNK -4 |
Defines for physical constants | |
#define | MU0 (12.566371e-7) |
#define | GAMMA (2.210173e5) |
element data | |
#define | HAVE_ELEVERTALL |
Typedefs | |
typedef int | PetscInt |
Contains all data to control the simulations. | |
typedef int | PetscBLASInt |
#define __FUNCT__ "function" |
Definition at line 42 of file griddata.h.
Referenced by Hdemag(), main(), ModifyPropPar(), and PSolve().
#define C_BND -1 |
indicator for boundary node/face
Definition at line 104 of file griddata.h.
Referenced by FacNB(), and ModifyPropSer().
#define C_INT -2 |
indicator for interior node/face
Definition at line 105 of file griddata.h.
Referenced by BMatrix(), DistortMesh(), FacNB(), Hdemag_Init(), and ModifyPropSer().
#define C_UNK -4 |
indicator for unknown state
Definition at line 106 of file griddata.h.
Referenced by FacNB(), FilterNodes(), ModifyPropSer(), and RegularRefinement().
#define D_EPS PETSC_MACHINE_EPSILON*100 |
threshold for equality of two real numbers
Definition at line 109 of file griddata.h.
Referenced by AreaCal(), AxesRotation(), Bele(), BMatrix(), CheckIterationLLG(), checkortho(), DistortMesh(), DistPointLine(), EleVertVol(), EminiSolve(), Hcubic_Init(), Hdemag_Init(), Hexchani_Init(), Hext_ho(), Hext_ho_Init(), InitInfo(), PVodeInit(), PVodeReInit(), ReadINP(), ReadKrn(), RenormVec(), SolidAngle(), tetgrad(), WriteLogPid(), WriteLogPidInit(), WritePNG(), WritePNG2(), WritePNG2init(), and WritePNGinit().
#define douter | ( | a, | |||
b, | |||||
c, | |||||
d | ) | {(d)[0]=(b)[1]*(c)[2]-(b)[2]*(c)[1];(d)[1]=(b)[2]*(c)[0]-(b)[0]*(c)[2];(d)[2]=(b)[0]*(c)[1]-(b)[1]*(c)[0];} |
Definition at line 131 of file griddata.h.
Referenced by AxesRotation(), Bele(), calc_dMdt(), checkortho(), DistPointLine(), EminiSolve(), PointFromPlane(), SolidAngle(), TaoEvalEnergyGrad(), and triarea().
#define GAMMA (2.210173e5) |
gamma = mu0*g*|e|/(2*me) [m/As] = 1.758799e+11 [1/(Ts)] (cf. Diplomarbeit Scholz S. 14)
Definition at line 115 of file griddata.h.
Referenced by Hext_ho_Init(), and ReadKrn().
#define HAVE_ELEVERTALL |
Definition at line 194 of file griddata.h.
#define MagparFunctionInfoBegin int ierr;PetscLogDouble t_t1,t_t2;{PetscFunctionBegin;PetscGetTime(&t_t1);ierr=0;} |
Definition at line 82 of file griddata.h.
Referenced by adjtol(), adjtoldem(), ascat(), calc_dMdt(), CalcEnergy(), Cart2Sphere(), Cart2SphereDiff(), CheckIterationEmini(), CheckIterationLLG(), ConvTest(), DistortVec(), edgestat(), EminiSolve(), EquilCheck(), Hcubic(), Hcubic_Energy(), Hdemag(), Hdemag_Energy(), Helastic(), Helastic_Energy(), Hexchani(), Hexchani_Energy(), Hext_cu(), hext_f(), Hext_ho(), Hext_ho_hstep(), Hext_ho_hsweep(), Hext_kq(), Hext_py(), Hexternal(), Hexternal_Energy(), Hexternal_hext(), Htot(), Htot_EminiEnergy(), Htot_Energy(), Htot_Gradient(), Jtimes(), keepsolving(), matcreateseqadj(), MpHext(), myLLGJacobian(), myTSStepPVode(), Precond(), PSolve(), PVodeReInit(), RenormVec(), RHSfunction(), Sphere2Cart(), SynchronizedFastFPrintf(), TaoEvalEnergyGrad(), Vec3VolAvg(), VecSetVec(), WriteAVS(), WriteDat(), WriteLog(), WriteLogData(), WriteLogPid(), WriteLogPVode(), WritePNG(), WritePNG2(), WritePNGfile(), and WriteSet().
#define MagparFunctionInfoReturn | ( | A | ) | {PetscGetTime(&t_t2);PetscFunctionReturn(A);} |
Definition at line 83 of file griddata.h.
Referenced by adjtol(), adjtoldem(), ascat(), Cart2Sphere(), Cart2SphereDiff(), DistortVec(), edgestat(), EquilCheck(), Hcubic(), Hcubic_Energy(), Hdemag(), Hdemag_Energy(), Helastic(), Helastic_Energy(), Hexchani(), Hexchani_Energy(), Hext_cu(), hext_f(), Hext_ho(), Hext_ho_hstep(), Hext_ho_hsweep(), Hext_kq(), Hext_py(), Hexternal_hext(), keepsolving(), matcreateseqadj(), MpHext(), ReadPatran(), RenormVec(), Sphere2Cart(), SynchronizedFastFPrintf(), Vec3VolAvg(), VecSetVec(), WriteAVS(), WriteDat(), WriteLog(), WriteLogData(), WriteLogPid(), WriteLogPVode(), WritePNG(), WritePNG2(), WritePNGfile(), and WriteSet().
#define MagparFunctionLogBegin int ierr;PetscLogDouble t_t1,t_t2;{PetscFunctionBegin;PetscPrintf(PETSC_COMM_WORLD,"\n>> %s::%s\n",__FILE__,__FUNCT__);PetscInfo2(0,"%s%s",Id,Td);PetscGetTime(&t_t1);ierr=0;} |
energy minimization
Definition at line 75 of file griddata.h.
Referenced by AreaCal(), AxesRotation(), bbox2(), BMatrix(), CalAfe2fe(), CalAfe2sq(), CalAsq2fe(), calcbbox(), CheckIterationEmini_Init(), CheckIterationLLG_Init(), CheckPartition(), DataDestroyInit(), DataMoveData(), DataPartitionElementsSer(), DistortMesh(), EleVertVol(), FacNB(), FilterElements(), FilterNodes(), findeleslice(), Hcubic_Init(), Hdemag_Init(), Helastic_Init(), Hexchani_Init(), Hext_cu_Init(), Hext_ho_hstep_Init(), Hext_ho_ht_Init(), Hext_ho_Init(), Hext_kq_Init(), Hext_py_Init(), Hexternal_Init(), Htot_Init(), InitInfo(), MagInit(), MagSet(), matviewstruct(), Mesh2Dual(), Mesh2Dual2(), Mesh2Nodal(), Mesh2VertEle(), MetisPartition(), ModifyPropPar(), ModifyPropSer(), myTSCreateEmini(), myTSCreatePVode(), OptimizeBandwidth(), ParInit(), PermuteData(), PidSharedArea(), Precond_Init(), PVodeInit(), read_hstep_file(), readht(), ReadINP(), ReadKrn(), ReadMesh(), ReadPatran(), ReadProp(), readxy(), RegularRefinement(), Reorder(), SerInit(), Solve(), TrivialPartitioning(), VertBSA(), VertProp(), WriteDatInit(), WriteFEMAVS(), WriteLogInit(), WriteLogPidInit(), WriteLogPVodeInit(), WritePNG2init(), and WritePNGinit().
#define MagparFunctionLogReturn | ( | A | ) | {PetscGetTime(&t_t2);PetscPrintf(PETSC_COMM_WORLD,"<< %s::%s took %g s\n\n",__FILE__,__FUNCT__,t_t2-t_t1);CHKMEMQ;PetscFunctionReturn(A);} |
Definition at line 76 of file griddata.h.
Referenced by AreaCal(), AxesRotation(), bbox2(), BMatrix(), CalAfe2fe(), CalAfe2sq(), CalAsq2fe(), calcbbox(), CheckIterationEmini_Init(), CheckIterationLLG_Init(), CheckPartition(), DataDestroyInit(), DataMoveData(), DataPartitionElementsSer(), DistortMesh(), EleVertVol(), EminiSolve(), FacNB(), FilterElements(), FilterNodes(), findeleslice(), Hcubic_Init(), Hdemag_Init(), Helastic_Init(), Hexchani_Init(), Hext_cu_Init(), Hext_ho_hstep_Init(), Hext_ho_ht_Init(), Hext_ho_Init(), Hext_kq_Init(), Hext_py_Init(), Hexternal_Init(), Htot_Init(), InitInfo(), MagInit(), MagSet(), matviewstruct(), Mesh2Dual(), Mesh2Dual2(), Mesh2Nodal(), Mesh2VertEle(), MetisPartition(), ModifyPropPar(), ModifyPropSer(), myTSCreateEmini(), myTSCreatePVode(), OptimizeBandwidth(), ParInit(), PermuteData(), PidSharedArea(), Precond_Init(), PVodeInit(), read_hstep_file(), readht(), ReadINP(), ReadKrn(), ReadMesh(), ReadPatran(), ReadProp(), readxy(), RegularRefinement(), Reorder(), SerInit(), Solve(), TrivialPartitioning(), VertBSA(), VertProp(), WriteDatInit(), WriteFEMAVS(), WriteLogInit(), WriteLogPidInit(), WriteLogPVodeInit(), WritePNG2init(), and WritePNGinit().
#define MagparFunctionProfReturn | ( | A | ) | {PetscGetTime(&t_t2);PetscFunctionReturn(A);} |
Definition at line 84 of file griddata.h.
Referenced by calc_dMdt(), CalcEnergy(), CheckIterationEmini(), CheckIterationLLG(), ConvTest(), EquilCheck(), Hcubic(), Hcubic_Energy(), Hdemag(), Hdemag_Energy(), Helastic(), Helastic_Energy(), Hexchani(), Hexchani_Energy(), Hext_cu(), Hext_ho(), Hext_kq(), Hext_py(), Hexternal(), Hexternal_Energy(), Htot(), Htot_EminiEnergy(), Htot_Energy(), Htot_Gradient(), Jtimes(), myLLGJacobian(), myTSStepPVode(), Precond(), PSolve(), PVodeReInit(), RHSfunction(), and TaoEvalEnergyGrad().
#define MU0 (12.566371e-7) |
mu0 = 4*M_PI*1e-7 = 12.566371e-7 Tm/A (=Vs/Am)
Definition at line 114 of file griddata.h.
Referenced by Helastic(), Hext_ho_hstep(), Hext_ho_hsweep(), Hext_ho_Init(), Hext_kq_Init(), ReadKrn(), WriteFEMAVS(), and WriteLogData().
#define my_daxpy | ( | a, | |||
b, | |||||
c, | |||||
d, | |||||
e, | |||||
f | ) | {(e)[0]+=b*(c)[0];(e)[1]+=b*(c)[1];(e)[2]+=b*(c)[2];} |
Definition at line 126 of file griddata.h.
Referenced by AxesRotation(), barycent(), Bele(), calc_dMdt(), DistortMesh(), DistPointLine(), edgestat(), EminiSolve(), PointFromPlane(), SolidAngle(), triarea(), and WriteDatInit().
#define my_dcopy | ( | a, | |||
b, | |||||
c, | |||||
d, | |||||
e | ) | {(d)[0]=(b)[0];(d)[1]=(b)[1];(d)[2]=(b)[2];} |
Definition at line 127 of file griddata.h.
Referenced by AxesRotation(), barycent(), Bele(), CalAfe2fe(), calc_dMdt(), DistortMesh(), DistPointLine(), edgestat(), PidSharedArea(), PointFromPlane(), SolidAngle(), triarea(), and WriteDatInit().
#define my_ddot | ( | a, | |||
b, | |||||
c, | |||||
d, | |||||
e | ) | ((b)[0]*(d)[0]+(b)[1]*(d)[1]+(b)[2]*(d)[2]) |
Definition at line 130 of file griddata.h.
Referenced by AxesRotation(), Bele(), checkortho(), Hdemag_Init(), Hexchani_Init(), and PointFromPlane().
#define my_dnrm2 | ( | a, | |||
b, | |||||
c | ) | sqrt((b)[0]*(b)[0]+(b)[1]*(b)[1]+(b)[2]*(b)[2]) |
Definition at line 128 of file griddata.h.
Referenced by AxesRotation(), Bele(), checkortho(), DistortMesh(), DistPointLine(), edgestat(), MagSet(), RenormVec(), SolidAngle(), triarea(), and WriteDatInit().
#define my_dscal | ( | a, | |||
b, | |||||
c, | |||||
d | ) | {(c)[0]*=b;(c)[1]*=b;(c)[2]*=b;} |
Definition at line 129 of file griddata.h.
Referenced by AxesRotation(), Bele(), CalAfe2fe(), calc_dMdt(), PidSharedArea(), RenormVec(), SolidAngle(), TaoEvalEnergyGrad(), triarea(), WriteDatInit(), WriteLogPid(), WritePNG2init(), and WritePNGinit().
#define ND 3 |
space dimensions (no of cartesian coordinates)
Definition at line 93 of file griddata.h.
Referenced by AxesRotation(), barycent(), bbox2(), Bele(), BMatrix(), CalAfe2fe(), CalAfe2sq(), CalAsq2fe(), calc_dMdt(), calcbbox(), Cart2Sphere(), Cart2SphereDiff(), CheckIterationLLG(), checkortho(), ConvTest(), DataMoveData(), DistortMesh(), DistPointLine(), edgestat(), EleVertVol(), EminiSolve(), EquilCheck(), FacNB(), FilterNodes(), findeleslice(), Hcubic(), Hdemag_Init(), Helastic(), Helastic_Init(), Hexchani_Init(), Hext_cu_Init(), hext_f(), Hext_ho(), Hext_ho_Init(), Hext_kq_Init(), Hext_py_Init(), Htot_Gradient(), keepsolving(), MagInit(), MagSet(), ModifyPropPar(), ModifyPropSer(), myLLGJacobian(), myTSCreateEmini(), myTSCreatePVode(), PermuteData(), PidSharedArea(), PointFromPlane(), Precond_Init(), PVodeReInit(), ReadINP(), ReadPatran(), RegularRefinement(), RenormVec(), SolidAngle(), Sphere2Cart(), TaoEvalEnergyGrad(), triarea(), Vec3VolAvg(), VertBSA(), WriteAVS(), WriteDat(), WriteDatInit(), WriteFEMAVS(), WriteLogData(), WriteLogInit(), WriteLogPid(), WriteLogPidInit(), WritePNG(), WritePNG2(), WritePNG2init(), and WritePNGinit().
#define NF 4 |
number of faces per element
Definition at line 95 of file griddata.h.
Referenced by FacNB(), Mesh2Dual(), ModifyPropSer(), and PidSharedArea().
#define NN 3 |
number of vertices per face
Definition at line 96 of file griddata.h.
Referenced by BMatrix(), CompareFaces(), DataMoveData(), and FacNB().
#define NP 19 |
number of property data
Definition at line 97 of file griddata.h.
Referenced by calc_dMdt(), DataMoveData(), EleVertVol(), FilterElements(), Hcubic(), Hcubic_Init(), Hdemag_Init(), Helastic(), Hexchani_Init(), Hext_ho_Init(), Htot_Gradient(), MagSet(), ModifyPropPar(), myLLGJacobian(), myTSCreateEmini(), ReadKrn(), TaoEvalEnergyGrad(), VertProp(), WriteFEMAVS(), and WriteLogInit().
#define NV 4 |
number of vertices(=degrees of freedom) per element
Definition at line 94 of file griddata.h.
Referenced by CalAfe2fe(), CalAfe2sq(), CalAsq2fe(), calcbbox(), DataMoveData(), DistortMesh(), edgestat(), EleVertVol(), FacNB(), FilterElements(), FilterNodes(), findeleslice(), Hdemag_Init(), Hexchani_Init(), Hext_ho_Init(), matcreateseqadj(), Mesh2Dual(), Mesh2Dual2(), Mesh2Nodal(), Mesh2VertEle(), ModifyPropPar(), ModifyPropSer(), PermuteData(), PidSharedArea(), Precond_Init(), ReadPatran(), RegularRefinement(), tetgrad(), tetnb(), TetSharedVertices(), VertBSA(), VertProp(), WriteAVS(), WriteDatInit(), WriteFEMAVS(), and WriteLogPidInit().
#define RIGID_M_ALPHA 999 |
Definition at line 119 of file griddata.h.
Referenced by calc_dMdt(), Htot_Gradient(), and myLLGJacobian().
typedef int PetscBLASInt |
Definition at line 138 of file griddata.h.
typedef int PetscInt |
Contains all data to control the simulations.
Definition at line 137 of file griddata.h.