|
[Sponsors] |
Modifying interFoam solver: Momentum equation division by density |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 9, 2023, 23:52 |
Modifying interFoam solver: Momentum equation division by density
|
#1 |
New Member
futer
Join Date: Dec 2023
Location: China
Posts: 4
Rep Power: 3 |
Dear members of the forum,
I have modified UEqn in UEqn.H as follows: volScalarField alpha11 = mesh.lookupObject<volScalarField>("alpha.water"); volScalarField nu_sum=nu1*alpha11+nu2*(1-alpha11); fvVectorMatrix UEqn ( fvm::ddt(U) + fvm::div(phi, U) + MRF.DDt(U) - fvm::laplacian(nu_sum,U) == fvOptions(U) ); And I also have modified the pEqn.H as follows: surfaceScalarField phig ( ( // mixture.surfaceTensionForce() - ghf*fvc::snGrad(rho) )*fvc::interpolate(1/UEqn.A())*mesh.magSf()/fvc::interpolate(rho) ); Ignoring the influence of surface tension, I have modified the fvm::laplacian in fvm.upper() by dividing the term rho[faci]. However, I have noticed significant differences in the pressure field results compared to the original interFoam solver after the first time step. I would like to understand where the main issue lies and how to make the necessary modifications. Thank you!!! |
|
December 12, 2023, 07:36 |
|
#2 |
New Member
futer
Join Date: Dec 2023
Location: China
Posts: 4
Rep Power: 3 |
If anyone is interested, I would be glad to engage in a discussion and collaborate on further exploring this issue. It would be beneficial to exchange ideas and insights to find potential solutions and improve the modifications made to UEqn and pEqn.
|
|
Tags |
interfoam solver |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to remove viscosity term from the governing equation in interFoam solver | Pasar | OpenFOAM Programming & Development | 3 | February 18, 2022 06:56 |
Error SIGSEGV using VOF and UDF | JERC_UTFSM | Fluent UDF and Scheme Programming | 14 | November 8, 2021 00:17 |
viscosity term in discetrization momentum equation | hans-186 | Main CFD Forum | 4 | April 1, 2013 14:34 |
error message | cuteapathy | CFX | 14 | March 20, 2012 07:45 |
how to add source-term in momentum equation for interFoam? | anon_g | OpenFOAM | 9 | October 18, 2011 13:47 |