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

sixDoFRigidBodyMotion new Restrain

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By kiski

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 24, 2018, 07:04
Lightbulb sixDoFRigidBodyMotion new Restrain
  #1
New Member
 
Athanasios Niotis
Join Date: Aug 2018
Posts: 12
Rep Power: 7
thanosniotis is on a distinguished road
Hello, fellow Foamers,

It is my first post in CFDonline community and I ask for a piece of advice for the following issue.

I want to create my own sixDoFRigidBodyMotion Restraint. My question is the following:

Have i to compile only the myRestraint.C or the entire sixDoFRigidBodyMotion library?
What I have thought is to copy and compile the sixDofRigidBodyMotion as
mySixDofRidi.... where I would have included in the folder restraints the new code

Thank you for your time and your consideration.
thanosniotis is offline   Reply With Quote

Old   January 30, 2020, 05:23
Default
  #2
New Member
 
David
Join Date: Mar 2012
Posts: 17
Rep Power: 14
kiski is on a distinguished road
For future references and starters. I had the same problem: I could not make my own restraint (mylinearSpring) to be included in the selection options. Using banana trick gives

Code:
Valid sixDoFRigidBodyMotionRestraint types are : 

6
(
linearAxialAngularSpring
linearDamper
linearSpring
sphericalAngularDamper
sphericalAngularSpring
tabulatedAxialAngularSpring
)
although I had no compilation errors (despite I also added the directory to the compiler requested header files using -I in Make/options).

Thanks to this post I tried

1. copy the whole sixDoFRigidBodyMotion structure
2. Add restraint mylinearSpring
3. modifying copied Make/files
4. building to new library i.e.libmysixDoFRigidBodyMotion.so.
5. add 'libs ("libmysixDoFRigidBodyMotion.so");' into system/controlDict


This worked correctly. Banana trick shows mylinearSpring as an option.
AbdoMusaad likes this.
kiski is offline   Reply With Quote

Old   October 11, 2021, 04:33
Default
  #3
Member
 
ALLEN
Join Date: Aug 2014
Posts: 32
Rep Power: 11
allenfieldin is on a distinguished road
Have you solved this problem yet? I have met the same problem, can you give me some help?
allenfieldin 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



All times are GMT -4. The time now is 16:43.