|
[Sponsors] |
October 19, 2018, 05:06 |
How to make a variable as an output
|
#1 |
New Member
Achref Rabhi
Join Date: Sep 2018
Posts: 6
Rep Power: 7 |
Hello !
I am currently using reactingTwoPhaseEulerFoam solver to model boiling and I want to make the heat flux variable used in calculation by the solver as an output (in the log file for example). This variable is not initialized by the used and it is created by the solver to calculate other quantities. Can any one help me how to solve this problem? Thank you! |
|
October 19, 2018, 09:14 |
|
#2 |
Member
Vince
Join Date: Mar 2017
Posts: 45
Rep Power: 9 |
Hi,
To print a quantity in the log file, simply introduce the following line Code:
Info << "my_quantity:" << tab << my_quantity << endl; Code:
wmake Thanks, Vincent |
|
October 21, 2018, 15:48 |
|
#3 | |
Senior Member
Santiago Lopez Castano
Join Date: Nov 2012
Posts: 354
Rep Power: 15 |
Quote:
<myField>.write(); |
||
October 23, 2018, 03:43 |
|
#4 |
New Member
Achref Rabhi
Join Date: Sep 2018
Posts: 6
Rep Power: 7 |
Thank you every one! this was really helpful!
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[waves2Foam] Waves2Foam Related Topics | ngj | OpenFOAM Community Contributions | 660 | August 20, 2018 12:39 |
Running UDF with Supercomputer | roi247 | FLUENT | 4 | October 15, 2015 13:41 |
In parallel computing, how to make a variable have the same value in all nodes? | hotin87 | Fluent UDF and Scheme Programming | 2 | January 23, 2015 12:47 |
Installation OF1.5-dev | ttdtud | OpenFOAM Installation | 46 | May 5, 2009 02:32 |
Regarding FoamX running Kindly help out | hariya03 | OpenFOAM Pre-Processing | 0 | April 18, 2008 04:26 |