CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

PANS turbulence models

Register Blogs Community New Posts Updated Threads Search

Like Tree22Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 15, 2019, 02:53
Default Error Message while implementing PANS turbulence model
  #21
New Member
 
Ketan Ganatra
Join Date: Aug 2017
Posts: 9
Rep Power: 8
ketanganatra0@gmail.com is on a distinguished road
Quote:
Originally Posted by HelioVillanueva View Post
Hi all.

I implemented the Partially-Averaged Navier-Stokes (PANS) methodology in OpenFOAM-3.0.x for the kEpsilon and kOmegaSST turbulence models. I didn't rigorously validate the code, just tested on the pitzDaily tutorial for LES and the results seems to agree well for the mean velocity but with the big advantage in processing time. While the LES tutorial took 1hr and 24 mins, the kEpsilonPANS and kOmegaSSTPANS took aprox 15 mins. Although it's a simple tutorial case, the results are promising. Here is a video comparing the models.

Since the implementation was done using a lot of information available online (credits below), I hope that the validation and improvement of the code could also be done with the community help. For now, there is the need to copy the k and epsilon/omega files in 0 folder and rename to kU and epsilonU/omegaU to run a case. I think it would be nice if don't, but I couldn't manage to initialize the kU and epsilonU/omegaU fields with the NO_READ option in a way that was possible to use the turbulentMixingLenghtFrequencyInlet and turbulentMixingLenghtDissipationRateInlet bcs.

Another thing is the fK value. In the papers some use a constant value or a fK field. The second approach is implemented but it is possible to use a constant fK by specifying a narrow limit in constant/turbulenceProperties. See the case example provided with the code.

Code: here
it should compile just coping the directories to your OF user folder and run the Allmake script.

Hakan Nillson's phd cfd course at Chalmers. Report by Guglielmo Minelli
http://www.tfd.chalmers.se/~hani/kur.../OF_report.pdf

Abdol-Hamid, Girimaji 2005
http://ntrs.nasa.gov/archive/nasa/ca...0050182919.pdf

Lakshmipathy, Girimaji 2006
http://arc.aiaa.org/doi/abs/10.2514/6.2006-119

SUNIL LAKSHMIPATHY PHD Thesis:
http://oaktrust.library.tamu.edu/bit...pdf?sequence=2

About implementing new turbulence models in OF-3.0.x:
http://www.cfd-online.com/Forums/ope...tml#post578372
https://drive.google.com/drive/folde...51?usp=sharing

I have attached the following image for error message.
Could you help me regarding this..???
Please..
Thank you....
ketanganatra0@gmail.com is offline   Reply With Quote

Old   July 16, 2019, 15:22
Default Error messgae while compiling PANS turbulence model in ubuntu
  #22
New Member
 
Raj Kiran
Join Date: May 2018
Posts: 24
Rep Power: 8
Rakkiran is on a distinguished road
Hello Foamers,
I have tried the Allwmake command as explained in terminal after pasting the contents of the clone (find root)folder. But am facing few errors which are shown in the images.

Please guide me through this errors.



Thanks and regards,
Raj Kiran.
Attached Images
File Type: jpg Screenshot from 2019-07-17 06-08-37.jpg (206.4 KB, 18 views)
File Type: jpg Screenshot from 2019-07-17 06-11-32.jpg (181.6 KB, 13 views)
Rakkiran is offline   Reply With Quote

Old   July 17, 2019, 02:32
Default
  #23
Member
 
sajad alimardani
Join Date: Feb 2018
Posts: 31
Rep Power: 8
sajjjad is on a distinguished road
hi
what your version openfoam? 6 !?
this proram just working for openfoam 3.0.1 and 3 .
Helio Also write pans code for openfoam 4 .
https://github.com/HelioVillanueva/helio-4.x


regards, sajjad
sajjjad is offline   Reply With Quote

Old   July 17, 2019, 03:10
Default
  #24
New Member
 
Raj Kiran
Join Date: May 2018
Posts: 24
Rep Power: 8
Rakkiran is on a distinguished road
Quote:
Originally Posted by sajjjad View Post
hi
what your version openfoam? 6 !?
this proram just working for openfoam 3.0.1 and 3 .
Helio Also write pans code for openfoam 4 .
https://github.com/HelioVillanueva/helio-4.x


regards, sajjad
Grateful for the quick response. And yeah am using OF version 6. Is the given code in link compatible with OF 6? ? If not how can use it with my current version.

Thanks and regards,
Raj Kiran.
Rakkiran is offline   Reply With Quote

Old   July 17, 2019, 03:22
Default
  #25
Member
 
sajad alimardani
Join Date: Feb 2018
Posts: 31
Rep Power: 8
sajjjad is on a distinguished road
hi Raj Kiran.
I don't know exist pans code for version 6.
you must change code pans for OF6. code OF versions Some changes.
Helio is better able to help you.

regards, sajjad
Rakkiran likes this.
sajjjad is offline   Reply With Quote

Old   August 6, 2019, 11:44
Default Error message while installing openfoam extended 3 for PANS turbulence models..
  #26
