Momentum source containing div(tensor) using fvOptions
Hi Foamers,
I'm fairly new to OpenFOAM and I'm using v6. In my momentum equations, I have a source term that contains a divergence of a random symmetric stress tensor. Is it possible to define this term using fvOptions? If yes, please let me know how. Many thanks in advance! sreehahaha |
How is that tensor defined? If it is already defined in your solver you could add the term directly there.
Otherwise you could try with a codeStream fvOption |
Thanks for the reply agustinvo.
I already tried adding this term directly into the UEqn definition within a new solver (myIcoFoam). However, it looks like it has some issues. That is why I thought to use fvOptions instead. But, I'm confused how to define div(tensor) in fvOptions. If possible, could you please elaborate your suggestion on using codeStream? Many thanks! |
What are these issues? Can you show your equations?
I am not an expert in codeStream, however I think it could be easy to add it in your solver if the tensor is already created there. |
Hi agustinvo,
Sorry for the slight delay in replying. So my UEqn goes like: Code:
fvVectorMatrix UEqn Code:
forAll(stochTau,i) |
I would need to see the reference model to check what can be missing. Do you have a test case? Which OpenFOAM version are you using?
|
All times are GMT -4. The time now is 02:56. |