|
[Sponsors] |
December 7, 2018, 12:03 |
ReTau and equation for nut
|
#1 | |||
Senior Member
Guilherme
Join Date: Apr 2017
Posts: 245
Rep Power: 10 |
Hi,
I need to write a eddy viscosity equation (nut) for my kOmega model. The equation is attached. I would like help to be able to write the ReTau function because I am not able to create a this function (...and the biggest problem is to write the uTau equation). Quote:
Quote:
Quote:
Last edited by gu1; December 7, 2018 at 16:25. |
||||
December 9, 2018, 05:35 |
|
#2 |
Senior Member
Guilherme
Join Date: Apr 2017
Posts: 245
Rep Power: 10 |
Can someone help me?
|
|
December 27, 2018, 14:38 |
|
#3 |
Senior Member
Guilherme
Join Date: Apr 2017
Posts: 245
Rep Power: 10 |
Can someone help me? 2
|
|
December 28, 2018, 06:30 |
|
#4 | |
Member
Join Date: Dec 2018
Location: Darmstadt, Germany
Posts: 87
Rep Power: 7 |
Hey there,
taking a look at your code and the error, it is quite clear what is not going well. Quote:
Also, you define faceI in your forAll macro but then you use facei inside of the loop. The last warning is not causing your code to not compile. However it tells you that you are defining something that you are not using. Code:
tmp<volScalarField> uTau = pow025(Cmu_)*sqrt(k[celli]); I think you should take a look at a few more turbulence model classes as starting point. Read the OF programmers guide (google). Find the one class that suits best to your problem (if it's kOmega, great) and then implement the few functions needed in that framework. Write how it should be working on paper and then find functions that mimic the expected behaviour (and adapt them). What you seem to be doing is wild copy-pasting and it will probably not lead you to your goal. wish you good luck! RP |
||
December 28, 2018, 07:03 |
|
#5 |
Senior Member
Guilherme
Join Date: Apr 2017
Posts: 245
Rep Power: 10 |
Yes, I am aware that it is not right ... my intention was actually to show what my goal was. I believe it is not easy to implement a uTau function inside a kEpsilon.C file and alone I believe I can not do it. My intention with the post is to call on the help of more experienced people...
|
|
|
|