New Member
 
Ketan Ganatra
Join Date: Aug 2017
Posts: 9
Rep Power: 8
ketanganatra0@gmail.com is on a distinguished road
Can any one help me regarding the error message mentioned in the image???
the error message appears as "Command not found".
Attached Images
File Type: jpg 1.jpg (35.9 KB, 19 views)
ketanganatra0@gmail.com is offline   Reply With Quote

Old   August 7, 2019, 13:58
Default
  #27
Member
 
sajad alimardani
Join Date: Feb 2018
Posts: 31
Rep Power: 8
sajjjad is on a distinguished road
hi
you can see this page.
icoFoam: command not found
regards, sajjad
sajjjad is offline   Reply With Quote

Old   February 27, 2020, 18:11
Default
  #28
New Member
 
Pedro
Join Date: Feb 2016
Location: United States
Posts: 23
Rep Power: 10
pedramtx is on a distinguished road
Sorry for the late reply. This comment might help people who are using PANS.

PANS absolutely captures the transition point. It all depends on i) your numerical and physical resolutions ii) inflow field iii) imposing right unstable modes! If more help is needed please let me know.
pedramtx is offline   Reply With Quote

Old   February 27, 2020, 18:12
Default
  #29
New Member
 
Pedro
Join Date: Feb 2016
Location: United States
Posts: 23
Rep Power: 10
pedramtx is on a distinguished road
Quote:
Originally Posted by popstar0426 View Post
Hi, Helio:

How does PANS methodology solve the laminar-turbulent transition process?

Best regards!
Yue

Sorry for the late reply. This comment might help people who are using PANS.

PANS absolutely captures the transition point. It all depends on i) your numerical and physical resolutions ii) inflow field iii) imposing right unstable modes! If more help is needed please let me know.



Pedram
pedramtx is offline   Reply With Quote

Old   July 13, 2020, 13:30
Default
  #30
Member
 
Gang Wang
Join Date: Oct 2019
Location: China
Posts: 64
Rep Power: 7
Gang Wang is on a distinguished road
I think it's an old post but I'd like to know could anyone share the revised code of PANS model for OpenFOAM v1806 or the latest version of OF?

Best,
Gang
Gang Wang is offline   Reply With Quote

Old   February 6, 2021, 21:07
Default
  #31
New Member
 
Skanda
Join Date: Feb 2021
Posts: 11
Rep Power: 5
Fuzzy_Wuzzy is on a distinguished road
Is there revised code for OoenFOAM v2012? Badly need the PANS code.
Gang Wang likes this.
Fuzzy_Wuzzy is offline   Reply With Quote

Old   September 27, 2021, 08:42
Default
  #32
Member
 
Gang Wang
Join Date: Oct 2019
Location: China
Posts: 64
Rep Power: 7
Gang Wang is on a distinguished road
Quote:
Originally Posted by Fuzzy_Wuzzy View Post
Is there revised code for OoenFOAM v2012? Badly need the PANS code.
Hi! I also need the PANS code for the latest OF, did you solve it out?

Best,
Gang
Gang Wang is offline   Reply With Quote

Old   September 28, 2021, 06:29
Default
  #33
New Member
 
Skanda
Join Date: Feb 2021
Posts: 11
Rep Power: 5
Fuzzy_Wuzzy is on a distinguished road
Quote:
Originally Posted by Gang Wang View Post
Hi! I also need the PANS code for the latest OF, did you solve it out?

Best,
Gang
Hey! Yes I have made some progress with it. If you can give me your email addres I would be happy to share it.
Fuzzy_Wuzzy is offline   Reply With Quote

Old   September 28, 2021, 06:54
Default
  #34
Member
 
Gang Wang
Join Date: Oct 2019
Location: China
Posts: 64
Rep Power: 7
Gang Wang is on a distinguished road
Quote:
Originally Posted by Fuzzy_Wuzzy View Post
Hey! Yes I have made some progress with it. If you can give me your email addres I would be happy to share it.
Hi Skanda,

Thank you very much for sharing the code. I mainly use the kOmegaSST-PANS. It's really great to test your code. My Email is wg0632@gmail.com. Let's keep in touch.

Best regards,
Gang
Gang Wang is offline   Reply With Quote

Old   December 11, 2021, 14:46
Default
  #35
New Member
 
CPark
Join Date: Apr 2021
Location: Germany
Posts: 11
Rep Power: 5
ckpark is on a distinguished road
Quote:
Originally Posted by Fuzzy_Wuzzy View Post
Hey! Yes I have made some progress with it. If you can give me your email addres I would be happy to share it.
Dear Skanda,
Could you share the code with me as well? It'll be greatly appreciated.
Here is my email: ckdrb247@mail.com
Thanks in advance.
With kind regards,
ck
ckpark is offline   Reply With Quote

Old   December 27, 2021, 10:23
Default
  #36
New Member
 
dd
Join Date: Sep 2010
Posts: 2
Rep Power: 0
hellodd is on a distinguished road
Hi, Foamers,

