12 #ifndef CD_CdrPlasmaStepper_H
13 #define CD_CdrPlasmaStepper_H
28 #include <CD_NamespaceHeader.H>
118 writeCheckpointData(HDF5Handle& a_handle,
const int a_lvl)
const override;
128 readCheckpointData(HDF5Handle& a_handle,
const int a_lvl)
override;
142 virtual Vector<std::string>
155 const std::string a_outputRealm,
156 const int a_level)
const override;
195 preRegrid(
const int a_lmin,
const int a_oldFinestLevel)
override;
212 regrid(
const int a_lmin,
const int a_oldFinestLevel,
const int a_newFinestLevel)
override;
253 const phase::which_phase a_phase,
264 const phase::which_phase a_phase,
275 const phase::which_phase a_phase,
379 const Real a_factor);
400 const Vector<EBAMRCellData*> a_cdrDensities,
424 Vector<EBAMRCellData*>& a_rteSources,
425 const Vector<EBAMRCellData*>& a_cdrDensities,
426 const Vector<EBAMRCellData*>& a_rteDensities,
444 Vector<EBAMRCellData*>& a_rteSources,
445 const Vector<EBAMRCellData*>& a_cdrDensities,
446 const Vector<EBAMRCellData*>& a_cdrGradients,
447 const Vector<EBAMRCellData*>& a_rteDensities,
466 Vector<LevelData<EBCellFAB>*>& a_rteSources,
467 const Vector<LevelData<EBCellFAB>*>& a_cdrDensities,
468 const Vector<LevelData<EBCellFAB>*>& a_cdrGradients,
469 const Vector<LevelData<EBCellFAB>*>& a_rteDensities,
470 const LevelData<EBCellFAB>& a_E,
489 Vector<FArrayBox*>& a_rteSources,
490 const Vector<FArrayBox*>& a_cdrDensities,
491 const Vector<FArrayBox*>& a_cdrGradients,
492 const Vector<FArrayBox*>& a_rteDensities,
493 const FArrayBox& a_E,
497 const Box& a_cellBox);
519 Vector<EBCellFAB*>& a_rteSources,
520 const Vector<EBCellFAB*>& a_cdrDensities,
521 const Vector<EBCellFAB*>& a_cdrGradients,
522 const Vector<EBCellFAB*>& a_cdrVelocities,
523 const Vector<EBCellFAB*>& a_rteDensities,
524 const BaseIVFAB<VoFStencil>& a_interpStencils,
525 const EBCellFAB& a_E,
529 const Box& a_cellBox,
531 const DataIndex& a_dit);
552 Vector<EBCellFAB*>& a_rteSources,
553 const Vector<EBCellFAB*>& a_cdrDensities,
554 const Vector<EBCellFAB*>& a_cdrGradients,
555 const Vector<EBCellFAB*>& a_cdrVelocities,
556 const Vector<EBCellFAB*>& a_rteDensities,
557 const BaseIVFAB<VoFStencil>& a_interpStencils,
558 const EBCellFAB& a_E,
564 const DataIndex& a_dit);
583 Vector<EBCellFAB*>& a_rteSources,
584 const Vector<EBCellFAB*>& a_cdrDensities,
585 const Vector<EBCellFAB*>& a_cdrGradients,
586 const Vector<EBCellFAB*>& a_rteDensities,
587 const BaseIVFAB<VoFStencil>& a_interpStencils,
588 const EBCellFAB& a_E,
594 const DataIndex& a_dit);
617 Vector<EBCellFAB*>& a_rteSources,
618 const Vector<EBCellFAB*>& a_cdrDensities,
619 const Vector<EBCellFAB*>& a_cdrGradients,
620 const Vector<EBCellFAB*>& a_cdrVelocities,
621 const Vector<EBCellFAB*>& a_rteDensities,
622 const BaseIVFAB<VoFStencil>& a_interpStencils,
623 const EBCellFAB& a_E,
629 const DataIndex& a_dit);
655 const Vector<EBAMRCellData*>& a_cdrDensities,
669 const Vector<LevelData<EBCellFAB>*>& a_cdrDensities,
670 const LevelData<EBCellFAB>& a_electricFieldCell,
685 const Vector<FArrayBox*>& a_cdrDensities,
686 const FArrayBox& a_electricFieldCell,
703 const Vector<EBCellFAB*>& a_cdrDensities,
704 const EBCellFAB& a_electricFieldCell,
708 const DataIndex& a_dit);
720 const Vector<EBAMRCellData*>& a_cdrDensities,
733 const Vector<EBAMRIVData*>& a_cdrDensitiesEB,
747 const Vector<LevelData<BaseIVFAB<Real>>*>& a_cdrDensitiesEB,
748 const LevelData<BaseIVFAB<Real>>& a_electricFieldEB,
768 const Vector<EBAMRCellData*>& a_cdrDensities,
783 const Vector<LevelData<EBCellFAB>*>& a_cdrDensities,
784 const LevelData<EBCellFAB>& a_electricField,
800 const Vector<FArrayBox*>& a_cdrDensities,
801 const FArrayBox& a_electricField,
802 const Box& a_cellBox,
819 const Vector<EBCellFAB*>& a_cdrDensities,
820 const EBCellFAB& a_electricField,
824 const DataIndex& a_dit);
838 const Vector<EBAMRIVData*>& a_extrapCdrFluxes,
839 const Vector<EBAMRIVData*>& a_extrapCdrDensities,
840 const Vector<EBAMRIVData*>& a_extrapCdrVelocities,
841 const Vector<EBAMRIVData*>& a_extrapCdrGradients,
842 const Vector<EBAMRIVData*>& a_extrapRteFluxes,
859 const Vector<LevelData<BaseIVFAB<Real>>*>& a_extrapCdrFluxes,
860 const Vector<LevelData<BaseIVFAB<Real>>*>& a_extrapCdrDensities,
861 const Vector<LevelData<BaseIVFAB<Real>>*>& a_extrapCdrVelocities,
862 const Vector<LevelData<BaseIVFAB<Real>>*>& a_extrapCdrGradients,
863 const Vector<LevelData<BaseIVFAB<Real>>*>& a_extrapRteFluxes,
864 const LevelData<BaseIVFAB<Real>>& a_electricField,
881 const Vector<EBAMRIFData*>& a_extrapCdrFluxes,
882 const Vector<EBAMRIFData*>& a_extrapCdrDensities,
883 const Vector<EBAMRIFData*>& a_extrapCdrVelocities,
884 const Vector<EBAMRIFData*>& a_extrapCdrGradients,
885 const Vector<EBAMRIFData*>& a_extrapRteFluxes,
904 const Vector<LevelData<DomainFluxIFFAB>*>& a_extrapCdrFluxes,
905 const Vector<LevelData<DomainFluxIFFAB>*>& a_extrapCdrDensities,
906 const Vector<LevelData<DomainFluxIFFAB>*>& a_extrapCdrVelocities,
907 const Vector<LevelData<DomainFluxIFFAB>*>& a_extrapCdrGradients,
908 const Vector<LevelData<DomainFluxIFFAB>*>& a_extrapRteFluxes,
909 const LevelData<DomainFluxIFFAB>& a_electricField,
922 const Vector<EBAMRCellData*> a_cdrDensities,
923 const Vector<EBAMRCellData*> a_cdrVelocities,
924 const phase::which_phase a_phase);
936 const Vector<EBAMRCellData*> a_cdrDensities,
937 const Vector<EBAMRCellData*> a_cdrVelocities,
938 const phase::which_phase a_phase);
949 const Vector<EBAMRCellData*> a_cdrVelocitiesCell,
950 const phase::which_phase a_phase);
966 const phase::which_phase a_phase,
967 const Vector<EBAMRCellData*>& a_cellData);
987 const phase::which_phase a_phase,
988 const LevelData<EBCellFAB>& a_cellData,
999 const phase::which_phase a_phase,
1000 const Vector<EBAMRCellData*>& a_cellData);
1010 const phase::which_phase a_phase,
1022 const phase::which_phase a_phase,
1023 const LevelData<EBCellFAB>& a_cellData,
1035 const phase::which_phase a_phase,
1036 const Vector<EBAMRCellData*>& a_cellData);
1047 const phase::which_phase a_phase,
1059 const phase::which_phase a_phase,
1060 const Vector<EBAMRCellData*>& a_cellVelocities);
1068 getCdrMax(Real& a_cdrMax, std::string& a_solverName)
const;
1090 projectFlux(LevelData<BaseIVFAB<Real>>& a_projectedFlux,
1091 const LevelData<BaseIVFAB<Real>>& a_flux,
1109 regridInternals(
const int a_lmin,
const int a_oldFinestLevel,
const int a_newFinestLevel) = 0;
1118 regridSolvers(
const int a_lmin,
const int a_oldFinestLevel,
const int a_newFinestLevel);
1175 setVoltage(std::function<Real(
const Real a_time)> a_voltage);
1311 RefCountedPtr<CdrLayout<CdrSolver>>
m_cdr;
1316 RefCountedPtr<RtLayout<RtSolver>>
m_rte;
1466 writeJ(LevelData<EBCellFAB>& a_output,
int& a_comp,
const std::string a_outputRealm,
const int a_level)
const;
1485 writeData(LevelData<EBCellFAB>& a_output,
1488 const std::string a_outputRealm,
1490 const bool a_interpToCentroids,
1491 const bool a_interpGhost)
const noexcept;
1496 #include <CD_NamespaceFooter.H>
Declaration of core class for handling AMR-related operations (with embedded boundaries)
Declaration of a class that holds a set of CdrSolvers (to cut down on typing).
Declaration of basic physics coupling functions for Physics/CdrPlasma.
Declaration of base class for defining geometries.
Contains declaration of a base electrostatics solver class.
Declaration of a class that holds a set of RtSolvers.
Declaration of a cut-cell ODE solver.
Declaration of main (abstract) time stepper class.
Class for holding a set of CdrSolvers.
Definition: CD_CdrLayout.H:37
Abstract class for evolving the minimal plasma model in time.
Definition: CD_CdrPlasmaStepper.H:39
virtual Real getTime() const
Return time.
Definition: CD_CdrPlasmaStepper.cpp:4510
virtual void setupSigma()
Set up the surface charge solver.
Definition: CD_CdrPlasmaStepper.cpp:4103
virtual void computeFaceConductivity(EBAMRFluxData &a_conductivityFace, EBAMRIVData &a_conductivityEB, const EBAMRCellData &a_conductivityCell) const
Compute the face-centered conductivity from a cell-centered conductivity.
Definition: CD_CdrPlasmaStepper.cpp:222
virtual void setFieldSolver(RefCountedPtr< FieldSolver > &a_fieldSolver)
Set the field solver.
Definition: CD_CdrPlasmaStepper.cpp:3482
virtual void printStepReport() override
Print a step report.
Definition: CD_CdrPlasmaStepper.cpp:4998
virtual void extrapolateToEb(Vector< EBAMRIVData * > &a_ebData, const phase::which_phase a_phase, const Vector< EBAMRCellData * > &a_cellData)
Extrapolated cell-centered data to the EB. This is the AMR version for all species.
Definition: CD_CdrPlasmaStepper.cpp:3265
virtual void extrapolateToDomainFaces(Vector< EBAMRIFData * > &a_domainData, const phase::which_phase a_phase, const Vector< EBAMRCellData * > &a_cellData)
Extrapolate cell-centered data to domain faces. This is the AMR version that does all species.
Definition: CD_CdrPlasmaStepper.cpp:3320
SourceTermComputation m_whichSourceTermComputation
Which source term computation.
Definition: CD_CdrPlasmaStepper.H:1296
virtual void projectFlux(EBAMRIVData &a_projectedFlux, const EBAMRIVData &a_flux)
Project a flux onto the EB normal. This is the AMR version.
Definition: CD_CdrPlasmaStepper.cpp:3608
Real m_dtCFL
Computed CFL time step.
Definition: CD_CdrPlasmaStepper.H:1376
virtual void computePhysicsPlotVars(EBAMRCellData &a_physicsPlotVars) const noexcept
Calculate the user-supplied plot variables.
Definition: CD_CdrPlasmaStepper.cpp:4798
virtual void setSolverVerbosity()
Set solver verbosity.
Definition: CD_CdrPlasmaStepper.cpp:4040
virtual void computeCdrFluxes(Vector< EBAMRIVData * > &a_cdrFluxesEB, const Vector< EBAMRIVData * > &a_extrapCdrFluxes, const Vector< EBAMRIVData * > &a_extrapCdrDensities, const Vector< EBAMRIVData * > &a_extrapCdrVelocities, const Vector< EBAMRIVData * > &a_extrapCdrGradients, const Vector< EBAMRIVData * > &a_extrapRteFluxes, const EBAMRIVData &a_electricField, const Real &a_time)
Compute CDR fluxes on the EB. This is the AMR version – it will call the level version.
Definition: CD_CdrPlasmaStepper.cpp:2337
int m_solverVerbosity
Verbosity for solvers.
Definition: CD_CdrPlasmaStepper.H:1386
virtual void computeJ(EBAMRCellData &a_J) const
Compute the current density.
Definition: CD_CdrPlasmaStepper.cpp:3021
std::string m_className
Time stepper class name.
Definition: CD_CdrPlasmaStepper.H:1286
Real m_relaxTime
Fudge factor for relaxation time.
Definition: CD_CdrPlasmaStepper.H:1361
virtual void parseFastPoisson()
Parse the "fast poisson" method, i.e. how often we solve the Poisson equation.
Definition: CD_CdrPlasmaStepper.cpp:3960
virtual Real computeOhmicInductionCurrent()
Compute induced current in external circuit due to ohmic conduction.
Definition: CD_CdrPlasmaStepper.cpp:4430
RefCountedPtr< SurfaceODESolver< 1 > > m_sigma
Surface charge solver.
Definition: CD_CdrPlasmaStepper.H:1326
virtual void advanceReactionNetworkRegularCells(Vector< FArrayBox * > &a_cdrSources, Vector< FArrayBox * > &a_rteSources, const Vector< FArrayBox * > &a_cdrDensities, const Vector< FArrayBox * > &a_cdrGradients, const Vector< FArrayBox * > &a_rteDensities, const FArrayBox &a_E, const Real &a_time, const Real &a_dt, const Real &a_dx, const Box &a_cellBox)
Compute reaction network sources. This is the regular version which does not do the cut-cells.
Definition: CD_CdrPlasmaStepper.cpp:765
virtual void allocate() override
Allocate data for the time stepper and solvers.
Definition: CD_CdrPlasmaStepper.cpp:4026
RefCountedPtr< CdrLayout< CdrSolver > > m_cdr
CDR solvers.
Definition: CD_CdrPlasmaStepper.H:1311
virtual void parseMinDt()
Parse the minimum allowed time step.
Definition: CD_CdrPlasmaStepper.cpp:3912
virtual void regridInternals(const int a_lmin, const int a_oldFinestLevel, const int a_newFinestLevel)=0
Regrid internal storage. This MUST be overwritten by implementations.
virtual void parseRuntimeOptions() override=0
Parse runtime options. Subclasses must implement this.
RefCountedPtr< MultiFluidIndexSpace > m_multifluidIndexSpace
Index space.
Definition: CD_CdrPlasmaStepper.H:1301
virtual void getCdrMax(Real &a_cdrMax, std::string &a_solverName) const
Get maximum density in the CDR species. This will fetch both the value and the solver name.
Definition: CD_CdrPlasmaStepper.cpp:3442
virtual void advanceReactionNetworkIrreg(Vector< EBCellFAB * > &a_cdrSources, Vector< EBCellFAB * > &a_rteSources, const Vector< EBCellFAB * > &a_cdrDensities, const Vector< EBCellFAB * > &a_cdrGradients, const Vector< EBCellFAB * > &a_cdrVelocities, const Vector< EBCellFAB * > &a_rteDensities, const BaseIVFAB< VoFStencil > &a_interpStencils, const EBCellFAB &a_E, const Real &a_time, const Real &a_dt, const Real &a_dx, const Box &a_cellBox, const int a_lvl, const DataIndex &a_dit)
Compute reaction network sources. This is the irregular version which only does the cut-cells.
Definition: CD_CdrPlasmaStepper.cpp:894
virtual void deallocate()
Deallocation function. This will deallocate internal storage in the subclasses as well as the solvers...
Definition: CD_CdrPlasmaStepper.cpp:4522
virtual void extrapolateVelocitiesToDomainFaces(Vector< EBAMRIFData * > &a_domainVelocities, const phase::which_phase a_phase, const Vector< EBAMRCellData * > &a_cellVelocities)
Extrapolate velocities data to domain faces. This is the AMR version that does all species.
Definition: CD_CdrPlasmaStepper.cpp:2964
virtual void sanityCheck() const
Do a sanity check. Only works when DEBUG=TRUE.
Definition: CD_CdrPlasmaStepper.cpp:3832
virtual Real advance(const Real a_dt) override=0
Advance method, advances equations.
virtual void parseVerbosity()
Parse class verbosity.
Definition: CD_CdrPlasmaStepper.cpp:3856
TimeCode m_timeCode
Time code for step restriction.
Definition: CD_CdrPlasmaStepper.H:1381
virtual Real computeRelaxationTime()
Compute the relaxation time as dt = eps0/conductivity.
Definition: CD_CdrPlasmaStepper.cpp:4471
virtual void deallocateInternals()=0
Deallocate internals. Must be implemented by subclasses.
Definition: CD_CdrPlasmaStepper.cpp:410
virtual void initialSigma()
Initialize the surface charge.
Definition: CD_CdrPlasmaStepper.cpp:3549
virtual void computeCdrDriftVelocitiesRegular(Vector< FArrayBox * > &a_cdrVelocities, const Vector< FArrayBox * > &a_cdrDensities, const FArrayBox &a_electricField, const Box &a_cellBox, const Real &a_time, const Real &a_dx)
Compute the cell-centered CDR velocities.
Definition: CD_CdrPlasmaStepper.cpp:2167
virtual void writeData(LevelData< EBCellFAB > &a_output, int &a_comp, const EBAMRCellData &a_data, const std::string a_outputRealm, const int a_level, const bool a_interpToCentroids, const bool a_interpGhost) const noexcept
Write data to output. Convenience function.
Definition: CD_CdrPlasmaStepper.cpp:4695
virtual void setupCdr()
Setup the CDR solvers.
Definition: CD_CdrPlasmaStepper.cpp:4054
virtual Real computeDomainCurrent()
Compute the ohmic current through the domain faces.
Definition: CD_CdrPlasmaStepper.cpp:4345
virtual bool solvePoisson()
Solve the electrostatic Poisson equation.
Definition: CD_CdrPlasmaStepper.cpp:347
virtual void parseRelaxationTime()
Parse the relaxation time restriction.
Definition: CD_CdrPlasmaStepper.cpp:3896
Real m_dt
Previous time step size.
Definition: CD_CdrPlasmaStepper.H:1371
virtual Real computeElectrodeCurrent()
Compute the ohmic current on electrodes.
Definition: CD_CdrPlasmaStepper.cpp:4170
~CdrPlasmaStepper()
Destructor.
Definition: CD_CdrPlasmaStepper.cpp:94
virtual void advanceReactionNetworkIrregKappa(Vector< EBCellFAB * > &a_cdrSources, Vector< EBCellFAB * > &a_rteSources, const Vector< EBCellFAB * > &a_cdrDensities, const Vector< EBCellFAB * > &a_cdrGradients, const Vector< EBCellFAB * > &a_rteDensities, const BaseIVFAB< VoFStencil > &a_interpStencils, const EBCellFAB &a_E, const Real &a_time, const Real &a_dt, const Real &a_dx, const Box &a_box, const int a_lvl, const DataIndex &a_dit)
Compute reaction network sources. This version assumes that some of the inputs are on the centroid.
Definition: CD_CdrPlasmaStepper.cpp:1143
virtual Real getDt()
Get dt.
Definition: CD_CdrPlasmaStepper.cpp:4516
virtual void computeExtrapolatedFluxes(Vector< EBAMRIVData * > &a_extrapCdrFluxesEB, const Vector< EBAMRCellData * > a_cdrDensities, const Vector< EBAMRCellData * > a_cdrVelocities, const phase::which_phase a_phase)
Extrapolate cell-centered fluxes to the EB centroid.
Definition: CD_CdrPlasmaStepper.cpp:2760
CdrPlasmaStepper()
Empty constructor.
Definition: CD_CdrPlasmaStepper.cpp:29
virtual void solverDump()
All solvers writes plot files. These are not the same as the plot files written by Driver.
Definition: CD_CdrPlasmaStepper.cpp:4120
virtual void parseFastRadiativeTransfer()
Parse the "fast rte" method, i.e. how often we solve the Poisson equation.
Definition: CD_CdrPlasmaStepper.cpp:3944
virtual void computeCdrDiffusionCell(Vector< EBAMRCellData > &a_cdrDcoCell, const Vector< EBAMRCellData * > &a_cdrDensities, const EBAMRCellData &a_electricFieldCell, const Real &a_time)
Compute CDR diffusion coefficients on cell centers. This will call the level version.
Definition: CD_CdrPlasmaStepper.cpp:1513
Real m_maxDt
Maximum allowed time step.
Definition: CD_CdrPlasmaStepper.H:1351
virtual Real computeDt() override=0
Compute the time step.
virtual void advanceReactionNetwork(const Real a_time, const Real a_dt)
Advance the reaction network. This will compute the electric field (on the appropriate phase) and cal...
Definition: CD_CdrPlasmaStepper.cpp:421
EBAMRCellData m_physicsPlotVars
Storage for physics-observables.
Definition: CD_CdrPlasmaStepper.H:1336
int m_upwindFactor
Upwind factor.
Definition: CD_CdrPlasmaStepper.H:1401
virtual void writeJ(LevelData< EBCellFAB > &a_output, int &a_comp, const std::string a_outputRealm, const int a_level) const
Compute and put the current density in output data holder.
Definition: CD_CdrPlasmaStepper.cpp:4757
virtual void setupPoisson()
Setup the field solver.
Definition: CD_CdrPlasmaStepper.cpp:4070
virtual void computeCdrDiffusionCellRegular(Vector< FArrayBox * > &a_cdrDcoCell, const Vector< FArrayBox * > &a_cdrDensities, const FArrayBox &a_electricFieldCell, const Box a_cellBox, const Real a_dx, const Real a_time)
Compute diffusion coefficients on cell centers. This does all the regular cells.
Definition: CD_CdrPlasmaStepper.cpp:1637
int m_fastRTE
Fast RTE solver.
Definition: CD_CdrPlasmaStepper.H:1391
EBAMRCellData m_currentDensity
Storage for the current.
Definition: CD_CdrPlasmaStepper.H:1331
virtual void parseSourceComputation()
Parse how we compute the source terms.
Definition: CD_CdrPlasmaStepper.cpp:3976
virtual void parseMaxDt()
Parse the maximum allowed time step.
Definition: CD_CdrPlasmaStepper.cpp:3928
virtual void initialData() override
Fill all solvers with initial data.
Definition: CD_CdrPlasmaStepper.cpp:3526
std::string m_realm
Realm where the time stepper is registered.
Definition: CD_CdrPlasmaStepper.H:1281
virtual void computeCdrDiffusionFace(Vector< EBAMRFluxData * > &a_cdrDcoFace, const Vector< EBAMRCellData * > &a_cdrDensities, const EBAMRCellData &a_electricFieldCell, const Real &a_time)
Compute diffusion coefficients on face centers.
Definition: CD_CdrPlasmaStepper.cpp:1813
Real m_cfl
CFL number.
Definition: CD_CdrPlasmaStepper.H:1356
virtual void computeElectricField(MFAMRCellData &a_electricFieldCell, const MFAMRCellData &a_potential) const
Compute the cell-centered electric field on both phases.
Definition: CD_CdrPlasmaStepper.cpp:3095
virtual void computeCdrDiffusion()
Compute diffusion things using whatever is available in the solvers.
Definition: CD_CdrPlasmaStepper.cpp:1428
virtual void preRegrid(const int a_lmin, const int a_oldFinestLevel) override
Pre-regrid function – this is the one called by Driver.
Definition: CD_CdrPlasmaStepper.cpp:2994
virtual void computeExtrapolatedVelocities(Vector< EBAMRIVData * > &a_cdrVelocitiesEB, const Vector< EBAMRCellData * > a_cdrVelocitiesCell, const phase::which_phase a_phase)
Extrapolated cell-centered velocities to the EB.
Definition: CD_CdrPlasmaStepper.cpp:2882
virtual void postInitialize() override
Post-initialize operations to be performed after filling solvers with initialData.
Definition: CD_CdrPlasmaStepper.cpp:49
RefCountedPtr< FieldSolver > m_fieldSolver
Poisson solver.
Definition: CD_CdrPlasmaStepper.H:1321
virtual void parseSolverVerbosity()
Parse solver verbosities.
Definition: CD_CdrPlasmaStepper.cpp:3868
virtual Real computeDielectricCurrent()
Compute the ohmic current on dielectrics.
Definition: CD_CdrPlasmaStepper.cpp:4258
virtual void computeCdrDomainFluxes(Vector< EBAMRIFData * > &a_cdrFluxes, const Vector< EBAMRIFData * > &a_extrapCdrFluxes, const Vector< EBAMRIFData * > &a_extrapCdrDensities, const Vector< EBAMRIFData * > &a_extrapCdrVelocities, const Vector< EBAMRIFData * > &a_extrapCdrGradients, const Vector< EBAMRIFData * > &a_extrapRteFluxes, const EBAMRIFData &a_field, const Real &a_time)
Compute CDR fluxes on domain faces for usage in boundary conditions. This is the AMR version.
Definition: CD_CdrPlasmaStepper.cpp:2570
virtual void computeExtrapolatedDomainFluxes(Vector< EBAMRIFData * > &a_cdrDomainFluxes, const Vector< EBAMRCellData * > a_cdrDensities, const Vector< EBAMRCellData * > a_cdrVelocities, const phase::which_phase a_phase)
Extrapolate drift fluxes to domain faces.
Definition: CD_CdrPlasmaStepper.cpp:2830
RefCountedPtr< CdrPlasmaPhysics > m_physics
Plasma kinetics.
Definition: CD_CdrPlasmaStepper.H:1306
virtual void setupSolvers() override
Instantiate solvers.
Definition: CD_CdrPlasmaStepper.cpp:3504
virtual bool stationaryRTE()
Check if RTE solvers are stationary.
Definition: CD_CdrPlasmaStepper.cpp:103
virtual void resetDielectricCells(EBAMRIVData &a_data) const
Set data defined over dielectric cells to zero.
Definition: CD_CdrPlasmaStepper.cpp:3785
virtual void computeCdrDiffusionCellIrregular(Vector< EBCellFAB * > &a_cdrDcoCell, const Vector< EBCellFAB * > &a_cdrDensities, const EBCellFAB &a_electricFieldCell, const Real a_dx, const Real &a_time, const int a_lvl, const DataIndex &a_dit)
Compute diffusion coefficients on cell centers. This version does the irregular cells.
Definition: CD_CdrPlasmaStepper.cpp:1714
Real m_minDt
Minimum allowed time step.
Definition: CD_CdrPlasmaStepper.H:1346
virtual void projectDomain(EBAMRIFData &a_projectedFlux, const EBAMRIFData &a_flux)
Project flux onto domain edges/faces.
Definition: CD_CdrPlasmaStepper.cpp:3671
RefCountedPtr< RtLayout< RtSolver > > m_rte
Radiative transfer solvers.
Definition: CD_CdrPlasmaStepper.H:1316
virtual void setVoltage(std::function< Real(const Real a_time)> a_voltage)
Set voltage curve.
Definition: CD_CdrPlasmaStepper.cpp:3845
SourceTermComputation
Enum for switching between source term computations. 'Interpolated' interpolates the cell-centered da...
Definition: CD_CdrPlasmaStepper.H:1254
virtual void postRegrid() override
Perform post-regrid operations.
Definition: CD_CdrPlasmaStepper.cpp:71
virtual void setupRadiativeTransfer()
Setup the RTE solvers.
Definition: CD_CdrPlasmaStepper.cpp:4086
phase::which_phase m_phase
Plasma phase.
Definition: CD_CdrPlasmaStepper.H:1291
virtual void computeSpaceChargeDensity()
Compute the centroid-centered space charge density by using the data inside the CDR solvers.
Definition: CD_CdrPlasmaStepper.cpp:114
virtual void synchronizeSolverTimes(const int a_step, const Real a_time, const Real a_dt) override
Synchronize solver times.
Definition: CD_CdrPlasmaStepper.cpp:4152
virtual void registerOperators() override
Register operators to be used for the simulation.
Definition: CD_CdrPlasmaStepper.cpp:80
virtual void advanceReactionNetworkIrregInterp(Vector< EBCellFAB * > &a_cdrSources, Vector< EBCellFAB * > &a_rteSources, const Vector< EBCellFAB * > &a_cdrDensities, const Vector< EBCellFAB * > &a_cdrGradients, const Vector< EBCellFAB * > &a_cdrVelocities, const Vector< EBCellFAB * > &a_rteDensities, const BaseIVFAB< VoFStencil > &a_interpStencils, const EBCellFAB &a_E, const Real &a_time, const Real &a_dt, const Real &a_dx, const Box &a_box, const int a_lvl, const DataIndex &a_dit)
Compute reaction network sources. This version interpolates everything to the centroid and runs with ...
Definition: CD_CdrPlasmaStepper.cpp:997
std::function< Real(const Real a_time)> m_voltage
Set the potential.
Definition: CD_CdrPlasmaStepper.H:1341
virtual void postCheckpointSetup() override
Post-initialize operations to be performed after filling solvers with data read from checkpoint files...
Definition: CD_CdrPlasmaStepper.cpp:4970
virtual void registerRealms() override
Register realms to be used for the simulation.
Definition: CD_CdrPlasmaStepper.cpp:58
virtual void extrapolateVectorToDomainFaces(Vector< EBAMRIFData * > &a_domainData, const phase::which_phase a_phase, const Vector< EBAMRCellData * > &a_cellData)
Extrapolate vector data to domain faces. This is the AMR version that does all species.
Definition: CD_CdrPlasmaStepper.cpp:2921
int m_fastPoisson
Fast RTE solver.
Definition: CD_CdrPlasmaStepper.H:1396
virtual void computeCdrDriftVelocities()
Compute the CDR drift velocities.
Definition: CD_CdrPlasmaStepper.cpp:2018
virtual void computeCdrDriftVelocitiesIrregular(Vector< EBCellFAB * > &a_velocities, const Vector< EBCellFAB * > &a_cdrDensities, const EBCellFAB &a_electricField, const Real &a_time, const Real &a_dx, const int a_lvl, const DataIndex &a_dit)
Compute the cell-centered CDR velocities.
Definition: CD_CdrPlasmaStepper.cpp:2234
virtual void parseOptions()=0
Parse TimeStepper class options. Must be implemented by subclasses.
virtual void prePlot() override
Compute some thing that go into plot files.
Definition: CD_CdrPlasmaStepper.cpp:4788
virtual void setRadiativeTransferSolvers(RefCountedPtr< RtLayout< RtSolver >> &a_rte)
Set the RTE solvers.
Definition: CD_CdrPlasmaStepper.cpp:3493
virtual void computeCdrDiffusionEb(Vector< EBAMRIVData * > &a_cdrDcoEB, const Vector< EBAMRIVData * > &a_cdrDensitiesEB, const EBAMRIVData &a_electricFieldEB, const Real &a_time)
Compute diffusion coefficients on the EB. This is the AMR version – it will call the level version.
Definition: CD_CdrPlasmaStepper.cpp:1887
virtual void allocateInternals()=0
Allocate internal storage. Must be implemented by subclasses.
Definition: CD_CdrPlasmaStepper.cpp:387
virtual void computeMaxElectricField(Real &a_maxElectricField, const phase::which_phase a_phase)
Compute the maximum of the electric field.
Definition: CD_CdrPlasmaStepper.cpp:3227
virtual void regridSolvers(const int a_lmin, const int a_oldFinestLevel, const int a_newFinestLevel)
Regrid all of our solvers.
Definition: CD_CdrPlasmaStepper.cpp:3771
virtual void deallocateSolverInternals()
Deallocate internal solver storages.
Definition: CD_CdrPlasmaStepper.cpp:3251
virtual void computeCellConductivity(EBAMRCellData &a_cellConductivity) const
Compute the cell-centered conductivity.
Definition: CD_CdrPlasmaStepper.cpp:164
Real m_time
TIme.
Definition: CD_CdrPlasmaStepper.H:1366
virtual void solveRadiativeTransfer(const Real a_dt)
Solve the radiative transfer problem.
Definition: CD_CdrPlasmaStepper.cpp:4133
virtual int getNumberOfPlotVariables() const override
Get the number of plot variables for this time stepper.
Definition: CD_CdrPlasmaStepper.cpp:4586
virtual void setCdrSolvers(RefCountedPtr< CdrLayout< CdrSolver >> &a_cdr)
Set the CDR layout.
Definition: CD_CdrPlasmaStepper.cpp:3472
virtual void preRegridInternals(const int a_lmin, const int a_oldFinestLevel)
Do a preRegrid operation for internal storage (if needed).
Definition: CD_CdrPlasmaStepper.cpp:3012
TimeCode
An enum for encapsulating how time steps were restricted.
Definition: CD_CdrPlasmaStepper.H:1265
virtual void writePlotData(LevelData< EBCellFAB > &a_output, int &a_icomp, const std::string a_outputRealm, const int a_level) const override
Write plot data to output holder.
Definition: CD_CdrPlasmaStepper.cpp:4656
virtual void setupSemiImplicitPoisson(const Real a_dt)
Set up a semi-implicit Poisson solver.
Definition: CD_CdrPlasmaStepper.cpp:274
virtual Vector< std::string > getPlotVariableNames() const override
Get plot variable names.
Definition: CD_CdrPlasmaStepper.cpp:4621
virtual void regrid(const int a_lmin, const int a_oldFinestLevel, const int a_newFinestLevel) override
Regrid method.
Definition: CD_CdrPlasmaStepper.cpp:3730
virtual void parseCFL()
Parse the CFL number.
Definition: CD_CdrPlasmaStepper.cpp:3880
virtual void advanceReactionNetworkIrregUpwind(Vector< EBCellFAB * > &a_cdrSources, Vector< EBCellFAB * > &a_rteSources, const Vector< EBCellFAB * > &a_cdrDensities, const Vector< EBCellFAB * > &a_cdrGradients, const Vector< EBCellFAB * > &a_cdrVelocities, const Vector< EBCellFAB * > &a_rteDensities, const BaseIVFAB< VoFStencil > &a_interpStencils, const EBCellFAB &a_E, const Real &a_time, const Real &a_dt, const Real &a_dx, const Box &a_box, const int a_lvl, const DataIndex &a_dit)
Compute reaction network sources.
Definition: CD_CdrPlasmaStepper.cpp:1268
Class for holding a set of RtSolvers. T must derive from RtSolver.
Definition: CD_RtLayout.H:27
Base class for advancing equations.
Definition: CD_TimeStepper.H:30
Name containing various physics models for running chombo-discharge code.
Definition: CD_AdvectionDiffusion.H:15