How can i add this term to icoFoam
Hello friends,
how can i add the right hand side equation to icoFoam???:confused: http://www.uploadmb.com/dw.php?id=1424891238 http://i57.tinypic.com/12675ur.jpg |
If this is the NS diffusion term its already there.
|
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&... |
I suppose you are using non constant viscosity so:
Code:
I recommend yo to take a look at the solver: nonNewtonianIcoFoam |
thank you ssss,
my problem is that how i can define div(mu,grad(U).transpose) |
Code:
fvc::grad(U).T() |
When i use of fvc::grad(U).T() error is :
has no member named ‘T’ |
Then try:
Code:
T(fvc::grad(U)) |
it does not work :(
my openfoam version is 2.2.1 |
Well then last chance:
Code:
fvc::grad(U)().T() |
Thank you very much ssss:D
ut's working correctly. you was great help for me. |
All times are GMT -4. The time now is 18:53. |