CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM CC Toolkits for Fluid-Structure Interaction (https://www.cfd-online.com/Forums/openfoam-cc-toolkits-fluid-structure-interaction/)
-   -   [FSI] [foam-extend-4.1/extend-bazaar] Issue building the "beamInCrossFlow" tutorial case (https://www.cfd-online.com/Forums/openfoam-cc-toolkits-fluid-structure-interaction/223037-foam-extend-4-1-extend-bazaar-issue-building-beamincrossflow-tutorial-case.html)

Skywalker2020 December 18, 2019 15:09

[foam-extend-4.1/extend-bazaar] Issue building the "beamInCrossFlow" tutorial case
 
Hi everyone,

I compiled extend-bazaar, respectively the version which is included in the foam-extend-4.1 package.

Afterwards, I tried to build and run some of the FSI examples included in extend-bazaar.

Unfortunately, I was not able to build the "beamInCrossFlow" example (path: /extend-bazaar/FluidSolidInteraction/run/fsiFoam/beamInCrossFlow/).

I followed the instructions from the OpenFOAM-Wiki for the FSI tutorial cases (https://openfoamwiki.net/index.php/E...tutorial_cases),
but when I was running the "Allrun" script, I got the following error by g++:

Code:

/foam/foam-extend-4.1/src/foam/lnInclude/runTimeSelectionTables.H:73:40: error: invalid new-expression of abstract class type ‘Foam::setInletVelocity’
            return autoPtr< baseType >(new baseType##Type parList);          \

After some research, I found another thread which also deals with this error:
https://www.cfd-online.com/Forums/op...ver-2-4-a.html

According to that thread, the error occurs when there are virtual functions which have not been implemented yet.

With regard to this specific case, there are three virtual functions in "setInletVelocity.H" (path: .../beamInCrossFlow/setInletVelocity/):
Quote:

start(), execute(), read(const dictionary& dict)
All three of them are implemented in "setInletVelocity.C" though.

Has anybody encountered this problem before? Why does this error occur? What are the missing functions to implement?


Thanks for your help! :)

ramrebol September 2, 2020 12:59

I have the same problem.
Has anyone fixed it?

Neb December 3, 2021 12:14

Hi,
I have the same problem, have you solved it?


All times are GMT -4. The time now is 07:42.