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

How to read the forces acting on the surface to be analyzed into the program

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 5, 2021, 11:29
Default How to read the forces acting on the surface to be analyzed into the program
  #1
New Member
 
Hiroaki Sumikawa
Join Date: Jul 2018
Posts: 9
Rep Power: 7
Hiroaki Sumikawa is on a distinguished road
Hello,

I'm using Openfoam v1806+.

I created the motion for the fish undulation, and completed the motion itself, but I wanted to load the forces acting on the surface of the model into the motion program as well.

( I used this site as a reference for motion creation.

http://www.tfd.chalmers.se/~hani/kurser/OS_CFD/

"make a fish swim")


There is a sentence in the program to get the coordinates of the surface to be analyzed target as shown below.(This is an excerpt from line42 of the attached file)

const pointPatch& p,
const DimensionedFields<vector,pointMesh>& iF

fixedValuePointPathFields<vector>(p,iF),

p0_(p.localPoints())


I interpret that "p" and "iF" get the mesh information, and "localPoints()" gets the coordinates of each surface point.

I would like to know a function like this "localPoints()" that would get the preessure acting on the surface of the analysis target.


I would like to know if anyone knows anything about this.


Thank you.
Attached Files
File Type: c myAngularOscillatingVelocityPointPatchVectorField.C (7.0 KB, 1 views)
Hiroaki Sumikawa is offline   Reply With Quote

Old   March 4, 2022, 01:50
Default
  #2
Senior Member
 
TWB
Join Date: Mar 2009
Posts: 401
Rep Power: 19
quarkz is on a distinguished road
Hi Hiroaki,

Have you found a solution? In that case, can u post it?

Else, currently, what I did is:

1. I filter the forces output file to something simpler
2. read in that file to get the forces req

It works but it's slower.
quarkz 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
The CoP Does not exist: Validating Aerodynamic forces through a "line of action" ds4719 Main CFD Forum 14 February 18, 2022 18:05
Residuals and forces spiraling out of control before failing edomalley1 OpenFOAM Running, Solving & CFD 3 September 7, 2018 10:42
Help~~~~How to read a program as a fresh man? SingleMinded Main CFD Forum 4 July 7, 2011 08:18
Phase locked average in run time panara OpenFOAM 2 February 20, 2008 14:37
How to read surface tension? _svl FLUENT 4 January 26, 2006 09:55


All times are GMT -4. The time now is 03:51.