Halleluja! Another one saved
Another one saved by the dimensionality check http://www.cfd-online.com/OpenFOAM_D...part/happy.gif
As you can see from your error message you have incompatible dimensions.
fvm::ddt(scal) has 1/s, which means that all the other terms must have the same dimension.
However, your sv-term has
(1/m)*(m^2/s)^(.5) = s^-0.5, so you should check your terms, they are obviously incompatible,
or there is a dimension in w1.
Dimension checking - does exac
Dimension checking - does exactly what it says on the tin!
If your scal is dimensionless then when you take a time derivative you get something with dimensions
[0 0 -1 0 0 0 0]. On the rhs you took a square root. This is either wrong, or you need a prefactor to this term with the dimensions [0 0 -0.5 0 0 0 0] to be physically correct.
Hi guys, Got that, and indee
Got that, and indeed the w1 should have dimension of s^-0.5. Then how do I define w1 with the right dimension?
something like this... dime
something like this...
"w1", dimensionSet(0,0,-0.5,0,0), vector(-1,1,-1)
I've been trying to see how to
I've been trying to see how to do this implicitly. The easiest way would be to do this:
A more elegant way would be to expand your term to get at least one involving (thing)*scal, and discretise that implicitly.
Thanks Niklas, So far so goo
So far so good. Seems to work fine now. Of course this is just a small part of what I want to do. Will get back later, hopefuly with no so easy questions.
Or use that... hope my math-sk
Or use that... hope my math-skills are all forgotten.
grad(a) dot V = div(aV) - a *div(V)
and since V is constant...
div(aV) = grad(a) dot V
fvc::grad(...) = div(...,scal)
Henry or Hrv will correct me if im wrong http://www.cfd-online.com/OpenFOAM_D...part/happy.gif
Actually, V is not constant, s
Actually, V is not constant, since nuEff is in there, V=nuEff*w1, so you cant drop that term.
It'll be something like
fvc::grad(...) & w1 = fvm::div(..., scal) -fvm::Sp(div(V), scal)
Anyway, im leaving the details to you.
You do the math. (hehe, I love to say that)
|All times are GMT -4. The time now is 18:18.|