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

The motion function that access force and torque.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 24, 2024, 19:29
Default The motion function that access force and torque.
  #1
New Member
 
Shoji KASAI
Join Date: Jul 2014
Posts: 1
Rep Power: 0
skasai is on a distinguished road
In OpenFOAM, the rotating motion by rotatingMotion.C is prescribed with a fixed angular velocity.
I want to create a library to rotate by wind force from the rotatingMotion.C.

A similar library is reported in
http://hichem-hajaiej.com/wp-content...014/10/421.pdf.
What I want to make is the above FDRotationMotion.


A portion of forceDriveMotion.C, created by copying rotatingMotion.C, is shown below.
When I compile it, an error occurs and I do not know how to solve it.


Thus, there is an error in the mesh definition and we cannot obtain the mesh data or the pressure at the object boundary.
Therefore, it is not possible to determine the torque required to rotate the object.

Please give me any advice.




Foam::septernion
Foam::solidBodyMotionFunctions::forceDriveMotion:: transformation() const
{
//
fvMesh& mymesh;
forAll(mymesh.cells(), cell_id)
{
Info << "cell_id = " << cell_id << endl;
}



motionSolvers/displacement/solidBody/solidBodyMotionFunctions/forceDriveMotion/forceDriveMotion.C:77:13: error: ‘mymesh’ declared as reference but not initialized
77 | fvMesh& mymesh;
| ^~~~~~
skasai 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
Force and torque evaluation Jiricbeng CFX 5 September 4, 2019 10:29
pimpleDyMFoam with sixDoFRigidBodyMotionCoeffs: External Torque chaz OpenFOAM Running, Solving & CFD 0 May 7, 2017 19:22
How to monitor torque or force in CFX? aja1345 CFX 11 April 15, 2016 03:58
torque function João Soares CFX 1 March 31, 2016 15:00
Force / Torque on car body Chonker CFX 0 November 30, 2010 08:09


All times are GMT -4. The time now is 17:28.