what is useUserTime flag in function objects?
Hi,
In function objects, there is a flag 'useUserTime'. Could you please explain what does thid flag do? what is its purpose? Any examples to clarify this are appreciated. Regards |
Did you already read the documentation note on writeFile.H ?
|
This may save you some time in the future, and allow you to avoid pointless posts ;).
1. Open up Doxygen (you are using the ESI version, I think, so that would be https://www.openfoam.com/documentati...doc/index.html). 2. Type in the thing that you are searching for in the search box, i.e. useUserTime here; if it finds the search item, a drop down of hyperlink(s) will appear with all items starting with your string - click on the appropriate one 3. this will open up the Doxygen pages for the thing you are searching for. In other words, within just a few seconds you would get: Code:
bool useUserTime_ Doxygen can be a bit clunky sometimes, but is your key to unlocking the mysteries of OF! Good luck and Happy New Year! |
Quote:
But the description does not make sense for me at all. The short description says: "... to use the specified user time..": What is a user time? how can I specify it? Also in the description: "CA deg instead of seconds": What is CA deg????? You can see clearly that this description does not make sense without context, that's why I have asked for clarification and examples. Best regards |
Quote:
Thank you. |
Aaah - well, now that's a much better question. "CA" stands for crank angle and comes from the development of engineFoam I believe (correct me Mark if I am wrong).
The userTime is whatever you want it to be ... it suggests degrees in the header, but it could be anything. To see what the useUserTime flag does, take a look at writeFile.C, where you'll see: Code:
if (useUserTime_) If you really want to dig into it, I suggest starting with https://www.openfoam.com/documentati...9ee65af8a.html ... and in particular https://www.openfoam.com/documentati...8C_source.html where you'll see the above being implemented. I found this pretty quickly with a command line grep command. Good luck again. |
Quote:
Nice explanation :) Assuming that I understand that and it does what I think it does, I wonder how I can use this in my simulations. Is there a minimal tutorial where this is used? can I use it with pimpleFoam? how? |
Quote:
|
All times are GMT -4. The time now is 13:18. |