CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

buoyantReactingFoam: writing the total radiative heat flux field

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 12, 2022, 05:49
Default buoyantReactingFoam: writing the total radiative heat flux field
  #1
New Member
 
Join Date: Dec 2015
Posts: 24
Rep Power: 9
metalfox is on a distinguished road
Hi

I'm running a simulation with buoyantReactingFoam (openfoam 9) using fvDOM as the radiation model.

I would like to print the total radiative heat flux qr at each write time.

qr is defined as:

Code:
qr_
    (
        IOobject
        (
            "qr",
            mesh_.time().timeName(),
            mesh_,
            IOobject::READ_IF_PRESENT,
            IOobject::AUTO_WRITE
        ),
        mesh_,
        dimensionedScalar(dimMass/pow3(dimTime), 0)
    ),
in fvDOM.c.

I tried to request writing it by defining the following function object in my controlDict:

Code:
functions
{
    writeQr
    {
        type writeObjects;
        functionObjectLibs ( "libutilityFunctionObjects.so" );
        objects ("qr");
        writeControl writeTime;
    }
}
However, when I run buoyantReactingFoam, I get:

Code:
--> FOAM Warning : writeObjects: object qr not found in database. Available objects:

75
(
CH4
CH4Mean
CH4_0
CO2
CO2_0
Cp
Cv
GAMGAgglomeration
H2O
H2OMean
H2O_0
K
K_0
MRFProperties
N2
O2
O2Mean
O2_0
Residuals<scalar>
Residuals<vector>
T
TMean
U
UMean
U_0
alphat
boundary
cellZones
combustionProperties
data
delta
dpdt
faceZones
faces
fres_CH4
fres_CO2
fres_H2O
fres_N2
fres_O2
fvConstraints
fvModels
fvSchemes
fvSolution
g
gh
ghf
h
hRef
h_0
k
k_0
momentumTransport
neighbour
nut
owner
p
pRef
p_0
p_rgh
p_rgh_0
ph_rgh
phi
phi_0
pointZones
points
rho
rho_0
solutionControl
thermo:alpha
thermo:mu
thermo:psi
thermo:psi_0
thermophysicalProperties
thermophysicalTransport
wFuel
)
How could I write qr?

Thanks so much
metalfox is offline   Reply With Quote

Old   January 12, 2022, 08:52
Default
  #2
New Member
 
Join Date: Dec 2015
Posts: 24
Rep Power: 9
metalfox is on a distinguished road
I didn't set fvModels up correctly so that I had no radiation. qr is written by default. No need for a function object.
metalfox is offline   Reply With Quote

Reply

Tags
fvdom

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Simulating constant heat flux value at solid-solid boundary Y27 STAR-CCM+ 6 September 8, 2020 10:56
How to assign convective and radiative heat flux separately? vs1 OpenFOAM Running, Solving & CFD 0 July 18, 2018 09:11
My radial inflow turbine Abo Anas CFX 27 May 11, 2018 02:44
An error has occurred in cfx5solve: volo87 CFX 5 June 14, 2013 18:44
Concentric tube heat exchanger (Air-Water) Young CFX 5 October 7, 2008 00:17


All times are GMT -4. The time now is 21:43.