From d9e3e2a773a058e52ba66ca1470433a4d367f0a5 Mon Sep 17 00:00:00 2001 From: ekinaci Date: Wed, 6 Sep 2017 17:54:55 +0200 Subject: [PATCH 1/4] Update tutorial script - No need for rdef (is deleted) - Molarmasses must be in kg - Consider every keyword required for sim to run --- .../Shrinking_particle_model/DEM/in.liggghts_run | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tutorials/cfdemSolverRhoPimpleChem/Shrinking_particle_model/DEM/in.liggghts_run b/tutorials/cfdemSolverRhoPimpleChem/Shrinking_particle_model/DEM/in.liggghts_run index 90b0e00e..e40ad321 100644 --- a/tutorials/cfdemSolverRhoPimpleChem/Shrinking_particle_model/DEM/in.liggghts_run +++ b/tutorials/cfdemSolverRhoPimpleChem/Shrinking_particle_model/DEM/in.liggghts_run @@ -51,8 +51,7 @@ fix cfd2 all couple/cfd/force fix cfd3 all couple/cfd/chemistry n_species 3 species_names O2 CO2 N2 # this should shrink the particle -#fix cfd4 all chem/shrink speciesA O2 molMassA 31.99 speciesC CO2 molMassC 44.01 molMassB 12.01 k 2.5e3 rdef 0.2 -fix cfd4 all chem/shrink speciesA O2 molMassA 31.99 speciesC CO2 molMassC 44.01 molMassB 12.01 k 2.5e-1 rmin 0.005 nevery 1 +fix cfd4 all chem/shrink speciesA O2 molMassA 0.03199 nuA 1 speciesC CO2 molMassC 0.04401 nuC 1 molMassB 0.01201 nuB 1 k 2.5e-1 rmin 0.005 nevery 1 screen no # apply nve integration to all particles that are inserted as single particles fix integr all nve/sphere From b7562b76c6ec3505896d290c1f569df657efb35b Mon Sep 17 00:00:00 2001 From: ekinaci Date: Thu, 21 Sep 2017 13:55:30 +0200 Subject: [PATCH 2/4] comment molar fractions debug info to be uncommented in the future --- applications/solvers/cfdemSolverRhoPimpleChem/YEqn.H | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/solvers/cfdemSolverRhoPimpleChem/YEqn.H b/applications/solvers/cfdemSolverRhoPimpleChem/YEqn.H index cc7f380a..e892eb48 100644 --- a/applications/solvers/cfdemSolverRhoPimpleChem/YEqn.H +++ b/applications/solvers/cfdemSolverRhoPimpleChem/YEqn.H @@ -42,7 +42,7 @@ tmp > mvConvection fvOptions.correct(Yi); - #include "debugYEqn.H" + // #include "debugYEqn.H" Yi.max(0.0); Yt += Yi; From 2079017fc603449fc0fb61bde03fa1a4cb9c79bb Mon Sep 17 00:00:00 2001 From: ekinaci Date: Thu, 21 Sep 2017 13:56:06 +0200 Subject: [PATCH 3/4] fix diffusion calculation error --- .../diffusionCoefficients.C | 46 +++++++------------ 1 file changed, 16 insertions(+), 30 deletions(-) diff --git a/src/lagrangian/cfdemParticle/subModels/chemistryModel/diffusionCoefficients/diffusionCoefficients.C b/src/lagrangian/cfdemParticle/subModels/chemistryModel/diffusionCoefficients/diffusionCoefficients.C index 2ed747d9..156de95a 100644 --- a/src/lagrangian/cfdemParticle/subModels/chemistryModel/diffusionCoefficients/diffusionCoefficients.C +++ b/src/lagrangian/cfdemParticle/subModels/chemistryModel/diffusionCoefficients/diffusionCoefficients.C @@ -173,12 +173,10 @@ void diffusionCoefficient::execute() scalar Pfluid(0); scalar molarConcfluid(0); scalar Texp(0); - List dBinarytot_; - dBinarytot_.setSize(diffusantGasNames_.size()); - List molecularDiffusion_; - molecularDiffusion_.setSize(diffusantGasNames_.size()); - List Xstag_tot_; - Xstag_tot_.setSize(diffusantGasNames_.size()); + List MixtureBinaryDiffusion_; + MixtureBinaryDiffusion_.setSize(diffusantGasNames_.size()); + List TotalFraction_; + TotalFraction_.setSize(diffusantGasNames_.size()); double **dBinary_ = new double*[diffusantGasNames_.size()]; double **molNum_ = new double*[diffusantGasNames_.size()]; @@ -220,7 +218,7 @@ void diffusionCoefficient::execute() } } - Texp = pow(Tfluid,1.75); + Texp = pow(Tfluid,1.75); for (int i=0; i