CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Couple Moody with OpenFOAM v1906

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 17, 2023, 14:14
Default Couple Moody with OpenFOAM v1906
  #1
New Member
 
Aaryan
Join Date: Feb 2023
Posts: 5
Rep Power: 3
CFDRocks is on a distinguished road
Hello everyone,

I have tried to couple the OpenFOAMv1906 with Moody. i followed all the steps provided in moodyAPI master by Johannes Palm.

I am getting the error
FOAM FATAL ERROR:
[2] Unknown solver type rigidBodyMotion

I also attached the log.interFoam file

i have attached all the corresponding file in which i have made the changes.

I have followed all these steps provided in the folder moodyAPI

1.0 In rigidBodyDynamics library:

a) In rigidBodyModel/rigidBodyModel.H
//-Remove const specifier for applyRestraints() method
b) In rigidBodyModel/forwardDynamics.C
//-Remove const specifier for applyRestraints() method


1.1. Remove const requirement on restrain function.

a) In restraints/restrain.H, change existing restrain method to:

//- Accumulate the retraint internal joint forces into the tau field and
// external forces into the fx field
virtual void restrain
(
scalarField& tau,
Field<spatialVector>& fx
) const
{};


//- Accumulate the retraint internal joint forces into the tau field and
// external forces into the fx field
virtual void restrain
(
scalarField& tau,
Field<spatialVector>& fx
)
{
restrain(tau, fx);
}


//- Test to recompile library -//

1.2. Install moodyR restraint:
a) Add moodyR.C and moodyR.H to the rigidBodyDynamics/restraints folder.

b) Add moodyR.C to the file list in Make/files.

c) Change the compiled library name and location at the end of Make/files to:
LIB = $(FOAM_USER_LIBBIN)/libmoodyRigidBodyDynamics

c) Change Make/options to: (use your own moody installation path)
(My experience is that the -rpath is sometimes needed on computer clusters to find the library at runtime)

EXE_INC = \
-I$(HOME)/moody/moody-2.0.0-Linux/include

LIB_LIBS = \
-L$(HOME)/moody/moody-2.0.0-Linux/lib \
-Wl,-rpath=$(HOME)/moody/moody-2.0.0-Linux/lib \
-lmoody


//- Test to compile moodyRigidBodyDynamics library -//

1.3 Move to rigidBodyMeshMotion library. Refer to the new moodyRigidBodyDynamics library instead. Change Make/options to:

EXE_INC = \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/fileFormats/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude \
-I../rigidBodyDynamics/lnInclude \
-I$(LIB_SRC)/functionObjects/forces/lnInclude \
-I$(LIB_SRC)/dynamicMesh/lnInclude

LIB_LIBS = \
-lfiniteVolume \
-lmeshTools \
-lmoodyRigidBodyDynamics \
-lforces \
-ldynamicMesh


1.4 Finally change Make/files to:
rigidBodyMeshMotion/rigidBodyMeshMotion.C
rigidBodyMeshMotionSolver/rigidBodyMeshMotionSolver.C

LIB = $(FOAM_USER_LIBBIN)/libmoodyRigidBodyMeshMotion

//- Test to compile moodyRigidBodyMeshMotion library -//


Kindly guide me
Attached Images
File Type: jpg foamfatalerror.JPG (106.0 KB, 7 views)
Attached Files
File Type: zip ezyzip.zip (53.4 KB, 1 views)
CFDRocks is offline   Reply With Quote

Reply

Tags
couple of1906 & moody, moody, openfoamv1906


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
Frequently Asked Questions about Installing OpenFOAM wyldckat OpenFOAM Installation 3 November 14, 2023 12:58
OpenFOAM Training Jan-Jul 2017, Virtual, London, Houston, Berlin CFDFoundation OpenFOAM Announcements from Other Sources 0 January 4, 2017 07:15
OpenFOAM Training, London, Chicago, Munich, Sep-Oct 2015 cfd.direct OpenFOAM Announcements from Other Sources 2 August 31, 2015 14:36
Cross-compiling OpenFOAM 1.7.0 on Linux for Windows 32 and 64bits with Mingw-w64 wyldckat OpenFOAM Announcements from Other Sources 3 September 8, 2010 07:25
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 19:07


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