Access turbulence model in coded functionobjectlibs
Dear foamers,
I have been using function object libs now for a while to be able to do some extra coding at run time without modifying the solver. Now I want to create a code snipped which calculates the RMS value of the solution matrix being solved, so you can access the accuracy of the solution. My code snipped would look like Code:
Regards Eelco |
work-around
As a work around in order to access the turbulence->divDevReff from the dynamically linked function object I found the following.
Code:
errorAnalysis |
Hello
Is the 'type coded' option available in OF 1.7.1? I get an error: Unknown function type coded Is there a way to implement it in OF 1.7.1? Thanks! ak |
The coded functionObjects seem to be only available in OpenFOAM 2.0+
See this release notes: http://www.cfd-online.com/Forums/ope...unction+object |
Hi Eelcovv,
Did you ever have any more success trying to access the turbulence data from coded function objects? I was trying to do something similar, and found the obr() function. This returns a reference to the object registry, which lists the turbulence model, and can supposedly return a reference to it. However, I kept getting errors when I tried to get at the turbulence model through the lookupObject function, but kept getting errors (type incompressible::turbulenceModel not found, foundObject method not valid), and wasn't sure how to link in the required libraries. |
Can anyone please advise how to access turbulenceModel in a coded functionObject?
obr() which is mentioned is the same as mesh() but it only has a reference to turbulence dictionary, not the object itself! I need to access epsilon of an LES simulation which cannot be found through lookupObject. I looked into the file and to calculate it directly I still need k which is the subgridscale kinetic energy in an LES simulation. |
Quote:
thank you. |
All times are GMT -4. The time now is 20:34. |