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

Post-processing with heatTransferCoeff function

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 3, 2018, 12:10
Default Post-processing with heatTransferCoeff function
  #1
Member
 
1214
Join Date: Sep 2015
Posts: 30
Rep Power: 11
nusivares is on a distinguished road
Hello,

I am having a problem with of the simulation files - I have run it already, but want to extract the heat transfer coefficient. I have learnt how within the simulation (control dict), however, when I try to run a following using a text file with:

type heatTransferCoeff;
libs ("libfieldFunctionObjects.so");
field T;
patches ("walls.*");

htcModel ReynoldsAnalogy;
UInf (0 0 0.0494);
Cp CpInf;
CpInf 4178;
rho rhoInf;
rhoInf 994.1;
writeControl writeTime;


I get an error:

Code:
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v1712                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : v1712
Arch   : "LSB;label=32;scalar=64"
Exec   : postProcess -func heatCoeff
Date   : Oct 03 2018
Time   : 16:09:41
Host   : "cslin229.csunix.comp.leeds.ac.uk"
PID    : 17448
I/O    : uncollated
Case   : /usr/not-backed-up/ARC/ALM/corrugation/corrug_ALM-c
nProcs : 1
trapFpe: Floating point exception trapping enabled (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 1000

Selecting heat transfer coefficient model ReynoldsAnalogy
Time = 1000

Reading fields:
    volScalarFields: T


Executing functionObjects


--> FOAM FATAL ERROR: 

    request for volVectorField U from objectRegistry region0 failed
    available objects of type volVectorField are
0()

    From function const Type& Foam::objectRegistry::lookupObject(const Foam::word&, bool) const [with Type = Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>]
    in file /home/csunix/linux/apps/install/openfoam/v1712+/OpenFOAM-v1712/src/OpenFOAM/lnInclude/objectRegistryTemplates.C at line 239.

FOAM aborting

#0  Foam::error::printStack(Foam::Ostream&) at ??:?
#1  Foam::error::abort() at ??:?
#2  Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> const& Foam::objectRegistry::lookupObject<Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> >(Foam::word const&, bool) const at ??:?
#3  Foam::heatTransferCoeffModels::ReynoldsAnalogy::Cf() const at ??:?
#4  Foam::heatTransferCoeffModels::ReynoldsAnalogy::htc(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>&) at ??:?
#5  Foam::heatTransferCoeffModel::calc(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>&) at ??:?
#6  Foam::functionObjects::heatTransferCoeff::calc() at ??:?
#7  Foam::functionObjects::fieldExpression::execute() at ??:?
#8  Foam::functionObjects::timeControl::execute() at ??:?
#9  Foam::functionObjectList::execute() at ??:?
#10  ? at ??:?
#11  ? at ??:?
#12  __libc_start_main in "/lib64/libc.so.6"
#13  ? at ??:?
Aborted (core dumped)
How do I solve it? seems like it should be an easy fix, but I am struggling.
nusivares is offline   Reply With Quote

Old   October 3, 2018, 12:43
Default
  #2
Member
 
1214
Join Date: Sep 2015
Posts: 30
Rep Power: 11
nusivares is on a distinguished road
Ok, found a work around... might as well post it for people:

do "your solver" -postProcess

As long as you have the function in control dict - it will to it.

One of the many hidden features of openfoam, i guess - I have been using it for 3 years now..
nusivares is offline   Reply With Quote

Old   October 4, 2018, 04:14
Default
  #3
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30
akidess will become famous soon enough
Not hidden, it's documented:

Quote:
Every solver can be run with the -postProcess option, which only executes post-processing, but with additional access to data available on the database for the particular solver.
https://cfd.direct/openfoam/user-gui...rocessing-cli/
__________________
*On twitter @akidTwit
*Spend as much time formulating your questions as you expect people to spend on their answer.
akidess is offline   Reply With Quote

Old   October 4, 2018, 06:29
Default
  #4
Member
 
1214
Join Date: Sep 2015
Posts: 30
Rep Power: 11
nusivares is on a distinguished road
Quote:
Originally Posted by akidess View Post
Not hidden, it's documented:
And where else do you think I got the error from aboeve?? Did you try running the function yourself? at least in both 4.1 and v1712 versions - this gives no results.

And yes - I do not have access to newer versions for some peculiar reasons.
nusivares is offline   Reply With Quote

Old   October 4, 2018, 09:30
Default
  #5
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30
akidess will become famous soon enough
Reread my quote very carefully. You ran "postProcess" and got an error, the user guide tells you to run the solver with the "-postProcess" flag, i.e. "simpleFoam -postProcess".
__________________
*On twitter @akidTwit
*Spend as much time formulating your questions as you expect people to spend on their answer.
akidess is offline   Reply With Quote

Reply


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
[Other] refineWallLayer Error Yuby OpenFOAM Meshing & Mesh Conversion 2 November 11, 2021 12:04
channelFoam for a 3D pipe AlmostSurelyRob OpenFOAM 3 June 24, 2011 14:06
OpenFOAM static build on Cray XT5 asaijo OpenFOAM Installation 9 April 6, 2011 13:21
Version 15 on Mac OS X gschaider OpenFOAM Installation 113 December 2, 2009 11:23
Droplet Evaporation Christian Main CFD Forum 2 February 27, 2007 07:27


All times are GMT -4. The time now is 14:06.