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

Offline forces port processing

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 6, 2024, 07:17
Default Offline forces port processing
  #1
New Member
 
Join Date: Oct 2024
Posts: 6
Rep Power: 2
Albertine is on a distinguished road
Good morning,
I'm trying to run some offline function objects using the command foamPostProcess after the simulation is completed.

I've written the functions looking a the documents into etc/postProcessing.
I managed to add a probe to get the pressure, but I'm struggling to get forces.

My question is: is it possible to get forces offline?

If yes can you help me?

This is my function and the consequent error:

forces_splitter
{

type forces;
libs ("libforces.so");

writeControl timeStep;
writeInterval 1;



patches (splitter);

rhoInf 1.225;

CofR (0 0 0)>;

pitchAxis (1 0 0);

rho rhoInf;
}

--> FOAM FATAL ERROR:
Could not find U, p

From function void Foam::functionObjects::forcesBase::initialise()
in file forcesBase/forcesBase.C at line 186.

FOAM exiting
Albertine is offline   Reply With Quote

Old   November 7, 2024, 04:26
Default
  #2
Senior Member
 
JNSN's Avatar
 
Jan
Join Date: Jul 2009
Location: Hamburg
Posts: 143
Rep Power: 20
JNSN is on a distinguished road
from the documentation (https://doc.cfd.direct/openfoam/user...processing-cli):
*****************************************
This returns the following error message.
--> FOAM FATAL IO ERROR:
request for volVectorField U from objectRegistry region0 failed

The error message is telling the user that the velocity field U is not loaded. For the function to work, both the field needs to be loaded using the -field option as follows.


Code:
foamPostProcess -fields "(p U)" -func wallShearStress
Even loading relevant fields, the post-processing fails with the following message.
--> FOAM FATAL ERROR:
Unable to find turbulence model in the database

The message is telling us that the foamPostProcessutility has not constructed the necessary models, i.e. a turbulence model, that the incompressibleFluid solver module used when running the simulation. This is a situation where we need to post-process (as opposed to run-time process) using the -solver option modelling will be available that the post-processing function needs.
Code:
foamPostProcess -solver incompressibleFluid -func wallShearStress
Note that no fields need to be supplied, e.g. using ”-field U”, because incompressibleFluid module constructs and stores the required fields. Functions can also be selected by the #includeFunc directive in functions file, instead of the -func option.
*************************************
JNSN is offline   Reply With Quote

Old   November 7, 2024, 09:34
Default
  #3
New Member
 
Join Date: Oct 2024
Posts: 6
Rep Power: 2
Albertine is on a distinguished road
Quote:
Originally Posted by JNSN View Post
from the documentation (https://doc.cfd.direct/openfoam/user...processing-cli):
*****************************************
This returns the following error message.
--> FOAM FATAL IO ERROR:
request for volVectorField U from objectRegistry region0 failed

The error message is telling the user that the velocity field U is not loaded. For the function to work, both the field needs to be loaded using the -field option as follows.


Code:
foamPostProcess -fields "(p U)" -func wallShearStress
Even loading relevant fields, the post-processing fails with the following message.
--> FOAM FATAL ERROR:
Unable to find turbulence model in the database

The message is telling us that the foamPostProcessutility has not constructed the necessary models, i.e. a turbulence model, that the incompressibleFluid solver module used when running the simulation. This is a situation where we need to post-process (as opposed to run-time process) using the -solver option modelling will be available that the post-processing function needs.
Code:
foamPostProcess -solver incompressibleFluid -func wallShearStress
Note that no fields need to be supplied, e.g. using ”-field U”, because incompressibleFluid module constructs and stores the required fields. Functions can also be selected by the #includeFunc directive in functions file, instead of the -func option.
*************************************
Thank you very much!!
Albertine is offline   Reply With Quote

Reply

Tags
post procesing


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
The CoP Does not exist: Validating Aerodynamic forces through a "line of action" ds4719 Main CFD Forum 14 February 18, 2022 19:05
Convergence problem of OF WUYing OpenFOAM Running, Solving & CFD 2 September 20, 2021 11:09
Turbine's forces and moments for post processing mxylondon OpenFOAM Post-Processing 1 April 3, 2019 08:30
Residuals and forces spiraling out of control before failing edomalley1 OpenFOAM Running, Solving & CFD 3 September 7, 2018 11:42
[OpenFOAM] Paraview 3.98 - errors when saving geometry file pajot ParaView 1 September 28, 2013 11:45


All times are GMT -4. The time now is 02:04.