CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Question on introducing new terms into an existing model (https://www.cfd-online.com/Forums/openfoam-programming-development/84321-question-introducing-new-terms-into-existing-model.html)

351Cleveland January 26, 2011 06:48

Question on introducing new terms into an existing model
 
Hello there,

linking to my previous post:

http://www.cfd-online.com/Forums/ope...ion-error.html

I decided to post here as the question seemed more relevant to programming than general OpenFoam query.

I have been trying to create a new model from the existing incompressible kEpsilon model files which includes the ability to calculate liquid mass fraction. I have added the corresponding constants/transport equation without problems and the model compiled correctly, however I am slightly concerned about re-using the term 'autoCreate' in the .C file as I could not create a new function for y-liq without it coming up with an error (see previous post).

My question is that, by re-using the autoCreateK term for y-liq, givent that the only boundary conditions for y are either zeroGradient or uniform value; will this cause any problems during simulation or do I have to create a new autoCreate term specifically for yliq?

Much obliged.

Dominic.


All times are GMT -4. The time now is 12:17.