|
[Sponsors] |
August 25, 2016, 08:07 |
Adapting OF171 Turbulence model to OF231
|
#1 |
Member
António Soares
Join Date: Mar 2015
Location: Lisbon, Portugal
Posts: 48
Rep Power: 11 |
Greetings,
I'm trying to adapt the BSL-EARSM model programmed for OF171 by Elbert Jeyapal into OF231. Mr. Jeyapal has been quite kind but unfortunately doesn't have the time to adapt the existing code into other OF versions so I was trying to do it myself with some tips he gave me. I started out looking at the .C and .H files like he said and at first the only thing I noticed is that “private” portions of the code in the .C file are now called “protected” and have to be declared like the “public" sections. I’m not very knowledgeable of C++, but I take it this has to do with the intricacies of object oriented programming? After that I tried compiling it with the wmake libso command but got a bunch of errors as in the first log file. I tried correcting the first error by just declaring a volScalerField omega0_ in the .H file, but as you can see from the second log file this has still generated a host of other errors. Like I said before I’m not very knowledgeable of C++ programming but from the errors I’m getting I’m wondering if this isn’t a problem with an out of date compiler or merely a needed reconfiguration of the included make files (I’m going to try to look at that next). Any help would be appreciated. I was hoping that I could get this to work and later on try and adapt it to OF4.x. Best regards, |
|
November 29, 2016, 08:45 |
|
#2 |
Senior Member
khedar
Join Date: Oct 2016
Posts: 111
Rep Power: 10 |
Hi Outbound,
were you able to modify the code for OF2.3? Thanks, khedar |
|
November 29, 2016, 10:20 |
|
#3 |
Member
António Soares
Join Date: Mar 2015
Location: Lisbon, Portugal
Posts: 48
Rep Power: 11 |
Hi there,
I haven't tried any further. I found out there are other non-linear turbulence models I'm going to try and use. Eventually I'll give it another go but I have to do some tutorials first on how to apply a turbulence model to OF and then try to adapt the BSL-EARSM but for now I have to work with what I have and try and get this thesis done. I'll be sure to post it here if I'm able to get it working. Best regards, |
|
November 29, 2016, 13:59 |
|
#4 |
Senior Member
khedar
Join Date: Oct 2016
Posts: 111
Rep Power: 10 |
Hi Outbound,
My internship advisor was able to convert it for OF2.3.0. Currently I am doing some changes in the code (mainly the boundary condition part). I will ask him if I can share the code once i am done. shouldn't take long (). |
|
November 29, 2016, 14:28 |
|
#5 |
Member
António Soares
Join Date: Mar 2015
Location: Lisbon, Portugal
Posts: 48
Rep Power: 11 |
Awesome.
If so I will be sure to give proper credit in my own work. |
|
December 2, 2016, 14:33 |
|
#6 |
Member
António Soares
Join Date: Mar 2015
Location: Lisbon, Portugal
Posts: 48
Rep Power: 11 |
Any update on being able to use the adapted code?
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Overflow Error in Multiphase Modelling with Two Continuous Fluids | ashtonJ | CFX | 6 | August 11, 2014 15:32 |
What model of turbulence choose to study an external aerodynamics case | raffale | OpenFOAM | 0 | August 23, 2012 06:45 |
Wrong calculation of nut in the kOmegaSST turbulence model | FelixL | OpenFOAM Bugs | 27 | March 27, 2012 10:02 |
Low Reynolds k-epsilon model | YJZ | ANSYS | 1 | August 20, 2010 14:57 |
Fan heater model: what turbulence source to use? | andy20 | CFX | 7 | March 3, 2008 17:42 |