CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Adding forcing to interFoam based pahse1

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 25, 2023, 18:08
Default Adding forcing to interFoam based pahse1
  #1
Senior Member
 
Farzad Faraji
Join Date: Nov 2019
Posts: 205
Rep Power: 7
farzadmech is on a distinguished road
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
Basically, what is the results of volScalarField*volVectorField?

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);
Thanks,
Farzad
farzadmech is offline   Reply With Quote

Reply

Tags
alpa1, alpha2, forcing, interfoam


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
2 ways to mesh a multiRegion case - one works, the other fails boffin5 OpenFOAM Running, Solving & CFD 16 March 27, 2023 12:58
chtMultiRegionFoam solver stops without any error amol_patel OpenFOAM Running, Solving & CFD 2 October 20, 2021 01:29
Adding Temperature variations to Density in interFoam spitchers OpenFOAM Running, Solving & CFD 7 June 15, 2017 10:55
chtMultiRegionSimpleFoam: crash on parallel run student666 OpenFOAM Running, Solving & CFD 3 April 20, 2017 11:05
conjugateHeatFoam + interFoam farhagim OpenFOAM Programming & Development 15 July 19, 2016 07:55


All times are GMT -4. The time now is 12:28.