criptic v1
Cosmic Ray Interstellar Propagation Tool using Itô Calculus
Loading...
Searching...
No Matches
NoPropagation.H
Go to the documentation of this file.
1
9#ifndef _NOPROPAGATION_H_
10#define _NOPROPAGATION_H_
11
12#include "Propagation.H"
13
14namespace criptic {
15 namespace propagation {
16
21 class NoPropagation : public Propagation {
22
23 public:
24
30
34 virtual ~NoPropagation() { }
35
40 virtual FieldQtyNeedType fieldQtyNeed() const { return noFieldQty; }
41
56 virtual PropagationData
58 const Real t,
59 const gas::GasData& gd,
60 const CRPacket& packet,
61 const FieldQty& qty,
62 const FieldQtyGrad& qtyGrad) const {
64 pd.kPar = pd.kPerp = pd.kPP = pd.vStr = pd.dkPP_dp = pd.dvStr_dp = 0;
65 pd.kParGrad = pd.kPerpGrad = pd.vStrGrad = zeroVec;
66 return pd;
67 }
68
69 };
70
71 }
72}
73
74#endif
75// _NOPROPAGATION_H_
Interface used to describe a model for CR propagation parameters.
A class that holds data to describe a CR packet.
Definition CRPacket.H:28
Class to hold and compute gradients of field quantities.
Definition FieldQty.H:293
Class to hold and compute field quantities.
Definition FieldQty.H:53
Class to parse the criptic input deck.
Definition ParmParser.H:37
Trivial class to hold gas data.
Definition GasData.H:29
A propagation model where all propagation parameters are zero.
Definition NoPropagation.H:21
NoPropagation(const ParmParser &pp)
Constructor.
Definition NoPropagation.H:29
virtual PropagationData operator()(const RealVec &x, const Real t, const gas::GasData &gd, const CRPacket &packet, const FieldQty &qty, const FieldQtyGrad &qtyGrad) const
Return the propagation data.
Definition NoPropagation.H:57
virtual ~NoPropagation()
Empty virtual destructor.
Definition NoPropagation.H:34
virtual FieldQtyNeedType fieldQtyNeed() const
Access to field quantities needed?
Definition NoPropagation.H:40
Interface to describe the CR propagation model.
Definition Propagation.H:79
The primary namespace for criptic objects.
Definition AdvancePacket.H:25
FieldQtyNeedType
Enum of types of field quantities to be computed.
Definition Propagation.H:29
@ noFieldQty
Definition Propagation.H:30
double Real
Definition Types.H:38
static const RealVec zeroVec(0, 0, 0)
Structure contain the requires propagation parameters.
Definition Propagation.H:46
Real kPP
Definition Propagation.H:49
RealVec kParGrad
Definition Propagation.H:59
Real dvStr_dp
Definition Propagation.H:57
Real kPar
Definition Propagation.H:47
Real vStr
Definition Propagation.H:53
Real dkPP_dp
Definition Propagation.H:55
RealVec vStrGrad
Definition Propagation.H:66
RealVec kPerpGrad
Definition Propagation.H:61
Real kPerp
Definition Propagation.H:48