|
[Sponsors] |
Idea behind the piece of code in KinematicCloudI.H |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 31, 2016, 03:32 |
Idea behind the piece of code in KinematicCloudI.H
|
#1 |
Member
Darko Radenkovic
Join Date: Oct 2015
Posts: 38
Rep Power: 10 |
Hello,
Could anyone help me to understand the idea behind the following code ( red line is problematic for me ) Code:
template<class CloudType> inline Foam::tmp<Foam::fvVectorMatrix> Foam::KinematicCloud<CloudType>::SU(volVectorField& U) const { if (debug) { Info<< "UTrans min/max = " << min(UTrans()).value() << ", " << max(UTrans()).value() << nl << "UCoeff min/max = " << min(UCoeff()).value() << ", " << max(UCoeff()).value() << endl; } if (solution_.coupled()) { if (solution_.semiImplicit("U")) { const DimensionedField<scalar, volMesh> Vdt(mesh_.V()*this->db().time().deltaT()); return UTrans()/Vdt - fvm::Sp(UCoeff()/Vdt, U) + UCoeff()/Vdt*U; } else { tmp<fvVectorMatrix> tfvm(new fvVectorMatrix(U, dimForce)); fvVectorMatrix& fvm = tfvm(); fvm.source() = -UTrans()/(this->db().time().deltaT()); return tfvm; } } return tmp<fvVectorMatrix>(new fvVectorMatrix(U, dimForce)); } Thank you in advance for any help, Darko |
|
March 12, 2018, 03:16 |
|
#2 |
New Member
Join Date: Jun 2017
Posts: 12
Rep Power: 8 |
hello,
I have a small doubt. In the fils U.Eqn.H, the source term is written as coalParcels.SU(U) And in KinematicParcel file, 2 source terms are defined as Su (Explicit momentum source for particle) and dUtrans (Momentum transfer from the particle to the carrier phase) Can you kindly clarify the difference between the two. Since it is written that dUtrans is the Momentum transfer from the particle to the carrier phase, shouldn’t this be used in as a source term in U.Eqn.H instead of Su. Thank you |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Non-Zero exit code of: 2 | KUAlex | CFX | 18 | April 12, 2024 07:21 |
general ARCHITECTURAL structure of the code of a CFD code | mecobio | Main CFD Forum | 0 | August 12, 2013 08:04 |
Design Integration with CFD? | John C. Chien | Main CFD Forum | 19 | May 17, 2001 15:56 |
What is the Better Way to Do CFD? | John C. Chien | Main CFD Forum | 54 | April 23, 2001 08:10 |
own Code vs. commercial code | Bernhard Mueck | Main CFD Forum | 10 | February 16, 2000 10:07 |