binData in forces functionObject
Hi,
I am writing my own functionObject and since I am quite new to OpenFOAM i started off by making a copy of the standard functionObject forces and I am now about to adopt it to my needs. I have managed to understand quite a bit of what is going on in there but on thing that I still don't understand is the binData, that is referred on many places in the code. For example: Code:
case BINS_FILE: Thankful for any explanation on this. Cheers, David |
Hi!
I also felt confused about this, do you have any idea about bindata? Best regards, Gang |
It's writing out a file of the binned data.
|
Quote:
|
Hii there,
well if you read the description it says the following : "Member function forces::write() calculates the forces/moments and writes the forces/moments into the file \<timeDir\>/forces.dat and bin data (if selected) to the file \<timeDir\>/forces_bin.dat" also later it follows with the usage of it as : "Bin data is optional, but if the dictionary is present, the entries must be defined according o \table nBin | number of data bins | yes | direction | direction along which bins are defined | yes | cumulative | bin data accumulated with increasing distance | yes | \endtable" It is an optional feature and it seems that you may use it when you want to have spatial distribution of forces/moments along a certain direction ... You may try it out to see how it works... |
In other words this will get you a distribution of forces along a direction.
This is typical for aero cases where one is interested in seeing where drag or lift has the largest increase or decrease, allowing focused development of that area. |
Quote:
|
All times are GMT -4. The time now is 07:27. |