Commit 9ca8504b authored by Hang Zhou's avatar Hang Zhou
Browse files

Modifying the method to set char model for coal combustion. CHar model is...

Modifying the method to set char model for coal combustion. CHar model is given by "Particles: CharModel: Name:". Three char models are available: GasifOxid, CCK and OFF. When "GasifOxid" is chosen, "GasificationModel" and "OxidationModel" need to be given by "Particles: CharModel: GasificationModel: " and "Particles: CharModel: OxidationModel: ". If CCK model is chosen, the sensitivity of the model can be turn on/off by "Particles: CharModel: SensitivityOfCCK:" (default is OFF).
parent 05e83f7d
Pipeline #1129 failed with stage
in 2 minutes and 22 seconds
......@@ -875,12 +875,7 @@ namespace Particles {
const Dev::DevModel devModel = Dev::devol_model( rootParser_["Particles"]["DevModel"].as<std::string>() );
const Tarsoot::TarsootModel tarSootModel = Tarsoot::tarsoot_model( rootParser_["Particles"]["TarSootModel"].as<std::string>() );
Char::CharModel charModel;
if(rootParser_["Particles"]["CharModel"].size() > 1){
charModel = Char::char_model("GasifOxid");
}
else{
charModel = Char::char_model( rootParser_["Particles"]["CharModel"].as<std::string>() );
}
charModel = Char::char_model( rootParser_["Particles"]["CharModel"]["Name"].as<std::string>() );
CoalInterface_ = new Coal::CoalInterface(coalType, vapModel, devModel, tarSootModel, charModel, particleNumArray_, rootParser_, initRoots_, initFactory_,
integrator_, primitiveTags_, kinRhsTags_, equIndex_, isRestart_ );
......@@ -893,10 +888,13 @@ namespace Particles {
<< " - Devolatilization model : " << Dev::dev_model_name(devModel) << std::endl
<< " - Tar & soot model : " << Tarsoot::tarsoot_model_name(tarSootModel) << std::endl
<< " - Char gasification/oxidation model : " << Char::char_model_name(charModel) << std::endl;
if(rootParser_["Particles"]["CharModel"].size() > 1){
if(charModel == Char::GASIF_OXID){
std::cout << " - Char gasification model : " << rootParser_["Particles"]["CharModel"]["GasificationModel"].as<std::string>() << std::endl
<< " - Char oxidation model : " << rootParser_["Particles"]["CharModel"]["OxidationModel"].as<std::string>() << std::endl;
}
if(charModel == Char::CCK){
std::cout << " - Sensitivity of CCK model : " << rootParser_["Particles"]["CharModel"]["SensitivityOfCCK"].as<std::string>("OFF") << std::endl;
}
std::cout << " - Number of equations : " << equIndex_ + 1 << std::endl
<< "----------------------------------------" << std::endl
<< std::endl;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment