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

Adapting OF171 Turbulence model to OF231

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 25, 2016, 07:07
Default Adapting OF171 Turbulence model to OF231
  #1
Member
 
António Soares
Join Date: Mar 2015
Location: Lisbon, Portugal
Posts: 48
Rep Power: 11
Outbound is on a distinguished road
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,
Outbound is offline   Reply With Quote

Old   November 29, 2016, 07:45
Default
  #2
Senior Member
 
khedar
Join Date: Oct 2016
Posts: 111
Rep Power: 9
khedar is on a distinguished road
Hi Outbound,
were you able to modify the code for OF2.3?

Thanks,
khedar
khedar is offline   Reply With Quote

Old   November 29, 2016, 09:20
Default
  #3
Member
 
António Soares
Join Date: Mar 2015
Location: Lisbon, Portugal
Posts: 48
Rep Power: 11
Outbound is on a distinguished road
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,
Outbound is offline   Reply With Quote

Old   November 29, 2016, 12:59
Default
  #4
Senior Member
 
khedar
Join Date: Oct 2016
Posts: 111
Rep Power: 9
khedar is on a distinguished road
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 ().
khedar is offline   Reply With Quote

Old   November 29, 2016, 13:28
Default
  #5
Member
 
António Soares
Join Date: Mar 2015
Location: Lisbon, Portugal
Posts: 48
Rep Power: 11
Outbound is on a distinguished road
Awesome.

If so I will be sure to give proper credit in my own work.

Outbound is offline   Reply With Quote

Old   December 2, 2016, 13:33
Default
  #6
Member
 
António Soares
Join Date: Mar 2015
Location: Lisbon, Portugal
Posts: 48
Rep Power: 11
Outbound is on a distinguished road
Any update on being able to use the adapted code?
Outbound is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Overflow Error in Multiphase Modelling with Two Continuous Fluids ashtonJ CFX 6 August 11, 2014 14:32
What model of turbulence choose to study an external aerodynamics case raffale OpenFOAM 0 August 23, 2012 05:45
Wrong calculation of nut in the kOmegaSST turbulence model FelixL OpenFOAM Bugs 27 March 27, 2012 09:02
Low Reynolds k-epsilon model YJZ ANSYS 1 August 20, 2010 13:57
Fan heater model: what turbulence source to use? andy20 CFX 7 March 3, 2008 16:42


All times are GMT -4. The time now is 19:29.