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/)
-   -   Change writeOption for singlePhaseTransportModel (https://www.cfd-online.com/Forums/openfoam-programming-development/129725-change-writeoption-singlephasetransportmodel.html)

kpax February 11, 2014 10:17

Change writeOption for singlePhaseTransportModel
 
Hi guys,

in a solver I am currently working on, I create a singlePhaseTransportModel:

singlePhaseTransportModel fluid(U, phi);

Apparently, this inherits the readOption and writeOption from U and phi, so that nu is written out at every time step. I would like to change the writeOption to NO_WRITE.

fluid.set("writeOption",IOobject::NO_WRITE) compiled but didn't work.
Confusingly, fluid.writeOpt() gives "1", which according to IOobject.H equals NO_WRITE.

Any ideas?

thx


All times are GMT -4. The time now is 20:41.