6tarch::logging::Log examples::exahype2::finitevolumes::MHD::_log(
"examples::exahype2::finitevolumes::MHD" );
10void examples::exahype2::finitevolumes::MHD::initialCondition(
12 const tarch::la::Vector<DIMENSIONS,double>& volumeCentre,
13 const tarch::la::Vector<DIMENSIONS,double>& volumeH
15 double xd[DIMENSIONS];
16 for (
int d=0; d< DIMENSIONS; d++) xd[d] = 0.0;
19 for(
int i=0; i<9; i++){
20 assert(std::isfinite(Q[i]));
21 assert(!std::isnan(Q[i]));
27double examples::exahype2::finitevolumes::MHD::maxEigenvalue(
28 const double * NOALIAS Q,
29 const tarch::la::Vector<DIMENSIONS,double>& faceCentre,
30 const tarch::la::Vector<DIMENSIONS,double>& volumeH,
34 logTraceInWith4Arguments(
"eigenvalues(...)", faceCentre, volumeH, t, normal );
41 for (
int i=0; i<9; i++) {
42 result = std::max( result, std::abs(lambda[i]) );
45 logTraceOut(
"eigenvalues(...)" );
51void examples::exahype2::finitevolumes::MHD::flux(
52 const double * NOALIAS Q,
53 const tarch::la::Vector<DIMENSIONS,double>& faceCentre,
54 const tarch::la::Vector<DIMENSIONS,double>& volumeH,
59 logTraceInWith4Arguments(
"flux(...)", faceCentre, volumeH, t, normal );
61 logTraceOut(
"flux(...)" );
65void examples::exahype2::finitevolumes::MHD::boundaryConditions(
66 const double * NOALIAS Qinside,
67 double * NOALIAS Qoutside,
68 const tarch::la::Vector<DIMENSIONS,double>& faceCentre,
69 const tarch::la::Vector<DIMENSIONS,double>& volumeH,
73 logTraceInWith4Arguments(
"boundaryConditions(...)", faceCentre, volumeH, t, normal );
74 for(
int i=0; i< 9; i++)
75 Qoutside[i]=Qinside[i];
76 logTraceOut(
"boundaryConditions(...)" );
void pdeeigenvalues_(double *lambda, const double *const Q, double *nv)
void pdeflux_(double *Fx, double *Fy, double *Fz, const double *const Q)
void alfenwave_(double *x, double *Q, double *t)