|
[Sponsors] |
May 13, 2020, 02:56 |
Addsup in fvOptions
|
#1 |
Senior Member
mohammad
Join Date: Sep 2015
Posts: 281
Rep Power: 12 |
Hi all,
I am working with one of the solvers in OpenFOAM, which is using fvOptions and more specifically, meanVelocitySource.C. However, there are some things that are not clear to me. As you can see in the solver discretization part: Code:
fvVectorMatrix UEqn ( fvm::ddt(U) //fvm::ddt(voidfraction,U) + fvm::div(phi, U) + turbulence->divDevReff(U) == fvOptions(U) ); Code:
void Foam::fv::meanVelocityForce::addSup ( fvMatrix<vector>& eqn, const label fieldi ) { volVectorField::Internal Su ( IOobject ( name_ + fieldNames_[fieldi] + "Sup", mesh_.time().timeName(), mesh_, IOobject::NO_READ, IOobject::NO_WRITE ), mesh_, dimensionedVector("zero", eqn.dimensions()/dimVolume, Zero) ); scalar gradP = gradP0_ + dGradP_; UIndirectList<vector>(Su, cells_) = flowDir_*gradP; eqn += Su; } void Foam::fv::meanVelocityForce::addSup ( const volScalarField& rho, fvMatrix<vector>& eqn, const label fieldi ) { this->addSup(eqn, fieldi); } Any help in this regard would be appreciated. |
|
May 13, 2020, 17:22 |
|
#2 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
Hi
- I would start looking at `src/finiteVolume/cfdTools/general/fvOptions`.
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
May 13, 2020, 19:32 |
|
#3 |
Senior Member
mohammad
Join Date: Sep 2015
Posts: 281
Rep Power: 12 |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
fvOptions limitTemperature crashing in compressibleInterFoam | JM27 | OpenFOAM Running, Solving & CFD | 38 | November 29, 2023 04:55 |
fvMatrix, fvOptions and SuSp: automatic implicit/explicit source-term treatment | Zeppo | OpenFOAM Programming & Development | 7 | December 15, 2021 11:20 |
Turbulence injection via fvOptions: addSup, constrain, or correct? | pbachant | OpenFOAM Programming & Development | 1 | May 22, 2020 23:48 |
Configuration of boundary conditions and fvOptions file | Raza Javed | OpenFOAM Running, Solving & CFD | 16 | May 3, 2019 17:35 |
Power and Enthalpy in fvOptions file | Raza Javed | OpenFOAM Running, Solving & CFD | 1 | April 26, 2019 11:03 |