I see that many people here want a PANS turbulence code that running on recent OpenFOAM distributions. Early this year (2021), I managed to compile the PANS code originally written by HelioVillanueva on OpenFOAM-v2012 , the modified PANS code can be found on https://github.com/oseen/PANS_TurbulenceModels.

The code was confirmed to work on OpenFOAM-v2012 and OpenFOAM-v2106.

Best regards,

Shahr and ckpark like this.
hellodd is offline   Reply With Quote

Old   December 28, 2021, 10:04
Default
  #37
New Member
 
CPark
Join Date: Apr 2021
Location: Germany
Posts: 11
Rep Power: 5
ckpark is on a distinguished road
Quote:
Originally Posted by hellodd View Post
Hi, Foamers,

I see that many people here want a PANS turbulence code that running on recent OpenFOAM distributions. Early this year (2021), I managed to compile the PANS code originally written by HelioVillanueva on OpenFOAM-v2012 , the modified PANS code can be found on https://github.com/oseen/PANS_TurbulenceModels.

The code was confirmed to work on OpenFOAM-v2012 and OpenFOAM-v2106.

Best regards,

Thanks dd for your work. I have a query about the initial implementation by HelioVillanueva that you have based your work on.
Is the k-epsilon PANS model based on Maximum Transport (MT) model (Girimaji, 2006)?
Or is it based on the Zero Transport (ZT) model?
The k-epsilon model used by OpenFOAM and HelioVillanueva differ from the classical k-epsilon model used in Girimaji (2006) so I find it hard to trace back Heliovillanueva's derivation.


Thanks in advance!
With kind regards,
ck
ckpark is offline   Reply With Quote

Old   July 31, 2023, 09:49
Default compilation problem
  #38
New Member
 
Pallav Sahu
Join Date: Jul 2023
Posts: 2
Rep Power: 0
pals123 is on a distinguished road
Quote:
Originally Posted by hellodd View Post
Hi, Foamers,

I see that many people here want a PANS turbulence code that running on recent OpenFOAM distributions. Early this year (2021), I managed to compile the PANS code originally written by HelioVillanueva on OpenFOAM-v2012 , the modified PANS code can be found on https://github.com/oseen/PANS_TurbulenceModels.

The code was confirmed to work on OpenFOAM-v2012 and OpenFOAM-v2106.

Best regards,


Hi i tried to compile this code in OpenFOAM-v2012 but getting this error

Traceback (most recent call last):
File "/usr/lib/command-not-found", line 28, in <module>
from CommandNotFound import CommandNotFound
File "/usr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py", line 19, in <module>
from CommandNotFound.db.db import SqliteDatabase
File "/usr/lib/python3/dist-packages/CommandNotFound/db/db.py", line 5, in <module>
import apt_pkg
ImportError: /opt/OpenFOAM/OpenFOAM-v2012/ThirdParty/platforms/linux64/gcc-6.3.0/lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /lib/x86_64-linux-gnu/libapt-pkg.so.6.0)
pallav@Pallav-ideapad:~/OpenFOAM/pallav-dev/PANS_TurbulenceModels-master/src/TurbulenceModels$

can you help me with directing what's going wrong in my compilation

Best regards
Pallav
pals123 is offline   Reply With Quote

Old   August 4, 2023, 01:58
Default
  #39
New Member
 
Pallav Sahu
Join Date: Jul 2023
Posts: 2
Rep Power: 0
pals123 is on a distinguished road
Quote:
Originally Posted by pals123 View Post
Hi i tried to compile this code in OpenFOAM-v2012 but getting this error

Traceback (most recent call last):
File "/usr/lib/command-not-found", line 28, in <module>
from CommandNotFound import CommandNotFound
File "/usr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py", line 19, in <module>
from CommandNotFound.db.db import SqliteDatabase
File "/usr/lib/python3/dist-packages/CommandNotFound/db/db.py", line 5, in <module>
import apt_pkg
ImportError: /opt/OpenFOAM/OpenFOAM-v2012/ThirdParty/platforms/linux64/gcc-6.3.0/lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /lib/x86_64-linux-gnu/libapt-pkg.so.6.0)
pallav@Pallav-ideapad:~/OpenFOAM/pallav-dev/PANS_TurbulenceModels-master/src/TurbulenceModels$

can you help me with directing what's going wrong in my compilation

Best regards
Pallav
this error is fixed and turbulence model is compiled. But i have one further query will this work for caviation simulations?

Last edited by pals123; August 5, 2023 at 03:02.
pals123 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
different zones, different turbulence models gmwsy FLUENT 5 June 17, 2020 15:42
in k-epsilon wall function approach high Re turbulence models: question of velocity romant OpenFOAM Programming & Development 6 May 26, 2016 09:14
Y plus for various turbulence models taram CFX 8 December 16, 2013 11:44
Zero Equation Turbulence models stefan.gracik OpenFOAM Programming & Development 3 April 17, 2013 14:12
KOmega Turbulence model from wwwopenFOAMWikinet philippose OpenFOAM Running, Solving & CFD 30 August 4, 2010 10:26


All times are GMT -4. The time now is 11:12.