CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   waveDyMfoam building error on OF 2.3.x (https://www.cfd-online.com/Forums/openfoam-programming-development/145038-wavedymfoam-building-error-2-3-x.html)

jmf November 26, 2014 16:09

waveDyMfoam building error on OF 2.3.x
 
1 Attachment(s)
Dear all

I attempt to couple waveFoam and interDyMfoam, as described here :
https://sites.google.com/site/jordim...ic-mesh-motion

wavesfoam builds and run easily (many thanks to the developpers !). wavesFoam build directory is : /OpenFOAM/<user>/applications/utilities/waves2Foam/applications/solvers/solvers230/waveFoam
I copied 'interDyMfoam' in there, renamed it as 'waveDyMFoam', modified 'waveDyMFoam.C' according the instructions above.

'waveDyMfoamMake/options' content is:
Code:

EXE_INC = \
    -I.. \
    -I$(LIB_SRC)/transportModels/twoPhaseMixture/lnInclude \
    -I$(LIB_SRC)/transportModels \
    -I$(LIB_SRC)/transportModels/incompressible/lnInclude \
    -I$(LIB_SRC)/transportModels/interfaceProperties/lnInclude \
    -I$(LIB_SRC)/turbulenceModels/incompressible/turbulenceModel \
    -I$(LIB_SRC)/transportModels/immiscibleIncompressibleTwoPhaseMixture/lnInclude \
    -I$(LIB_SRC)/finiteVolume/lnInclude \
    -I$(LIB_SRC)/dynamicMesh/lnInclude \
    -I$(LIB_SRC)/dynamicFvMesh/lnInclude \
    -I./../../../../../src/waves2Foam/lnInclude \
    -I$(LIB_SRC)/meshTools/lnInclude \
    -I$(LIB_SRC)/fvOptions/lnInclude \
    -I$(LIB_SRC)/sampling/lnInclude
EXE_LIBS = \
    -limmiscibleIncompressibleTwoPhaseMixture \
    -lincompressibleTurbulenceModel \
    -lincompressibleRASModels \
    -lincompressibleLESModels \
    -lfiniteVolume \
    -ldynamicMesh \
    -ldynamicFvMesh \
    -ltopoChangerFvMesh \
    -lmeshTools \
    -lfvOptions \
    -lsampling \
    -L$(FOAM_USER_LIBBIN) \
    -lwaves2Foam

The wmake log file is:
Code:

SOURCE=waveDyMFoam.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I.. -I/home/nous/OpenFOAM/OpenFOAM-2.3.x/src/transportModels/twoPhaseMixture/lnInclude -I/home/nous/OpenFOAM/OpenFOAM-2.3.x/src/transportModels -I/home/nous/OpenFOAM/OpenFOAM-2.3.x/src/transportModels/incompressible/lnInclude -I/home/nous/OpenFOAM/OpenFOAM-2.3.x/src/transportModels/interfaceProperties/lnInclude -I/home/nous/OpenFOAM/OpenFOAM-2.3.x/src/turbulenceModels/incompressible/turbulenceModel -I/home/nous/OpenFOAM/OpenFOAM-2.3.x/src/transportModels/immiscibleIncompressibleTwoPhaseMixture/lnInclude -I/home/nous/OpenFOAM/OpenFOAM-2.3.x/src/finiteVolume/lnInclude -I/home/nous/OpenFOAM/OpenFOAM-2.3.x/src/dynamicMesh/lnInclude -I/home/nous/OpenFOAM/OpenFOAM-2.3.x/src/dynamicFvMesh/lnInclude -I./../../../../../src/waves2Foam/lnInclude -I/home/nous/OpenFOAM/OpenFOAM-2.3.x/src/meshTools/lnInclude -I/home/nous/OpenFOAM/OpenFOAM-2.3.x/src/fvOptions/lnInclude -I/home/nous/OpenFOAM/OpenFOAM-2.3.x/src/sampling/lnInclude -IlnInclude -I. -I/home/nous/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude -I/home/nous/OpenFOAM/OpenFOAM-2.3.x/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64GccDPOpt/waveDyMFoam.o
The compilation error is :
Code:

waveDyMFoam.C: In function ‘int main(int, char**)’:
waveDyMFoam.C:128:21: error: ‘mixture’ was not declared in this scope
waveDyMFoam.C:141:13: error: ‘mixture’ was not declared in this scope

The waveDyMFoam.C is attached


I've got OF 2.3.x from Git
I would be grateful for any help

Best wishes


Jean-Michel

CFD-Palma February 28, 2015 14:37

Hi Jean-Michel
I have the same problem with OF231 trying to compile waveDyMFoam.
Apparently, mixture did not exist before and was Interface.
With interface it compiles but it does not work, so I can not help here, but wait for someone knowledgeable to help.
Niels already said he will only actualise to 2.4.0 as there are too many changes, I understand him.
Regards,
Carlos.

jmf March 3, 2015 18:07

waveDyMfoam building error on OF 2.3.x
 
Thanks Carlos for this info
I still need in waveDyMFoamn so I will be patient

Best wishes

Jean-Michel

CFD-Palma March 4, 2015 06:08

Hi Jean-Michel,

I have solved, see this post:
http://www.cfd-online.com/Forums/ope...tml#post533884


All times are GMT -4. The time now is 21:49.