|
[Sponsors] |
September 25, 2018, 16:57 |
nearWallFields error in postProcessing
|
#1 |
New Member
Lorenzo
Join Date: Jul 2018
Posts: 14
Rep Power: 8 |
I'm trying to calculate the UNear field of my simulation but I run always in 2 error.
I execute this command line: Code:
simpleFoam -postProcess -field U -func nearWallFields -latestTime Code:
/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 6 \\/ M anipulation | \*---------------------------------------------------------------------------*/ Build : 6-1a0c91b3baa8 Exec : simpleFoam -postProcess -field U -func nearWallFields -latestTime Date : Sep 23 2018 Time : 19:38:13 Host : "lorenzo-SATELLITE-P755" PID : 21855 I/O : uncollated Case : /home/lorenzo/OpenFOAM/lorenzo-6/run/Muso0 nProcs : 1 sigFpe : Enabling floating point exception trapping (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 = 700 SIMPLE: Convergence criteria found U: tolerance 1e-05 "p.*": tolerance 1e-05 k: tolerance 1e-05 omega: tolerance 1e-05 --> FOAM FATAL IO ERROR: wrong token type - expected word, found on line 19 the punctuation token '(' file: /home/lorenzo/OpenFOAM/lorenzo-6/run/Muso0/system/nearWallFields.nearWallFields.fields at line 19. From function Foam::Istream& Foam::operator>>(Foam::Istream&, Foam::word&) in file primitives/strings/word/wordIO.C at line 74. FOAM exiting Therefore I remove the brackets from the nearWallFields file, I execute the first command line again and I get the opposite error. Code:
/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 6 \\/ M anipulation | \*---------------------------------------------------------------------------*/ Build : 6-1a0c91b3baa8 Exec : simpleFoam -postProcess -field U -func nearWallFields -latestTime Date : Sep 23 2018 Time : 19:41:36 Host : "lorenzo-SATELLITE-P755" PID : 22463 I/O : uncollated Case : /home/lorenzo/OpenFOAM/lorenzo-6/run/Muso0 nProcs : 1 sigFpe : Enabling floating point exception trapping (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 = 700 SIMPLE: Convergence criteria found U: tolerance 1e-05 "p.*": tolerance 1e-05 k: tolerance 1e-05 omega: tolerance 1e-05 --> FOAM FATAL IO ERROR: Expected a '(' while reading Tuple2, found on line 19 the word 'U' file: /home/lorenzo/OpenFOAM/lorenzo-6/run/Muso0/system/nearWallFields.nearWallFields.fields at line 19. From function Foam::Istream& Foam::Istream::readBegin(const char*) in file db/IOstreams/IOstreams/Istream.C at line 92. If you need to see the nearWallFields file here it is: Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 4.1 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ // Interpolate U to create near-wall UNear nearWallFields { functionObjectLibs ("libfieldFunctionObjects.so"); type nearWallFields; writeControl writeTime; executeControl writeTime; fields ( U UNear ); patches (solid_0_Pilota solid_0_Muso solid_0_Monoscocca_DPX_Solida solid_0_FW solid_0_Ant); distance 0.001; } // *********************************************************************** // I really don't know what I'm doing wrong… Any help is really appreciated! Thank you in advance |
|
February 14, 2019, 05:34 |
|
#2 |
New Member
Matteo Pischiutta
Join Date: Mar 2012
Location: Milano, Italy
Posts: 1
Rep Power: 0 |
Hi Lorenzo,
did you solve this? I've the same problem, I'm not able to run nearWallFields in postProcessing. Thanks Matteo |
|
February 26, 2019, 01:19 |
|
#3 |
New Member
Lorenzo
Join Date: Jul 2018
Posts: 14
Rep Power: 8 |
Unfortunately I did not.
|
|
March 4, 2019, 07:46 |
|
#4 |
Senior Member
Join Date: Oct 2017
Posts: 131
Rep Power: 9 |
Hi wilove, hi matpisk,
I'm not able to use nearWallFields in post processing, too. Maybe this is not possible? Because if you check Code:
postProcess -list The only way I managed to get it working, was to add it to the controlDict file and compute it during the simulation. Kind regards, Krapf |
|
April 11, 2019, 04:37 |
|
#5 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,207
Rep Power: 28 |
Hello Guys,
Lorenzo, I'm not sure whether your tried it or not, but my best bet is that your nearWallFields function object misses two brackets. It should be written this way : Code:
fields ( (U UNear) ); Here you get everything you need from the $FOAM_SRC/functionObjects/field/nearWallFields/nearWallFields.H : Code:
[...] Description Samples near-patch volume fields. Fields are stored - every time step the field is updated with new values - at output it writes the fields This functionObject can either be used - to calculate a new field as a post-processing step or - since the fields are registered, used in another functionObject Example of function object specification: \verbatim nearWallFields1 { type nearWallFields; libs ("libfieldFunctionObjects.so"); writeControl writeTime; fields ( (p pNear) (U UNear) ); patches (movingWall); distance 0.13; } \endverbatim Usage \table Property | Description | Required | Default value type | type name: nearWallFields | yes | fields | list of fields with correspoding output field names | yes | patches | list of patches to sample | yes | distance | distance from patch to sample | yes | \endtable [...] Let us know if it solves your problem. Yann |
|
Tags |
error, nearwallfields, openfoam, postprocessing, simplefoam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
using fieldAverage library to average postprocessing | eelcovv | OpenFOAM Programming & Development | 32 | May 17, 2022 10:55 |
How to export the specific heat and viscosity for postprocessing (compressible) ? | david39 | OpenFOAM Post-Processing | 2 | January 4, 2019 08:04 |
Postprocessing in 3d - Creating part of a surface | shankara.2 | FLUENT | 0 | July 13, 2009 18:33 |
Question about Postprocessing Using UDF(in tutoria | sarah_ron2002 | FLUENT | 1 | April 10, 2007 17:17 |
postprocessing | bas rijkse | FLUENT | 0 | July 5, 2001 09:30 |