METHOD
twoFluidEMHD.h
Go to the documentation of this file.
1 #ifndef TWOFLUIDEMHD_H
2 #define TWOFLUIDEMHD_H
3 
4 #include "model.h"
5 
6 // Two-Fluid ElectroMagnetoHydroDynamics
7 /* Human readable description
8  <br>
9  The model has eighteen conserved variables: <br>
10 (0) D, Sx, Sy, Sz, tau, <br>
11 (5) Dbar, Sbarx, Sbary, Sbarz, taubar, <br>
12 (10) Bx, By, Bz, <br>
13 (13) Ex, Ey, Ez, <br>
14 (16) psi, phi <br>
15  Sixteen primitive variables: <br>
16 (0) rho1, vx1, vy1, vz1, p1, <br>
17 (5) rho2, vx2, vy2, vz2, p2, <br>
18 (10) Bx, By, Bz, <br>
19 (13) Ex, Ey, Ez <br>
20  Thirty-five auxiliary variables: <br>
21 (0) h1, W1, e1, vsq1, Z1, D1, Stildex1, Stildey1, Stildez1, tauTilde1, <br>
22 (10) h2, W2, e2, vsq2, Z2, D2, Stildex2, Stildey2, Stildez2, tauTilde2, <br>
23 (20) Jx, Jy, Jz, <br>
24 (23) Stildex, Stildey, Stildez, tauTilde, <br>
25 (27) Bsq, Esq <br>
26 (29) rhoCh0, rhoCh, <br>
27 (31) ux, uy, uz, W <br>
28 */
29 
30 
31 
33 
90 class TwoFluidEMHD : public Model
91 {
92 
93  public:
94 
95  TwoFluidEMHD();
96 
98 
104 
105  virtual ~TwoFluidEMHD() { }
106 
107 
109 
125  void sourceTermSingleCell(double *cons, double *prims, double *aux, double *source, int i=-1, int j=-1, int k=-1);
126 
128 
141  void sourceTerm(double *cons, double *prims, double *aux, double *source);
142 
144 
161  void getPrimitiveVarsSingleCell(double *cons, double *prims, double *aux, int i=-1, int j=-1, int k=-1);
162 
164 
176  void getPrimitiveVars(double *cons, double *prims, double *aux);
177 
179 
188  void primsToAll(double *cons, double *prims, double *aux);
189 
191 
206  void fluxVector(double *cons, double *prims, double *aux, double *f, const int dir);
207 
209 
214  void finalise(double *cons, double *prims, double *aux) { };
215 };
216 
217 
218 #endif
void getPrimitiveVars(double *cons, double *prims, double *aux)
Spectral decomposition.
TwoFluidEMHD()
Default constructor.
void fluxVector(double *cons, double *prims, double *aux, double *f, const int dir)
Flux vector.
void primsToAll(double *cons, double *prims, double *aux)
Primitive-to-all transformation.
void sourceTerm(double *cons, double *prims, double *aux, double *source)
Source term contribution.
Two-Fluid ElectroMagnetoHydroDynamics
Definition: twoFluidEMHD.h:90
void finalise(double *cons, double *prims, double *aux)
Finalise the simulation variables.
Definition: twoFluidEMHD.h:214
Physics model that we want to use
Definition: model.h:15
Data * data
Pointer to Data class containing global simulation data.
Definition: model.h:19
void getPrimitiveVarsSingleCell(double *cons, double *prims, double *aux, int i=-1, int j=-1, int k=-1)
Single cell spectral decomposition.
Data object
Definition: simData.h:49
virtual ~TwoFluidEMHD()
Destructor.
Definition: twoFluidEMHD.h:105
void sourceTermSingleCell(double *cons, double *prims, double *aux, double *source, int i=-1, int j=-1, int k=-1)
Single cell source term contribution.