|
[Sponsors] | |||||
keyword div((thermo:mu*dev2(T(grad(U))))) is undefined in dictionary |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|
|
#1 |
|
Senior Member
khedar
Join Date: Oct 2016
Posts: 111
Rep Power: 11 ![]() |
Hi all,
I get the following error after I modified my Turbulence model. Code:
keyword div((thermo:mu*dev2(T(grad(U))))) is undefined in dictionary Code:
tmp<volSymmTensorField> sBSLEARSMNew::devRhoReff() const
{
return tmp<volSymmTensorField>
(
new volSymmTensorField
(
IOobject
(
"devRhoReff",
runTime_.timeName(),
mesh_,
IOobject::NO_READ,
IOobject::NO_WRITE
),
rho_*R_+mu()*dev(twoSymm(fvc::grad(U_)))
)
);
}
tmp<fvVectorMatrix> sBSLEARSMNew::divDevRhoReff(volVectorField& U) const
{
return
(
fvc::div(rho_*R_)
- fvm::laplacian(muEff(), U)
- fvc::div(mu()*dev2(T(fvc::grad(U))))
);
}
Code:
--> FOAM FATAL IO ERROR: attempt to read beyond EOF file: /home/i6070205_/OpenFOAM/i6070205_-2.3.0/run/simple/2Round/4test/system/fvSchemes.divSchemes.div((rho*R)) at line 38. Code:
divSchemes
{
default none;
div(phi,T) bounded Gauss upwind;
div(U) Gauss linear;
div(phi,U) bounded Gauss upwind;
div(phi,k) bounded Gauss upwind;
div(phi,K) bounded Gauss upwind;
div(phi,omega) bounded Gauss upwind;
div((rho*R)) Gauss upwind;
div(R) Gauss upwind;
div(phi,R) Gauss upwind;
div(phi,h) bounded Gauss upwind;
div((muEff*dev2(grad(U).T()))) Gauss linear;
div(phi,Ekp) bounded Gauss upwind;
div(phi,e) bounded Gauss upwind;
div((mu*dev2(T(grad(U))))) Gauss upwind;
div((nu*dev2(T(grad(U))))) Gauss upwind;
div((muEff*dev2(T(grad(U))))) Gauss linear;
div((thermo:mu*dev2(T(grad(U))))) Gauss linear;
}
It would be great if someone could help me out. khedar |
|
|
|
|
|
|
|
|
#2 |
|
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,716
Blog Entries: 6
Rep Power: 53 ![]() ![]() ![]() |
Hi,
I am not sure about your implementation and what you did but try,... Code:
div((rho*R)) Gauss upwind grad(rho);
__________________
Keep foaming, Tobias Holzmann |
|
|
|
|
|
|
|
|
#3 |
|
Senior Member
khedar
Join Date: Oct 2016
Posts: 111
Rep Power: 11 ![]() |
Hi Tobi,
thanks for your reply. When i changed as you suggested i got a new error. Code:
--> FOAM FATAL ERROR:
request for surfaceScalarField grad(rho) from objectRegistry region0 failed
available objects of type surfaceScalarField are
2
(
ghf
phi
)
khedar |
|
|
|
|
|
|
|
|
#4 |
|
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,716
Blog Entries: 6
Rep Power: 53 ![]() ![]() ![]() |
Hi,
Then use grad(phi). However, this is not a good stuff. Just one question. What is R_ in your code? Sent from my HTC One mini using CFD Online Forum mobile app
__________________
Keep foaming, Tobias Holzmann |
|
|
|
|
|
|
|
|
#5 |
|
Senior Member
khedar
Join Date: Oct 2016
Posts: 111
Rep Power: 11 ![]() |
Hi, I tried using grad(Phi) also but then I get some other error. But with Gauss linear it works so I am sticking to that for the Moment..
R is the Reynolds Stress Tensor |
|
|
|
|
|
|
|
|
#6 |
|
Senior Member
khedar
Join Date: Oct 2016
Posts: 111
Rep Power: 11 ![]() |
I have one more doubt regarding a term in the kOmegaSST model as implemented in OF.
Code:
// Turbulent frequency equation
tmp<fvScalarMatrix> omegaEqn
(
fvm::ddt(rho_, omega_)
+ fvm::div(phi_, omega_)
- fvm::laplacian(DomegaEff(F1), omega_)
==
rhoGammaF1
*min
(
GbyMu,
(c1_/a1_)*betaStar_*omega_*max(a1_*omega_, b1_*F23()*sqrt(S2))
)
- fvm::SuSp((2.0/3.0)*rhoGammaF1*divU, omega_)
- fvm::Sp(rho_*beta(F1)*omega_, omega_)
- fvm::SuSp
(
rho_*(F1 - scalar(1))*CDkOmega/omega_,
omega_
)
);
Code:
- fvm::SuSp((2.0/3.0)*rhoGammaF1*divU, omega_) |
|
|
|
|
|
|
|
|
#7 |
|
Senior Member
khedar
Join Date: Oct 2016
Posts: 111
Rep Power: 11 ![]() |
I think I understand where the source term with 2/3 in the previous post comes from. It is from the production term.
![]() When the production term is evaluated we get three terms and the last term with k turns out to be the source term. But when we do this and seeing by the way Gbymu is calculated, Code:
volScalarField GbyMu((tgradU() && dev(twoSymm(tgradU())))); |
|
|
|
|
|
|
|
|
#8 |
|
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,716
Blog Entries: 6
Rep Power: 53 ![]() ![]() ![]() |
The term 2/3 rho k is not there because it goes to the pressure.
Sent from my HTC One mini using CFD Online Forum mobile app
__________________
Keep foaming, Tobias Holzmann |
|
|
|
|
|
|
|
|
#9 |
|
Senior Member
khedar
Join Date: Oct 2016
Posts: 111
Rep Power: 11 ![]() |
||
|
|
|
|
|
|
|
#10 |
|
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,716
Blog Entries: 6
Rep Power: 53 ![]() ![]() ![]() |
Oh, I was talking about the buossinesq eddy viscosity approximation and the momentum equations, not about the turbulence models itself.
Sent from my HTC One mini using CFD Online Forum mobile app
__________________
Keep foaming, Tobias Holzmann Last edited by Tobi; January 18, 2017 at 06:27. |
|
|
|
|
|
|
|
|
#11 | ||
|
Senior Member
khedar
Join Date: Oct 2016
Posts: 111
Rep Power: 11 ![]() |
The term which i referred to in my previous post comes indeed from the Production term.
See here: http://caefn.com/openfoam/keqn-sgs-model In this blog post(although explained for k-sgs model but k equation treatment is more or less same.), the author derives how the 2/3 term comes from production. The reason for doing this way is answered on the same post. I quote here. My question: Quote:
Quote:
|
|||
|
|
|
|||
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| LEMOS InflowGenerator | r_gordon | OpenFOAM Running, Solving & CFD | 103 | December 18, 2018 01:58 |
| OpenFOAM 1.6-ext git installation on Ubuntu 11.10 x64 | Attesz | OpenFOAM Installation | 45 | January 13, 2012 13:38 |
| OpenFOAM on MinGW crosscompiler hosted on Linux | allenzhao | OpenFOAM Installation | 127 | January 30, 2009 20:08 |
| Problem with rhoSimpleFoam | matteo_gautero | OpenFOAM Running, Solving & CFD | 0 | February 28, 2008 07:51 |
| G95 + CGNS | Bruno | Main CFD Forum | 1 | January 30, 2007 01:34 |