Editing RSTM Turbulence Model
Hi everyone,
I want to edit the LaunderGibsonRSTM turbulence model which comes with OpenFOAM. More exactly I want to change the equation for the Reynolds Stresses in this model, so that it becomes a new modelling approach. I copied the Folder with the model and renamed it with the name of the new model and I also renamed the files within this copied folder. Then I began to edit the .C and .H file and it seemed to work. But unfortunately I get an error while compiling the edited file. The eror tells me that LHS and RHS (Left and right Handside) of the equation I edited no longer have the same Dimensions. I think this is because I deleted some Coefficients in this equation and added some new ones. Sadly I cant find where the dimensions of these constants are implemented. Did anyone encounter this problem too or does anyone know how to solve it? Thanls a lot 
I thought the posted error message might probably help:
Code:

Sven,
from your error out put you have some mismatch of dimensions in substraction of two values in Foam::incompressible::RASModels::LaunderGibsonModi fied::correct() method. Analyze it if all parts have the same dimensions. As a hint: it is better first to analyze equations on paper if they are correctly stated before transitioning them to source code. Good luck! 
All times are GMT 4. The time now is 09:45. 