|
[Sponsors] |
January 25, 2023, 19:08 |
Adding forcing to interFoam based pahse1
|
#1 |
Senior Member
Farzad Faraji
Join Date: Nov 2019
Posts: 206
Rep Power: 8 |
Hello all
I am working on interFoam and I have forcing to momentum equation and this force must be proportional to the pahse1 and phase2 where phase1 must be forced(1*force) and phase2 must not be forced(0*force). Now, should I easily multiply alpha1 to my force? or what should I do? Code:
alpha1*force Code:
MRF.correctBoundaryVelocity(U); fvVectorMatrix UEqn ( fvm::ddt(rho, U) + fvm::div(rhoPhi, U) + MRF.DDt(rho, U) + turbulence->divDevRhoReff(rho, U) == fvOptions(rho, U) + alpha1*force ); UEqn.relax(); fvOptions.constrain(UEqn); Farzad |
|
Tags |
alpa1, alpha2, forcing, interfoam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
chtMultiRegionFoam solver stops without any error | amol_patel | OpenFOAM Running, Solving & CFD | 4 | July 5, 2024 02:41 |
2 ways to mesh a multiRegion case - one works, the other fails | boffin5 | OpenFOAM Running, Solving & CFD | 16 | March 27, 2023 13:58 |
Adding Temperature variations to Density in interFoam | spitchers | OpenFOAM Running, Solving & CFD | 7 | June 15, 2017 11:55 |
chtMultiRegionSimpleFoam: crash on parallel run | student666 | OpenFOAM Running, Solving & CFD | 3 | April 20, 2017 12:05 |
conjugateHeatFoam + interFoam | farhagim | OpenFOAM Programming & Development | 15 | July 19, 2016 08:55 |