Yade-OpenFOAM coupling: Enable Openfoam coupling in CMakelists.txt

Asked by Russell

Hi, I have several questions about Yade-OpenFOAM coupling. Could someone help me with these problems. Thank you very much.

The questions are as follows:

Q1: “Enable Openfoam coupling in CMakelists.txt ”

I would like to know how to “Enable Openfoam coupling in CMakelists.txt ”. I found some instructions in "example_icoFoamYade/scriptYade.py", which are as follows:

# Usage :
#
# 1. Enable the OpenFOAM coupling engine : (Requires MPI installation)
# cmake -DCMAKE_INSTALL_PREFIX= /path/to/install /path/to/sources -DDEBUG=0 -DENABLE_MPI=ON
# make
# make install

I would like to know what is the "/path/to/sources" exactly means.

Q2: I would like to ask should I “Enable Openfoam coupling in CMakelists.txt ” before or after installing OpenFOAM.

Thank you very much!
Russell

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Russell
Solved:
Last query:
Last reply:
Revision history for this message
Robert Caulk (rcaulk) said :
#1

Hello,

It is the path to the trunk, which is what you download from the gitlab repository. You will find more information here [1].

Cheers,

Robert

[1]https://yade-dem.org/doc/installation.html#source-code

Revision history for this message
Robert Caulk (rcaulk) said :
#2

Q2 after.

Revision history for this message
Russell (russell-zhang) said :
#3

Thank you, Robert, this solved my problem.