CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

sixDoFRigidBodyMotion new Restrain

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   October 24, 2018, 07:04
Lightbulb sixDoFRigidBodyMotion new Restrain
New Member
Athanasios Niotis
Join Date: Aug 2018
Posts: 12
Rep Power: 6
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
New Member
Join Date: Mar 2012
Posts: 17
Rep Power: 12
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

Valid sixDoFRigidBodyMotionRestraint types are : 

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
5. add 'libs ("");' into system/controlDict

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

Old   October 11, 2021, 04:33
Join Date: Aug 2014
Posts: 32
Rep Power: 10
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 20:18.