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

Understanding BCs/transported quantities

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 25, 2017, 22:51
Default Understanding BCs/transported quantities
  #1
Senior Member
 
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 24
me3840 is on a distinguished road
Hello folks,

Perhaps this question requires some knowledge of how OpenFOAM is coded, but I'm a little lost.

Take for example an LES case with the WALE subgrid model. The example I can find for it: /tutorials/incompressible/pimpleFoam/channel395 has several files in the 0 directory:
B, k, nut, nuTilda, p, U

Now being that I've done a fair few CFD cases and there are nearly-universal names for some of the transported quantities (p is pressure, U is velocity..), it's easy to "just know" what some of the quantities here are.

This still raises two scenarios which are frustrating:
1. I know I haven't inputted any BCs for a quantity I need, for example, I know somewhere I need to enter turbulent viscosity someplace. How am I just supposed to figure out that I need a "nut" file?
2. Let's say I'm a newcomer and still learning, and I copy the tutorial. "B" is not descriptive or particularly memorable, how do I know what this field is? What method can I use to track it down?
me3840 is offline   Reply With Quote

Old   January 26, 2017, 04:14
Default
  #2
C-L
Member
 
Charlie Lloyd
Join Date: Feb 2016
Posts: 57
Rep Power: 10
C-L is on a distinguished road
There are a couple of ways you can check which variables you need:
- You could rename the turbulence variables to Btemp etc. and then run the solver and have a look at the error you receive - it will normally tell you which variables it needs.

-alternatively, if you know which turbulence model you want to use then you can find papers on it (normally referenced in the source code) and find out how they work and which variables they need. You could also look through the source code in '$FOAM_SRC' to find this out.

You do not need to specify all of these variables in general, only if you plan to swap to different turbulence models.

In terms of boundary conditions, sensible suggestions can be found in the tutorials for each of these variables. If more complex boundary conditions are required then I think you could come across the same issues as with commercial software! Again, if you wanted to see what boundary conditions are available you could also rename a boundary condition and see what errors come up when you try to run it. OF will usually tell you that it doesn't recognise something and then gives a list of options that it was expecting to find.

Hope that helps!
C-L 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
Reading Additional Data Quantities from Fluent into Tecplot fremder Tecplot 9 December 16, 2016 15:35
How to get an additional quantities in UDF kveki FLUENT 0 June 6, 2016 16:38
Understanding pimpleFoam convergence criterion Nucleophobe OpenFOAM Running, Solving & CFD 0 March 13, 2013 18:46
Convergence sensitivity to inlet turbulence quantities? gravis FLUENT 0 October 25, 2010 10:00
how to do the statistics of other quantities? lcw FLUENT 3 January 1, 2006 22:47


All times are GMT -4. The time now is 21:34.