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

how to code suspended sediment transport equation in interFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 12, 2021, 16:15
Default how to code suspended sediment transport equation in interFoam
  #1
New Member
 
Sourav Hossain
Join Date: Mar 2019
Posts: 25
Rep Power: 7
sourav8016 is on a distinguished road
I want to code this equation in interFoam solver.
\frac{\partial c}{\partial t} +
u\frac{\partial c}{\partial x}+
{(w-w_s)}\frac{\partial c}{\partial z}=
\frac{\partial}{\partial z}\left[ \epsilon_s \frac{\partial c}{\partial z} \right]

where c is the sediment volumetric concentration, w_s is sediment settling velocity defined by
w_s=
\frac{ {(s-1)} g {d_s}^2}{18 \nu} {\left({1-c}\right)}^4

g is gravitional accleration, \nu is kinematic viscosity and d_s is particle diameter and s is relative density of sediment.

\epsilon_s=
4*\frac{\nu_t}{\sigma}

\epsilon_s is sediment diffusivity and
\nu_t is eddy viscosity, \sigma is turbulent prandtl schimdt number.

Any idea how I can code this interFoam?

I was trying to include a cEqn.H file in interFoam solver as

volScalarField epsilonEff
(
"epsilonEff",
4*turbulence->nut()/Prt
);

fvScalarMatrix cEqn
(
fvm::ddt(c)
+ fvm::div(phi, c)
- fvm::laplacian(epsilonEff, c)
);

cEqn.relax();

cEqn.solve();
}

But I don't know how to modify phi and include w_s here as a closuse.

please help me. Thanks in advance.

Last edited by sourav8016; June 12, 2021 at 16:34. Reason: latex error
sourav8016 is offline   Reply With Quote

Reply


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
[swak4Foam] swakExpression not writing to log alexfells OpenFOAM Community Contributions 3 March 16, 2020 19:19
Transport Equation in InterFoam using MULES TCS OpenFOAM Programming & Development 5 March 20, 2018 12:57
How can I transfer the code of SprayFoam to mathematical equation sy2516 OpenFOAM Programming & Development 3 March 7, 2018 05:45
Calculation of the Governing Equations Mihail CFX 7 September 7, 2014 07:27
Free Surface Flow with Sediment Transport M. Riffai CFX 3 September 5, 2013 10:45


All times are GMT -4. The time now is 02:32.