|
[Sponsors] |
How to specify patches on forcesIncompressible postprocessing |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 28, 2020, 18:23 |
How to specify patches on forcesIncompressible postprocessing
|
#1 |
New Member
Francisco Angel
Join Date: Dec 2012
Posts: 26
Rep Power: 14 |
Hi, I ran a simulation using simpleFoam of flow over a cylinder. Now I want to obtain force values on the cylinder surface.
So I tried to use the following command: Code:
simpleFoam -postProcess -noZero -func forcesIncompressible Starting with the solver name gives to postProcess utility the field names and stress model. The code fails with the following warning: Code:
--> FOAM Warning : From function Foam::labelHashSet Foam::polyBoundaryMesh::patchSet(const Foam::UList<Foam::wordRe>&, bool, bool) const in file meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C at line 804 Cannot find any patch or group names matching patch1 --> FOAM Warning : From function Foam::labelHashSet Foam::polyBoundaryMesh::patchSet(const Foam::UList<Foam::wordRe>&, bool, bool) const in file meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C at line 804 Cannot find any patch or group names matching patch2 Can someone share any experience with this postProcess function. Many thanks! |
|
March 1, 2020, 15:13 |
|
#2 |
New Member
Francisco Angel
Join Date: Dec 2012
Posts: 26
Rep Power: 14 |
Well, I found the solution after re-reading the manual. So here it is for anyone interested.
For a function like this to work is better to copy the required function file to the system directory, using foamGet Code:
foamGet forcesIncompressible Code:
patches (patch1 patch2) Code:
patches (yourPatch) Code:
simpleFoam -postProcess -func forcesIncompressible |
|
October 26, 2020, 09:11 |
|
#3 |
Member
UOCFD
Join Date: Oct 2020
Posts: 40
Rep Power: 6 |
how can be done runtime??? (i.e. by including in control dict)
|
|
October 27, 2020, 16:34 |
|
#4 |
Senior Member
Join Date: Oct 2017
Posts: 133
Rep Power: 9 |
Copy the content of the file which you get after executing
Code:
foamGet forcesIncompressible Code:
... functions { forces { #includeEtc "caseDicts/postProcessing/forces/forcesIncompressible.cfg" rhoInf 1.225; // Fluid density patches (patch1 patch2); CofR (0 0 0); pitchAxis (0 1 0); } } |
|
Tags |
forcesincompressible, openfoam, postprocess |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Foam::error::PrintStack | almir | OpenFOAM Running, Solving & CFD | 92 | May 21, 2024 08:56 |
Problem using AMI | vinz | OpenFOAM Running, Solving & CFD | 298 | November 13, 2023 09:19 |
[snappyHexMesh] snappyHexMesh error "Cannot determine normal vector from patches." | lethu | OpenFOAM Meshing & Mesh Conversion | 1 | June 3, 2020 08:49 |
Possible bug with stitchMesh and cyclics in OpenFoam | Jack001 | OpenFOAM Pre-Processing | 0 | May 21, 2016 09:00 |
Cyclic patches and parallel postprocessing problems | askjak | OpenFOAM Bugs | 18 | October 27, 2010 04:35 |