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

gravity flux alphaEqn.H

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 6, 2025, 11:12
Default gravity flux alphaEqn.H
  #1
New Member
 
Nicholas Langbein
Join Date: Nov 2024
Posts: 21
Rep Power: 2
Nicholas_Langbein is on a distinguished road
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
Nicholas_Langbein is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
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


All times are GMT -4. The time now is 20:27.