|February 8, 2014, 08:09||
Writing face centre values
Join Date: Sep 2013
Posts: 86Rep Power: 3
Is runTime.write() is only for writing volume fields? If yes what is the equivalent for writing face values.
surfaceScalarField Mach_sf = M_Lplus +M_Rminus;
I want to write at runtime value of Mach_sf.
|February 28, 2014, 12:11||
Mohammad Shakil Ahmmed
Join Date: Oct 2012
Posts: 123Rep Power: 5
You can have a look at the writeCellCentres utility, and Mach_sf.write() should work .
|March 2, 2014, 05:01||
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Deltares, Delft, The Netherlands
Posts: 1,607Rep Power: 25
No, runTime outputting also works for surfaceField<Type>, but you should make sure that you do not define your field inside a scope, such that it is deleted, once runTime.write() is executed.
If these things is not a problem, then it might be the write properties of the field, which can be changed with something along the following line:
fieldName.regIOobject::writeOpt() = IOobject::AUTO_WRITE;
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
|Thread||Thread Starter||Forum||Replies||Last Post|
|how to set periodic boundary conditions||Ganesh||FLUENT||13||January 22, 2014 05:11|
|FvMatrix coefficients||shrina||OpenFOAM Running, Solving & CFD||10||October 3, 2013 14:38|
|non-orthogonal faces and incorrect orientation?||nennbs||OpenFOAM Native Meshers: blockMesh||7||April 17, 2013 05:42|
|Assigning face values into nodes||syavash||FLUENT||2||September 19, 2012 20:46|
|face and cell centered values||danihuso||OpenFOAM||0||July 17, 2009 11:01|