1#ifndef WMPEARSONIVFUNCTIONS_H
2#define WMPEARSONIVFUNCTIONS_H
23 q[1] = qnc[1] * qnc[0];
24 q[2] = qnc[2] * qnc[0];
25 q[3] = qnc[3] * qnc[0];
28 q[
ixx] = qnc[
ixx] + qnc[1] * q[1];
29 q[
ixy] = qnc[
ixy] + qnc[1] * q[2];
30 q[
ixz] = qnc[
ixz] + qnc[1] * q[3];
31 q[
iyy] = qnc[
iyy] + qnc[2] * q[2];
32 q[
iyz] = qnc[
iyz] + qnc[2] * q[3];
33 q[
izz] = qnc[
izz] + qnc[3] * q[3];
37 q[10] = 2. * (qnc[10] + qnc[
ixx] * qnc[1] + qnc[
ixy] * qnc[2] + qnc[
ixz] * qnc[3]) +
39 q[11] = 2. * (qnc[11] + qnc[
ixy] * qnc[1] + qnc[
iyy] * qnc[2] + qnc[
iyz] * qnc[3]) +
41 q[12] = 2. * (qnc[12] + qnc[
ixz] * qnc[1] + qnc[
iyz] * qnc[2] + qnc[
izz] * qnc[3]) +
45template<
typename real>
47 const real velocity[3],
Definition: wmpearsonIVfunctions.h:5
void InitializeIsotropic(const real density, const real velocity[3], const real pressure, real q[13])
Definition: wmpearsonIVfunctions.h:46
@ izz
Definition: wmpearsonIVfunctions.h:13
@ ixy
Definition: wmpearsonIVfunctions.h:9
@ ixz
Definition: wmpearsonIVfunctions.h:10
@ iyz
Definition: wmpearsonIVfunctions.h:12
@ ixx
Definition: wmpearsonIVfunctions.h:8
@ iyy
Definition: wmpearsonIVfunctions.h:11
void PrimitiveToConserved(const real *qnc, real *q)
Definition: wmpearsonIVfunctions.h:16
#define real
Definition: wmoclunstructuredreconstruction.h:11