CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Solver Compiling error - OF 1.6 ext.

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 31, 2012, 23:05
Default Solver Compiling error - OF 1.6 ext.
  #1
New Member
 
Join Date: Oct 2012
Posts: 9
Rep Power: 13
raditz is on a distinguished road
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!!!
raditz is offline   Reply With Quote

Old   November 1, 2012, 02:43
Default
  #2
Senior Member
 
Kathrin Kissling
Join Date: Mar 2009
Location: Besigheim, Germany
Posts: 134
Rep Power: 17
kathrin_kissling is on a distinguished road
Hey,

can you post the content of your Make/options file?

Best

Kathrin
kathrin_kissling is offline   Reply With Quote

Old   November 1, 2012, 03:42
Default
  #3
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
As explained here: Advanced tips for working with the OpenFOAM shell environment - you can have the two or more versions installed, as long as you use a way of keeping version separated, namely by changing in your "~/.bashrc" file to have something like this:
Code:
alias of211='. /opt/openfoam211/OpenFOAM-1.6-ext/etc/bashrc'
alias of16ext='. $HOME/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc'
Then on each new terminal you start, you can activate the desired version by running the respective alias command. For example, for 2.1.1, simply run:
Code:
of211
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   November 1, 2012, 22:59
Default
  #4
New Member
 
Join Date: Oct 2012
Posts: 9
Rep Power: 13
raditz is on a distinguished road
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.
raditz is offline   Reply With Quote

Old   November 1, 2012, 23:16
Default
  #5
New Member
 
Join Date: Oct 2012
Posts: 9
Rep Power: 13
raditz is on a distinguished road
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.
raditz is offline   Reply With Quote

Old   November 3, 2012, 15:44
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by raditz View Post
Anyway I could verify compilation status.
Just to confirm: do you mean that it now successfully compiles/builds?
__________________
wyldckat is offline   Reply With Quote

Old   November 3, 2012, 15:54
Default
  #7
New Member
 
Join Date: Oct 2012
Posts: 9
Rep Power: 13
raditz is on a distinguished road
No. I enquired whether there was any way of finding out the compilation status.
raditz is offline   Reply With Quote

Old   November 4, 2012, 04:34
Default
  #8
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Raditz,

I'm glad I asked!

OK, there are a few details to take into account:
  1. Don't use wmake as super user (such as using sudo), unless you've already fully understood how things work!
  2. If you're trying to compile pimpleFsiFoam from 1.6-ext, but with 2.1.1, it probably will not work... there are several changes necessary for such to be possible and I don't even know where to start
  3. Now, thinking in general of a personalized custom solver, such as the one described in http://openfoamwiki.net/index.php/Ho...ure_to_icoFoam, here is the summary of the main details that you need to take into account:
    1. Create a copy of the solver you want to modify, preferably copy to the area designated by OpenFOAM. As an example for 1.6-ext, it would be "~/OpenFOAM/username-1.6-ext". This folder is usually created when you follow the tutorial instructions. In this case, you can run:
      Code:
      mkdir -p $FOAM_RUN
      cd $FOAM_RUN
      cd ..
      Which will place you in said designated folder.
    2. Now, you need to at the very least modify the last line of "Make/files", as exemplified in the "add temperature" tutorial:
      • Replace this:
        Code:
        EXE = $(FOAM_APPBIN)/icoFoam
      • With this:
        Code:
        EXE = $(FOAM_USER_APPBIN)/my_icoFoam
      This way you avoid collision problems with the original name, as well as avoiding to mix the new custom binary into the middle of the over 200 binaries that OpenFOAM has. And you'll avoid the need to build as root!
    3. As for building the new custom solver, you can simply run:
      Code:
      wmake
      If it gives a lot of stuff and you can't figure out if anything is wrong, then run it again:
      Code:
      wmake
      If all goes well, the second time it executes, it will only show a message indicating that the binary is already built and where it is located!
I hope this answers all of the previous questions you had!

Best regards,
Bruno
mizzou likes this.
__________________
wyldckat is offline   Reply With Quote

Old   November 4, 2012, 09:53
Default
  #9
New Member
 
Join Date: Oct 2012
Posts: 9
Rep Power: 13
raditz is on a distinguished road
Thanks a lot for the approach.I will try to follow the procedure from now on.
Thank you again.
raditz is offline   Reply With Quote

Reply

Tags
compile error, fsi, openfoam 1.6-ext

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
thobois class engineTopoChangerMesh error Peter_600 OpenFOAM 4 August 2, 2014 09:52
Using a user-defined solver in OF ozzythewise OpenFOAM Running, Solving & CFD 3 February 8, 2011 15:28
CFX 5.5 Roued CFX 1 October 2, 2001 16:49
Setting a B.C using UserFortran in 4.3 tokai CFX 10 July 17, 2001 16:25
Error during Solver cfd guy CFX 4 May 8, 2001 06:04


All times are GMT -4. The time now is 05:45.