|
[Sponsors] |
Post-processing with heatTransferCoeff function |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 3, 2018, 12:10 |
Post-processing with heatTransferCoeff function
|
#1 |
Member
1214
Join Date: Sep 2015
Posts: 30
Rep Power: 11 |
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) |
|
October 3, 2018, 12:43 |
|
#2 |
Member
1214
Join Date: Sep 2015
Posts: 30
Rep Power: 11 |
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.. |
|
October 4, 2018, 04:14 |
|
#3 | |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
Not hidden, it's documented:
Quote:
__________________
*On twitter @akidTwit *Spend as much time formulating your questions as you expect people to spend on their answer. |
||
October 4, 2018, 06:29 |
|
#4 |
Member
1214
Join Date: Sep 2015
Posts: 30
Rep Power: 11 |
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. |
|
October 4, 2018, 09:30 |
|
#5 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
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. |
|
|
|
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 |