|
[Sponsors] |
The motion function that access force and torque. |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 24, 2024, 19:29 |
The motion function that access force and torque.
|
#1 |
New Member
Shoji KASAI
Join Date: Jul 2014
Posts: 1
Rep Power: 0 |
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; | ^~~~~~ |
|
|
|
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 |