diff --git a/src/lagrangian/intermediate/clouds/Templates/KinematicCloud/cloudSolution/cloudSolution.C b/src/lagrangian/intermediate/clouds/Templates/KinematicCloud/cloudSolution/cloudSolution.C index ca9e1fb0a826f1a09035203fa11a6137b44f8f01..cc5ad7063d8f96773b34ebc4a439df55dd55c4b5 100644 --- a/src/lagrangian/intermediate/clouds/Templates/KinematicCloud/cloudSolution/cloudSolution.C +++ b/src/lagrangian/intermediate/clouds/Templates/KinematicCloud/cloudSolution/cloudSolution.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -25,6 +25,7 @@ License #include "cloudSolution.H" #include "Time.H" +#include "localEulerDdtScheme.H" // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // @@ -119,7 +120,31 @@ Foam::cloudSolution::~cloudSolution() void Foam::cloudSolution::read() { - dict_.lookup("transient") >> transient_; + // For transient runs the Lagrangian tracking may be transient or steady + transient_ = dict_.lookupOrDefault("transient", false); + + // For LTS and steady-state runs the Lagrangian tracking cannot be transient + if (transient_) + { + if (fv::localEulerDdt::enabled(mesh_)) + { + IOWarningInFunction(dict_) + << "Transient tracking is not supported for LTS" + " simulations, switching to steady state tracking." + << endl; + transient_ = false; + } + + if (mesh_.steady()) + { + IOWarningInFunction(dict_) + << "Transient tracking is not supported for steady-state" + " simulations, switching to steady state tracking." + << endl; + transient_ = false; + } + } + dict_.lookup("coupled") >> coupled_; dict_.lookup("cellValueSourceCorrection") >> cellValueSourceCorrection_; dict_.readIfPresent("maxCo", maxCo_); diff --git a/tutorials/lagrangian/reactingParcelFoam/verticalChannelLTS/constant/reactingCloud1Properties b/tutorials/lagrangian/reactingParcelFoam/verticalChannelLTS/constant/reactingCloud1Properties index e6e16bed97283ecbd750cb1b0ec27d34a4e87322..3a3baac36177770cf3d47f15ee0ddfbdef8a8e4b 100644 --- a/tutorials/lagrangian/reactingParcelFoam/verticalChannelLTS/constant/reactingCloud1Properties +++ b/tutorials/lagrangian/reactingParcelFoam/verticalChannelLTS/constant/reactingCloud1Properties @@ -19,7 +19,6 @@ solution { active yes; - transient no; // yes; calcFrequency 10; maxTrackTime 5.0; maxCo 0.3; diff --git a/tutorials/lagrangian/simpleReactingParcelFoam/verticalChannel/constant/reactingCloud1Properties b/tutorials/lagrangian/simpleReactingParcelFoam/verticalChannel/constant/reactingCloud1Properties index e6e16bed97283ecbd750cb1b0ec27d34a4e87322..3a3baac36177770cf3d47f15ee0ddfbdef8a8e4b 100644 --- a/tutorials/lagrangian/simpleReactingParcelFoam/verticalChannel/constant/reactingCloud1Properties +++ b/tutorials/lagrangian/simpleReactingParcelFoam/verticalChannel/constant/reactingCloud1Properties @@ -19,7 +19,6 @@ solution { active yes; - transient no; // yes; calcFrequency 10; maxTrackTime 5.0; maxCo 0.3;