|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
Nicholas Langbein
Join Date: Nov 2024
Posts: 21
Rep Power: 2 ![]() |
Hello,
I need help to add gravity flux to alphaEqn.H for multiphase solver (interFoam, interMixingFoam) I have volScalarField fsl (velcoity computed using strain rate) i need flux in gravity direction with fsl*alpha1*alpha2 .. please help volScalarField Us = 0.26 * shear_rate * d_s ; //unit will be m/s volScalarField term = Us * alpha1 * (1.0 - alpha2); volScalarField gravity_flux = fvc::grad(term).component(vector::Z); solve ( fvm::ddt(alpha1) // Time derivative term - fvm::laplacian(DT, alpha1) // Diffusion term + fvm::div(phi, Cs) // Convection term == - gravity_flux // flux ); But this dosent work meaning it dosent yield expected results... any idea |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Warning in flux mapping table with dynamicRefineFvMesh | JChristopher | OpenFOAM Running, Solving & CFD | 1 | October 18, 2022 15:17 |
Non-uniform heat flux UDF boundary condition around a cylinder | climshwuling | FLUENT | 0 | May 24, 2022 10:20 |
Udf for moving heat flux in 2D cylindrical geometry | devia21 | Fluent UDF and Scheme Programming | 0 | April 20, 2015 00:27 |
Error finding variable "THERMX" | sunilpatil | CFX | 8 | April 26, 2013 07:00 |
Problem setting with chtmultiregionFoam | Antonin | OpenFOAM | 10 | April 24, 2012 09:50 |