|
[Sponsors] |
November 20, 2014, 07:39 |
Source term in OpenFOAM: fvc vs fvm
|
#1 |
New Member
Marcel Vonlanthen
Join Date: Nov 2012
Location: Zurich, Switzerland
Posts: 28
Rep Power: 14 |
Dear Foamer,
I have to add a source term in the momentum equation of my pimpleFoam solver (OpenFOAM 2.3.0). Therefore, I simply add a extra term to UEqu: Code:
tmp<fvVectorMatrix> UEqn ( fvm::ddt(U) + fvm::div(phi, U) + turbulence->divDevReff(U) == fvc::Sp(someForce) //this is the extra line ); Nevertheless, in the file which defined fvc::Sp ($FOAM_SRC/finiteVolume/finiteVolume/fvc/fvcSup.H) there are three definition of a source: Sp, Su and SuSp. Sp is advertised as "implicite", Su=''explicite'' and SuSp="A mix of Sp an Su". Same in $FOAM_SRC/finiteVolume/finiteVolume/fvm/fvmSup.H Question: what is then the difference between fvc::Sp and fvc::Su? They should both populate B of the linear system. Same question for fvm::Sp and fvm::Su. Cheers, Marcel |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] funkyDoCalc with OF2.3 massflow | NiFl | OpenFOAM Community Contributions | 14 | November 25, 2020 04:30 |
[swak4Foam] groovyBC in openFOAM-2.0 for parabolic velocity bc | ofslcm | OpenFOAM Community Contributions | 25 | March 6, 2017 11:03 |
[swak4Foam] swak4foam building problem | GGerber | OpenFOAM Community Contributions | 54 | April 24, 2015 17:02 |
OpenFOAM 2.2.2 source pack installation on Xubuntu 13.10 | zordiack | OpenFOAM Installation | 1 | October 26, 2013 14:08 |
centOS 5.6 : paraFoam not working | yossi | OpenFOAM Installation | 2 | October 9, 2013 02:41 |