field.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef FIELD_H
00027 #define FIELD_H
00028
00029 #include "griddata.h"
00030
00031 int Hcubic_Energy(GridData *gdata,Vec VMom,PetscReal *energy);
00032 int Hcubic(GridData *gdata,Vec VHtotsum);
00033 int Hdemag_Energy(GridData *gdata,Vec VMom,PetscReal *energy);
00034 int Hdemag(GridData *gdata,Vec VHtotsum);
00035 int Helastic_Energy(GridData *gdata,Vec VMom,PetscReal *energy);
00036 int Helastic(GridData *gdata,Vec VHtotsum);
00037 int Hexchani_Energy(GridData *gdata,Vec VMom,PetscReal *energy);
00038 #ifdef EXCH
00039 int Hexchonly_Energy(GridData *gdata,Vec VMom,PetscReal *energy);
00040 #endif
00041 int Hexchani(GridData *gdata,Vec VHtotsum);
00042 int Hexternal_Energy(GridData *gdata,Vec VMom,PetscReal *energy);
00043 int Hexternal(GridData *gdata,Vec VHtotsum);
00044 PetscReal Hexternal_hext();
00045 int Hext_ho(GridData *gdata,Vec VHextsum,PetscReal *hext);
00046 int Hext_ho_hstep(GridData *gdata);
00047 int Hext_ho_hsweep(GridData *gdata);
00048 int Hext_kq(GridData *gdata,Vec VHextsum,PetscReal *hext);
00049 int Hext_cu(GridData *gdata,Vec VHextsum,PetscReal *hext);
00050 int Hext_py(GridData *gdata,Vec VHextsum,PetscReal *hext);
00051 int Htot_EminiEnergy(GridData *gdata, PetscReal *f);
00052 int Htot_Energy(GridData *gdata);
00053 int Htot_Gradient(GridData *gdata);
00054 int Htot(GridData *gdata);
00055
00056 int BMatrix(GridData *gdata,Mat *Bmatrix);
00057 int Bele(PetscReal* bvert,PetscReal* facv1,PetscReal* facv2,PetscReal* facv3,PetscReal* matele);
00058 int MpHext(Vec M,PetscReal *vres);
00059
00060 int read_hstep_file(FILE *fd,PetscReal **indata,const int col);
00061 PetscScalar get_scalf_hstep(PetscReal hstep_fdata[],PetscReal hstep);
00062
00063 #endif