How to get omega fields ?
Hi,
I am using OpenFOAM-1.5. I am doing RANS k-omega SST computations with a custom solver derived from simpleFoam and would like to manipulate fields of omega. In createFields.H, there is Code:
autoPtr<incompressible::RASModel> turbulence I also found the declaration of New() which did not help me much: Code:
//- Return a reference to the selected turbulence model |
Quote:
mesh.lookupObject<volScalarField>("omega") Have a look at Doxygen to find out what that actually does |
Get it. Didn't know it could be that simple.
Thanks ! |
Hi,
I have a question/problem accessing and modifying k and omega. Using the above mentioned as simply taking Quote:
Any hints? |
Quote:
|
Hello Bernhard,
I'm sorry to say that I'm not that familiar with c++ and references/pointers. I tried to reference the object in the following ways: Quote:
Quote:
I know that I definitely have to improve my c++ skills, but could you nevertheless give me the correct referencing syntax here? Thanks, Arne |
Quote:
My last answer (about const_cast) was meant to be in answer of this message. I relocated it |
Thanks, I already got the casting working and am currently trying to understand a bit more about it - esp. the "unwanted behavior" of a const_cast.
|
All times are GMT -4. The time now is 16:40. |