TrainingTracks icon indicating copy to clipboard operation
TrainingTracks copied to clipboard

Compilation problem of "simpleFsi-OF4.1" in foam-extend 4.1

Open subhasisarath opened this issue 4 years ago • 3 comments
trafficstars

I am facing some compilation problems while compiling the "simpleFsi-OF4.1" in foam-extend 4.1 using Ubuntu 18.04. Error Message: basicFsi.H:45:10: fatal error: forces.H: No such file or directory #include "forces.H" compilation terminated.

May I know the exact procedure to compile "make libso"? Exactly where should I put the folder "basicFsiFunctionObject" before compilation?

subhasisarath avatar Aug 26 '21 12:08 subhasisarath

Hi, this version of training track is valid only for OpenFOAM Official v. 4.1

unicfdlab avatar Aug 26 '21 12:08 unicfdlab

Thanks for your reply @unicfdlab Now I tried to compile it in official OpenFOAM v7 and successfully compiled the "basicFsi" and "helloWorld" function objects. However, I a, facing an error while complying with the "weaklyCoupledFsi" function object. Error Message: weaklyCoupledFsi.C:198:43: error: ‘class Foam::IOobject’ has no member named ‘headerOk’ if (weaklyCoupledFsiFsiHeader.headerOk())

How can I solve this issue?

subhasisarath avatar Aug 27 '21 04:08 subhasisarath

Hi! Folders in the repository are organizes according to the next rule: <Case>-<OF version> , where <Case> is the name of problem and <OF-version> can be one of:

  • OF3.0.0 - OpenFOAM ver. 3.0.0
  • OF4.1 - OpenFOAM ver. 4.1
  • OFv1812 - OpenFOAM+ v. 1812
  • OFv1912 - OpenFOAM+ v. 1912
  • OFv2012 - OpenFOAM+ v. 2012

You have to use exactly the same version of OpenFOAM for each folder

unicfdlab avatar Aug 27 '21 06:08 unicfdlab