26 #include "grins_config.h"
28 #ifdef GRINS_HAVE_ANTIOCH
34 #include "antioch/default_filename.h"
37 #include "libmesh/getpot.h"
41 template<
typename KT,
typename T,
typename V,
typename C,
typename D>
43 (
const GetPot& input,
const std::string& material )
47 std::string warning =
"==============================================\n";
48 warning +=
"WARNING: This AntiochMixtureAveragedTransportMixture constructor is DEPREACTED!\n";
49 warning +=
" Prefer alternate constructor where parsing\n";
50 warning +=
" is done outside this class.\n";
51 warning +=
"==============================================\n";
53 libmesh_warning(warning);
56 std::string transport_data_filename =
57 input(
"Materials/"+material+
"/GasMixture/Antioch/transport_data",
"default" );
59 if( transport_data_filename == std::string(
"default") )
60 transport_data_filename = Antioch::DefaultInstallFilename::transport_mixture();
62 bool verbose_transport_read =
63 input(
"Materials/"+material+
"/GasMixture/Antioch/verbose_transport_read",
false );
65 _trans_mixture.reset(
new Antioch::TransportMixture<libMesh::Real>( *(this->_antioch_gas.get()),
66 transport_data_filename,
67 verbose_transport_read,
68 Antioch::ParsingType::ASCII ) );
70 _wilke_mixture.reset(
new Antioch::MixtureAveragedTransportMixture<libMesh::Real>(*(_trans_mixture.get()) ) );
74 this->build_viscosity( input, material );
76 this->build_conductivity( );
78 this->build_diffusivity( input, material );
81 template<
typename KT,
typename T,
typename V,
typename C,
typename D>
83 ( libMesh::UniquePtr<Antioch::ChemicalMixture<libMesh::Real> > & chem_mixture,
84 libMesh::UniquePtr<Antioch::ReactionSet<libMesh::Real> > & reaction_set,
85 libMesh::UniquePtr<Antioch::NASAThermoMixture<libMesh::Real,KT> > & kinetics_thermo_mix,
86 libMesh::UniquePtr<Antioch::TransportMixture<libMesh::Real> > & trans_mix,
87 libMesh::UniquePtr<Antioch::MixtureAveragedTransportMixture<libMesh::Real> > & wilke_mix,
88 libMesh::UniquePtr<Antioch::MixtureViscosity<V,libMesh::Real> > & visc,
89 libMesh::UniquePtr<Antioch::MixtureDiffusion<D,libMesh::Real> > & diff,
91 bool clip_negative_rho )
92 :
AntiochMixture<KT>(chem_mixture,reaction_set,kinetics_thermo_mix,min_T,clip_negative_rho)
106 #endif // GRINS_HAVE_ANTIOCH
libMesh::UniquePtr< Antioch::TransportMixture< libMesh::Real > > _trans_mixture
libMesh::UniquePtr< Antioch::MixtureAveragedTransportMixture< libMesh::Real > > _wilke_mixture
void build_conductivity()
libMesh::UniquePtr< Antioch::MixtureViscosity< Viscosity, libMesh::Real > > _viscosity
Wrapper class for storing state for Antioch thermo and kinetics.
libMesh::UniquePtr< Antioch::MixtureDiffusion< Diffusivity, libMesh::Real > > _diffusivity
AntiochMixtureAveragedTransportMixture()