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

turbulence problem

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 6, 2015, 13:04
Default turbulence problem
  #1
Member
 
António Pires
Join Date: Oct 2014
Posts: 33
Rep Power: 12
Antoniorp is on a distinguished road
Hello everyone

I'm currently trying to simulate wave propagation within a rectangular flume in order to determine velocity component u in the middle of the flume. I'm using IHFoam

Now i would like to make a run where the "simulationtype" field inside the file "turbulenceProperties" is not laminar so i can get more real results.

So I changed the "simulationtype" field to RASModel and in the "RASProperties" file I put this:

RASModel kEpsilon;

turbulence on;

printCoeffs on;


When I run the case i get the following error in terminal:

blockMesh meshing...
Preparing 0 folder...
Setting the fields...
Running...


--> FOAM FATAL IO ERROR:
cannot find file

file: /home/antonio/IHFOAM/IHFOAM_materials/tutorials/OF222/Klopman2/0/k at line 0.

From function regIOobject::readStream()
in file db/regIOobject/regIOobjectRead.C at line 73.

FOAM exiting

Simulation complete.


What is the problem happening here, anyone can help me?

Thanks everyone
Antoniorp is offline   Reply With Quote

Old   January 6, 2015, 13:10
Default
  #2
Senior Member
 
Blanco
Join Date: Mar 2009
Location: Torino, Italy
Posts: 193
Rep Power: 17
Blanco is on a distinguished road
Hi Antonio,

You need to provide to the code the k boundary value and initial values. To do this you need a k file in the 0 folder, and maybe other files depending on the turbulence model used.

Take a look at the tutorials to see how these files are written.

Best regards,
Andrea
Blanco is offline   Reply With Quote

Old   January 6, 2015, 13:47
Default
  #3
Member
 
António Pires
Join Date: Oct 2014
Posts: 33
Rep Power: 12
Antoniorp is on a distinguished road
Hi Andrea,

Thank you for the quick reply.

I'll do the k file and look for other information.

Anyway, do you know where can i find which files are needed for each turbulence model?

Thank you,

António
Antoniorp is offline   Reply With Quote

Old   January 8, 2015, 07:48
Default
  #4
Senior Member
 
Blanco
Join Date: Mar 2009
Location: Torino, Italy
Posts: 193
Rep Power: 17
Blanco is on a distinguished road
Hi Antonio,

the best thing you can do to know which physical quantities you need to provide to the code in order to use a turbulence model is to dig into the turbulence model code OR to look at the tutorials.

Please note that is not sufficient to turn on a turbulence model in the RASProperties file to use it, usually.

As an example, the k-eps model would certainly require you to initialize k, epsilon and I guess nut (turbulent kinematic viscosity), and you need to provide boundary condition for them also. But you also need to set appropriate solution schemes and algorithm in fvSchemes and fvSolution for each of them PLUS for any other turbulent quantity that the turbulence model will require (i.e. R?).

Look at the tutorials folder, you will get some useful example. After a very first look I would look for example at incompressible/boundaryFoam/boundaryWallFunctions tutorial.

Best regards,

Andrea
Blanco is offline   Reply With Quote

Old   January 8, 2015, 08:17
Default
  #5
Member
 
António Pires
Join Date: Oct 2014
Posts: 33
Rep Power: 12
Antoniorp is on a distinguished road
Hi Andrea,

Thanks again for your help

I will definitely take a look at your suggestions!

António
Antoniorp is offline   Reply With Quote

Old   January 11, 2015, 14:03
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings to all!

Quick tip: see subsection "2.1.8 High Reynolds number flow" in the OpenFOAM User Guide: http://www.openfoam.org/docs/user/cavity.php

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   January 18, 2015, 05:52
Default
  #7
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi António,

I hope you don't mind, but I'll answer most of the PM you sent me here on this post, because this question is relevant to the public in general

OK, you're question was how to find out about all possible boundary conditions and wall treatment models available in OpenFOAM, in order to try and deduce which ones are suitable for your problem.
The quick answer is going to seem very cryptic without context: use a "banana".
Yes, it seems ludicrous, but it's actually a funny example that works and is explained in detail on the wiki: http://openfoamwiki.net/index.php/Op...de/Use_bananas
If you Google the following:
Code:
site:www.cfd-online.com/forums "wyldckat" banana
you'll find several occasions where I and other people mention this trick. Here's one such example, which is actually very detailed: http://www.cfd-online.com/Forums/ope...tml#post512967 post #9

And that's not all! When you do know the name of the classes, you can easily look for them, as detailed here: http://openfoamwiki.net/index.php/In...hing_for_files
Then it's just a matter of looking at the first big block of description in the header files of each class. For example: https://github.com/OpenFOAM/OpenFOAM...hScalarField.H
But you can also look for it in the code documentation: http://www.openfoam.org/docs/cpp/

Best regards,
Bruno
iafpython and Antoniorp like this.
wyldckat 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
problem with UDF for (v2-f) turbulence model in fluent artemiss1984 Fluent UDF and Scheme Programming 6 January 17, 2014 06:50
problem with the model of turbulence. ounifiras FLOW-3D 4 December 3, 2013 17:05
Interface problem depending of turbulence model Jaimedopoulos FLUENT 0 February 11, 2013 06:53
Turbulence model for mixing problem??? nileshjrane Main CFD Forum 7 September 14, 2010 05:57
Inflow turbulence problem liuzhe1213 CFX 0 May 13, 2009 09:13


All times are GMT -4. The time now is 06:36.