|
[Sponsors] |
February 25, 2015, 13:59 |
How can i add this term to icoFoam
|
#1 |
Senior Member
Hesam
Join Date: Feb 2015
Posts: 139
Rep Power: 11 |
Hello friends,
how can i add the right hand side equation to icoFoam??? Last edited by rapierrz; February 26, 2015 at 04:11. |
|
February 26, 2015, 19:05 |
|
#2 |
Senior Member
Kyle Mooney
Join Date: Jul 2009
Location: San Francisco, CA USA
Posts: 323
Rep Power: 18 |
If this is the NS diffusion term its already there.
|
|
February 27, 2015, 01:16 |
|
#3 |
Senior Member
Hesam
Join Date: Feb 2015
Posts: 139
Rep Power: 11 |
yes.This is diffusion term but usually in solvers there is only
div(grad(U)) and i want to know how to write div(grad(U)+grad(U).tanspose) I write div(nu,symm(fvc::grad(U))) and Error was : no matching function for call to ‘div(Foam::volScalarField&... |
|
February 27, 2015, 03:52 |
|
#4 |
Senior Member
anonymous
Join Date: Aug 2014
Posts: 205
Rep Power: 13 |
I suppose you are using non constant viscosity so:
Code:
fvc::grad(mu)&fvc::grad(U)+fvc::laplacian(mu,U) I recommend yo to take a look at the solver: nonNewtonianIcoFoam |
|
February 27, 2015, 05:20 |
|
#5 |
Senior Member
Hesam
Join Date: Feb 2015
Posts: 139
Rep Power: 11 |
thank you ssss,
my problem is that how i can define div(mu,grad(U).transpose) |
|
February 27, 2015, 05:23 |
|
#6 |
Senior Member
anonymous
Join Date: Aug 2014
Posts: 205
Rep Power: 13 |
Code:
fvc::grad(U).T() |
|
February 27, 2015, 05:35 |
|
#7 |
Senior Member
Hesam
Join Date: Feb 2015
Posts: 139
Rep Power: 11 |
When i use of fvc::grad(U).T() error is :
has no member named ‘T’ |
|
February 27, 2015, 05:37 |
|
#8 |
Senior Member
anonymous
Join Date: Aug 2014
Posts: 205
Rep Power: 13 |
Then try:
Code:
T(fvc::grad(U)) |
|
February 27, 2015, 05:47 |
|
#9 |
Senior Member
Hesam
Join Date: Feb 2015
Posts: 139
Rep Power: 11 |
it does not work
my openfoam version is 2.2.1 |
|
February 27, 2015, 08:13 |
|
#10 |
Senior Member
anonymous
Join Date: Aug 2014
Posts: 205
Rep Power: 13 |
Well then last chance:
Code:
fvc::grad(U)().T() |
|
February 28, 2015, 12:30 |
|
#11 |
Senior Member
Hesam
Join Date: Feb 2015
Posts: 139
Rep Power: 11 |
Thank you very much ssss
ut's working correctly. you was great help for me. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Solve poisson equation just add a source term | nandiganavishal | OpenFOAM Running, Solving & CFD | 18 | November 14, 2022 09:12 |
Can't get data from OpenFoam to external solver using externalCoupled | perry | OpenFOAM Running, Solving & CFD | 4 | May 26, 2014 08:09 |
Building a custom solver on OpenFOAM 2.0 | wschosta | OpenFOAM Programming & Development | 1 | July 8, 2011 15:07 |
Add time dependent Source term | libe | OpenFOAM Running, Solving & CFD | 13 | September 23, 2010 09:12 |
OpenFOAM Training in Europe and USA | hjasak | OpenFOAM | 0 | August 8, 2008 05:33 |