|
[Sponsors] |
January 25, 2017, 23:51 |
Understanding BCs/transported quantities
|
#1 |
Senior Member
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 25 |
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? |
|
January 26, 2017, 05:14 |
|
#2 |
Member
Charlie Lloyd
Join Date: Feb 2016
Posts: 57
Rep Power: 10 |
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! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Reading Additional Data Quantities from Fluent into Tecplot | fremder | Tecplot | 9 | December 16, 2016 16:35 |
How to get an additional quantities in UDF | kveki | FLUENT | 0 | June 6, 2016 17:38 |
Understanding pimpleFoam convergence criterion | Nucleophobe | OpenFOAM Running, Solving & CFD | 0 | March 13, 2013 19:46 |
Convergence sensitivity to inlet turbulence quantities? | gravis | FLUENT | 0 | October 25, 2010 11:00 |
how to do the statistics of other quantities? | lcw | FLUENT | 3 | January 1, 2006 23:47 |