|
[Sponsors] |
May 27, 2013, 06:42 |
writing out a volScalarField
|
#1 | |
Member
Join Date: Feb 2013
Posts: 30
Rep Power: 13 |
Hi!
I would like another variable to be written to the output, namely, I'm using the porousInterFoam solver and I would like to write mu every writeInterval. I tried it with Code:
mu.write() Code:
volScalarField mu ( IOobject ( "mu", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE ), twoPhaseProperties.mu(), alpha1.boundaryField().types() ); Code:
mu = twoPhaseProperties.mu() Quote:
Thank you, Natalie |
||
May 27, 2013, 06:59 |
|
#2 | |
Senior Member
|
Quote:
Why don't you write out nu?, if you look at the error then nu (volScalarField) seems to be available with respect to your code. |
||
May 27, 2013, 08:05 |
|
#3 |
Member
Join Date: Feb 2013
Posts: 30
Rep Power: 13 |
Hi!
I want to write mu since mu is somehow interpolated due to the twoPhases and I want to have a look at that.. nu is an input parameter and should be constant over the entire domain. greetings, Natalie |
|
May 27, 2013, 08:26 |
|
#4 | |
Senior Member
|
Quote:
create a file named "mu" in your case folder inside a 0 folder & set all BC as 0 value. |
||
August 16, 2018, 13:33 |
|
#5 | |
New Member
Adi
Join Date: Apr 2018
Posts: 2
Rep Power: 0 |
Quote:
if yes, could you please let me know how? |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[openSmoke] libOpenSMOKE | Tobi | OpenFOAM Community Contributions | 562 | January 25, 2023 09:21 |
How to Mix AIR and WATER | Elvis1991 | FLUENT | 12 | December 1, 2016 12:28 |
solid to fluid heattransfer with chtMultiRegionFoam | nakor | OpenFOAM | 11 | March 21, 2011 08:28 |
Not writing volScalarField to hard disk | piccinini | OpenFOAM | 1 | October 14, 2010 13:26 |
writing volScalarField | ubaid | OpenFOAM Post-Processing | 0 | August 16, 2010 13:55 |