|
[Sponsors] |
November 1, 2012, 00:05 |
Solver Compiling error - OF 1.6 ext.
|
#1 |
New Member
Join Date: Oct 2012
Posts: 9
Rep Power: 14 |
Dear Foamers
I am looking forward to carrying out FSI simulations using an external solver. I am trying to compile an external solver which is compatible with OF 1.6-ext.I followed the instructions at http://openfoamwiki.net/index.php/Ho...ure_to_icoFoam Initially wmake gave the following results. Making dependency list for source file tractionDisplacement/tractionDisplacementFvPatchVectorField.C Making dependency list for source file pimpleFsiFoam.C could not open file dynamicFvMesh.H for source file pimpleFsiFoam.C could not open file tetFemMatrices.H for source file pimpleFsiFoam.C could not open file tetPointFields.H for source file pimpleFsiFoam.C could not open file faceTetPolyPatch.H for source file pimpleFsiFoam.C could not open file tetPolyPatchInterpolation.H for source file pimpleFsiFoam.C could not open file fixedValueTetPolyPatchFields.H for source file pimpleFsiFoam.C could not open file createDynamicFvMesh.H for source file pimpleFsiFoam.C could not open file readPIMPLEControls.H for source file pimpleFsiFoam.C could not open file meshCourantNo.H for source file pimpleFsiFoam.C SOURCE=tractionDisplacement/tractionDisplacementFvPatchVectorField.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam211/src/dynamicMesh/dynamicFvMesh/lnInclude -I/opt/openfoam211/src/dynamicMesh/dynamicMesh/lnInclude -I/opt/openfoam211/src/meshTools/lnInclude -I/opt/openfoam211/src/turbulenceModels/incompressible/turbulenceModel -I/opt/openfoam211/src/transportModels -I/opt/openfoam211/src/transportModels/incompressible/singlePhaseTransportModel -I/opt/openfoam211/src/finiteVolume/lnInclude -I/opt/openfoam211/src/tetDecompositionFiniteElement/lnInclude -I/opt/openfoam211/src/dynamicMesh/meshMotion/tetDecompositionMotionSolver/lnInclude -IlnInclude -I. -I/opt/openfoam211/src/OpenFOAM/lnInclude -I/opt/openfoam211/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/tractionDisplacementFvPatchVectorField.o tractionDisplacement/tractionDisplacementFvPatchVectorField.C: In member function ‘virtual void Foam::tractionDisplacementFvPatchVectorField::upda teCoeffs()’: tractionDisplacement/tractionDisplacementFvPatchVectorField.C:190:19: warning: suggest parentheses around ‘+’ in operand of ‘&’ [-Wparentheses] tractionDisplacement/tractionDisplacementFvPatchVectorField.C:190:62: warning: suggest parentheses around ‘+’ in operand of ‘&’ [-Wparentheses] tractionDisplacement/tractionDisplacementFvPatchVectorField.C:191:19: warning: suggest parentheses around ‘+’ in operand of ‘&’ [-Wparentheses] SOURCE=pimpleFsiFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam211/src/dynamicMesh/dynamicFvMesh/lnInclude -I/opt/openfoam211/src/dynamicMesh/dynamicMesh/lnInclude -I/opt/openfoam211/src/meshTools/lnInclude -I/opt/openfoam211/src/turbulenceModels/incompressible/turbulenceModel -I/opt/openfoam211/src/transportModels -I/opt/openfoam211/src/transportModels/incompressible/singlePhaseTransportModel -I/opt/openfoam211/src/finiteVolume/lnInclude -I/opt/openfoam211/src/tetDecompositionFiniteElement/lnInclude -I/opt/openfoam211/src/dynamicMesh/meshMotion/tetDecompositionMotionSolver/lnInclude -IlnInclude -I. -I/opt/openfoam211/src/OpenFOAM/lnInclude -I/opt/openfoam211/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/pimpleFsiFoam.o pimpleFsiFoam.C:38:27: fatal error: dynamicFvMesh.H: No such file or directory compilation terminated. dynamicFvMesh.H is located at /home/kaustubh/OpenFOAM/OpenFOAM-1.6-ext/src/dynamicMesh/dynamicFvMesh/dynamicFvMesh/dynamicFvMesh.H /home/kaustubh/OpenFOAM/OpenFOAM-1.6-ext/src/dynamicMesh/dynamicFvMesh/lnInclude/dynamicFvMesh.H After changing permissions for /home/kaustubh/OpenFOAM/OpenFOAM-1.6-ext/src/dynamicMesh/dynamicFvMesh/lnInclude/dynamicFvMesh.H I get the following output SOURCE=pimpleFsiFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam211/src/dynamicMesh/dynamicFvMesh/lnInclude -I/opt/openfoam211/src/dynamicMesh/dynamicMesh/lnInclude -I/opt/openfoam211/src/meshTools/lnInclude -I/opt/openfoam211/src/turbulenceModels/incompressible/turbulenceModel -I/opt/openfoam211/src/transportModels -I/opt/openfoam211/src/transportModels/incompressible/singlePhaseTransportModel -I/opt/openfoam211/src/finiteVolume/lnInclude -I/opt/openfoam211/src/tetDecompositionFiniteElement/lnInclude -I/opt/openfoam211/src/dynamicMesh/meshMotion/tetDecompositionMotionSolver/lnInclude -IlnInclude -I. -I/opt/openfoam211/src/OpenFOAM/lnInclude -I/opt/openfoam211/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/pimpleFsiFoam.o pimpleFsiFoam.C:38:27: fatal error: dynamicFvMesh.H: No such file or directory compilation terminated. OF 1.6 ext has been installed as per http://openfoam-extend.git.sourceforge.net/git/gitweb.cgi?p=openfoam-extend/OpenFOAM-1.6-ext;a=blob;f=doc/buildInstructions/Ubuntu/12.04/Compilation_Ubuntu_12.04_64-bit.txt;h=f63910903ca238ae6bad5f54126b1afa84cb6bbd ;hb=15629037bfb27b3324dd925e203472fd1ef579fa and the tests at the end work well. Additionally do we need to set any particular environment variables manually for OF 1.6 ext which might be causing these errors. Any help,tips suggestions (on this one or FSI Solvers in general) are highly appreciated!!! |
|
November 1, 2012, 03:43 |
|
#2 |
Senior Member
Kathrin Kissling
Join Date: Mar 2009
Location: Besigheim, Germany
Posts: 134
Rep Power: 17 |
Hey,
can you post the content of your Make/options file? Best Kathrin |
|
November 1, 2012, 04:42 |
|
#3 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings to both!
@raditz: The main problem seems to be that while you say you've installed 1.6-ext, it is 2.1.1 that is on the surface of it all: Code:
/opt/openfoam211 Code:
alias of211='. /opt/openfoam211/OpenFOAM-1.6-ext/etc/bashrc' alias of16ext='. $HOME/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc' Code:
of211 Bruno
__________________
|
|
November 1, 2012, 23:59 |
|
#4 |
New Member
Join Date: Oct 2012
Posts: 9
Rep Power: 14 |
Thank you for the prompt reply.
I had installed OF 1.6-ext alone. wmake gave output as follows. ~/OpenFOAM/OpenFOAM-1.6-ext/applications/solvers/pimpleFsiFoam$ sudo wmake [sudo] password for *****: sudo: wmake: command not found Hence I installed OF 2.1.1 thinking I will be able to some how export the wmake command to 1.6ext. On following your instructions I changed bash script, activated of16ext and still wmake gave the same error. Command not found Should I provide any specific environment variables for clarity. Thanks again. |
|
November 2, 2012, 00:16 |
|
#5 |
New Member
Join Date: Oct 2012
Posts: 9
Rep Power: 14 |
The Make/option file contains are as follows
EXE_INC = \ -I$(LIB_SRC)/dynamicMesh/dynamicFvMesh/lnInclude \ -I$(LIB_SRC)/dynamicMesh/dynamicMesh/lnInclude \ -I$(LIB_SRC)/meshTools/lnInclude \ -I$(LIB_SRC)/turbulenceModels/incompressible/turbulenceModel \ -I$(LIB_SRC)/transportModels \ -I$(LIB_SRC)/transportModels/incompressible/singlePhaseTransportModel \ -I$(LIB_SRC)/finiteVolume/lnInclude \ $(WM_DECOMP_INC) \ -I$(LIB_SRC)/tetDecompositionFiniteElement/lnInclude \ -I$(LIB_SRC)/dynamicMesh/meshMotion/tetDecompositionMotionSolver/lnInclude EXE_LIBS = \ -ldynamicFvMesh \ -ltopoChangerFvMesh \ -ldynamicMesh \ -lmeshTools \ -lincompressibleTransportModels \ -lincompressibleTurbulenceModel \ -lincompressibleRASModels \ -lincompressibleLESModels \ -lfiniteVolume \ -llduSolvers \ $(WM_DECOMP_LIBS) On closer look echo $(LIB_SRC) does not give any output but I read on another thread that it is not supposed to be visible in terminal shell and stored in wmake/Makefile Even the variable $FOAM_SRC is not visible. Anyway I could verify compilation status. |
|
November 3, 2012, 16:44 |
|
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Just to confirm: do you mean that it now successfully compiles/builds?
__________________
|
|
November 3, 2012, 16:54 |
|
#7 |
New Member
Join Date: Oct 2012
Posts: 9
Rep Power: 14 |
No. I enquired whether there was any way of finding out the compilation status.
|
|
November 4, 2012, 05:34 |
|
#8 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Raditz,
I'm glad I asked! OK, there are a few details to take into account:
Best regards, Bruno
__________________
|
|
November 4, 2012, 10:53 |
|
#9 |
New Member
Join Date: Oct 2012
Posts: 9
Rep Power: 14 |
Thanks a lot for the approach.I will try to follow the procedure from now on.
Thank you again. |
|
Tags |
compile error, fsi, openfoam 1.6-ext |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
thobois class engineTopoChangerMesh error | Peter_600 | OpenFOAM | 4 | August 2, 2014 10:52 |
Using a user-defined solver in OF | ozzythewise | OpenFOAM Running, Solving & CFD | 3 | February 8, 2011 16:28 |
CFX 5.5 | Roued | CFX | 1 | October 2, 2001 17:49 |
Setting a B.C using UserFortran in 4.3 | tokai | CFX | 10 | July 17, 2001 17:25 |
Error during Solver | cfd guy | CFX | 4 | May 8, 2001 07:04 |