Canoe
Comprehensive Atmosphere N' Ocean Engine
ConcentrationInversion Class Reference

#include <concentration_inversion.hpp>

Inheritance diagram for ConcentrationInversion:
[legend]

Public Member Functions

 ConcentrationInversion (MeshBlock *pmb, ParameterInput *pin, std::string name)
 
 ~ConcentrationInversion ()
 
void InitializePositions () override
 
void UpdateConcentration (Hydro *phydro, Real *Xp, int k, int jl, int ju) const
 
- Public Member Functions inherited from Inversion
 Inversion (MeshBlock *pmb, ParameterInput *pin, std::string name)
 Constructor and destructor. More...
 
virtual ~Inversion ()
 
virtual Real LogPosteriorProbability (Radiation *prad, Hydro *phydro, Real const *par, Real *val, int k) const
 
virtual void CalculateFitTarget (Radiation const *prad, Real *val, int nvalue, int k, int j) const
 
virtual void UpdateHydro (Hydro *phydro, ParameterInput *pin) const
 
virtual int getX2Span () const
 
void InitializeChain (int nstep, int nwalker, int ndim, int nvalue)
 
void MakeMCMCOutputs (std::string fname)
 
void MCMCInit (Radiation *prad, Hydro *phydro)
 
void MCMCMove (Radiation *prad, Hydro *phydro)
 
void MCMCSave (Hydro *phydro)
 
void ResetChain ()
 
int GetDims () const
 
int GetValues () const
 
int GetWalkers () const
 
int GetSteps () const
 
void SetLogProbability (int k, Real lnp)
 
Real GetLogProbability (int k) const
 
void setX2Indices (int j)
 
bool ShouldFITSOutput (std::string variable_name) const override
 MeshOutputGroup functions. More...
 
void LoadFITSOutputData (OutputType *pod, int *num_vars) const override
 
- Public Member Functions inherited from NamedGroup
 NamedGroup (std::string name)
 
virtual ~NamedGroup ()
 
std::string GetName () const
 
- Public Member Functions inherited from FITSOutputGroup
virtual ~FITSOutputGroup ()
 

Protected Attributes

std::vector< int > idx_
 
Real Xstd_ [1+NVAPOR]
 
- Protected Attributes inherited from Inversion
std::string name_
 
Eigen::VectorXd target_
 
Eigen::MatrixXd icov_
 
Real ** init_pos_
 
bool fit_differential_
 
int jl_
 
int ju_
 
MeshBlock const * pmy_block_
 pointer to parent MeshBlock More...
 

Detailed Description

Definition at line 17 of file concentration_inversion.hpp.

Constructor & Destructor Documentation

◆ ConcentrationInversion()

ConcentrationInversion::ConcentrationInversion ( MeshBlock *  pmb,
ParameterInput *  pin,
std::string  name 
)

Definition at line 22 of file concentration_inversion.cpp.

◆ ~ConcentrationInversion()

ConcentrationInversion::~ConcentrationInversion ( )

Definition at line 20 of file concentration_inversion.cpp.

Member Function Documentation

◆ InitializePositions()

void ConcentrationInversion::InitializePositions ( )
overridevirtual

Reimplemented from Inversion.

Definition at line 69 of file concentration_inversion.cpp.

◆ UpdateConcentration()

void ConcentrationInversion::UpdateConcentration ( Hydro *  phydro,
Real *  Xp,
int  k,
int  jl,
int  ju 
) const

Definition at line 88 of file concentration_inversion.cpp.

Member Data Documentation

◆ idx_

std::vector<int> ConcentrationInversion::idx_
protected

Definition at line 29 of file concentration_inversion.hpp.

◆ Xstd_

Real ConcentrationInversion::Xstd_[1+NVAPOR]
protected

Definition at line 32 of file concentration_inversion.hpp.


The documentation for this class was generated from the following files: