griddata.h File Reference

#include "petscsys.h"
#include "petscts.h"
#include "petscao.h"
#include <assert.h>
Include dependency graph for griddata.h:
This graph shows which files directly or indirectly include this file:

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

for assert statements

#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 Documentation

#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
#define douter ( a,
b,
c,
 )     {(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];}
#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;}
#define MagparFunctionInfoReturn (  )     {PetscGetTime(&t_t2);PetscFunctionReturn(A);}
#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 (  )     {PetscGetTime(&t_t2);PetscPrintf(PETSC_COMM_WORLD,"<< %s::%s took %g s\n\n",__FILE__,__FUNCT__,t_t2-t_t1);CHKMEMQ;PetscFunctionReturn(A);}
#define MagparFunctionProfReturn (  )     {PetscGetTime(&t_t2);PetscFunctionReturn(A);}
#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,
 )     {(e)[0]+=b*(c)[0];(e)[1]+=b*(c)[1];(e)[2]+=b*(c)[2];}
#define my_dcopy ( a,
b,
c,
d,
 )     {(d)[0]=(b)[0];(d)[1]=(b)[1];(d)[2]=(b)[2];}
#define my_ddot ( a,
b,
c,
d,
 )     ((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,
 )     sqrt((b)[0]*(b)[0]+(b)[1]*(b)[1]+(b)[2]*(b)[2])
#define my_dscal ( a,
b,
c,
 )     {(c)[0]*=b;(c)[1]*=b;(c)[2]*=b;}
#define ND   3
#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
#define NV   4
#define RIGID_M_ALPHA   999

Definition at line 119 of file griddata.h.

Referenced by calc_dMdt(), Htot_Gradient(), and myLLGJacobian().


Typedef Documentation

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.


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