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

compiling icoStructFoam error using OF1.7

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 16, 2011, 05:07
Default compiling icoStructFoam error using OF1.7
  #1
New Member
 
Muhammad reza hassani
Join Date: Apr 2010
Posts: 29
Rep Power: 16
mhassani is on a distinguished road
Dear friends
I have a question regarding compiling icoStructFoam. I have openfaom 1.7 on my laptop. recently I wanted to solve an fsi problem and I found icoStructFoam on wiki. i tried to compile it but I faced some errors.
Is my version of openfoam compatible with this solver or I have to install another version?
about the compiling: I added the icoStructFoam to my_solvers directory (one of openfoam subdirectories) and I simply entered wmake in the terminal. does it suffice? or I have to make other changes in the make file?
mhassani is offline   Reply With Quote

Old   January 16, 2011, 14:30
Default
  #2
Senior Member
 
Elvis
Join Date: Mar 2009
Location: Sindelfingen, Germany
Posts: 620
Blog Entries: 6
Rep Power: 24
elvis will become famous soon enough
Hi,

icoFsiFoam is part of OpenFOAM 1.5-dev
if you use a Debian/Ubuntu-based Distribution you can easily install Binary Packages
http://ppa.launchpad.net/cae-team/ppa/ubuntu/ just make your .bashrc multi OF-Version capable
if you know "alien" you can convert to RPM http://taufanlubis.wordpress.com/200...or-deb-to-rpm/
elvis is offline   Reply With Quote

Old   January 16, 2011, 15:46
Default
  #3
New Member
 
Muhammad reza hassani
Join Date: Apr 2010
Posts: 29
Rep Power: 16
mhassani is on a distinguished road
Dear Elvis
thanks for your reply. I want to assure that what I understood from your reply is correct:
You meant that if I am using ubuntu (which I am) I have to just make some changes in the /.basch file and make it capable of handling multi-version of openfoam. am I right?
Is there still need to use alien to convert any files.
Is the first link you entered for the OF 1.5-dev?

I am really thankful for your help.
best regards
Hassani
mhassani is offline   Reply With Quote

Old   January 16, 2011, 17:12
Default
  #4
Senior Member
 
Elvis
Join Date: Mar 2009
Location: Sindelfingen, Germany
Posts: 620
Blog Entries: 6
Rep Power: 24
elvis will become famous soon enough
Hi,

if you want to use the binary package made by Oliver Borm you have to add your sources.list
deb http://ppa.launchpad.net/cae-team/ppa/ubuntu/ lucid main
deb-src http://ppa.launchpad.net/cae-team/ppa/ubuntu/ lucid main
and you need to add multiverse because you will need libparmetis3.1

add the following line to your ~/.bashrc

alias startOF15dev='source /usr/lib/OpenFOAM-1.5-dev/etc/bashrc'
#startOF15dev

# source the OpenFOAM aliases (src, tut, sol, ...)
source $WM_PROJECT_DIR/etc/aliases.sh

alias startOF16ext='source /usr/lib/OpenFOAM-1.6-ext/etc/bashrc'
#startOF16ext
# source the OpenFOAM aliases (src, tut, sol, ...)
source $WM_PROJECT_DIR/etc/aliases.sh

alias startOF17 .... for your 1.7OFinstallation

you can choose which Version you want to run by typing
startOF15dev ,or startOF16ext or startOF17

=> alien you do not need that to install OpenFoam, it is just a great tool
elvis is offline   Reply With Quote

Old   January 17, 2011, 07:06
Default
  #5
New Member
 
Muhammad reza hassani
Join Date: Apr 2010
Posts: 29
Rep Power: 16
mhassani is on a distinguished road
Dear Elvis
Thanks again. sorry for asking so many questions. I am not that familiar to Openfoam stuff.
I added the lines you mentioned to the /.baschrc file. Do I need to update any thing afterwards?
Another problem of mine is that I did not find much in the main>lucid>debian-installer>binary-i386 directory in the link you put in you reply. when I decompress the file packages.gz or packages.bz2, only an empty file appears. I don't really know what to do with this.

another question is that if I have to download the OF-1.5 dev apart from the link you put in your reply. I mean through "sudo apt-get install openfoam-dev-1.5".

thanks in progress
hassani

mhassani is offline   Reply With Quote

Old   January 19, 2011, 02:19
Default
  #6
Senior Member
 
Elvis
Join Date: Mar 2009
Location: Sindelfingen, Germany
Posts: 620
Blog Entries: 6
Rep Power: 24
elvis will become famous soon enough
Hello,

i have checked icoFsiFoam is also part of OpenFOAM 1.6-ext
so it is just nescessary to install OpenFOAM 1.6-ext

sudo apt-get install openfoam-1.6-ext openfoam-1.6-ext-dev
should do the job. If you use ubuntu (Maverick Meerkat) i heard that people had problems with their sources.list to get the Binary Packages that were made for lucid

i do not know for sure the workaround!
Maybe editing the sources.list ( all lines with meerkat)
# deb http

sudo apt-get update

and as mentioned above sudo apt-get install ..

then edit .bashrc
alias startOF16ext='source /usr/lib/OpenFOAM-1.6-ext/etc/bashrc'
source $WM_PROJECT_DIR/etc/aliases.sh


in a konsole/xterm enter startOF16ext
now you should be able to work with Extent1.6

Give me some feedback if we make progress

elvis
elvis is offline   Reply With Quote

Old   June 17, 2011, 12:35
Default interStructFoam
  #7
New Member
 
Rasoul
Join Date: Nov 2010
Posts: 3
Rep Power: 16
rasoulgharaei is on a distinguished road
Hi all,
I compiled icoStructFoam solver in OpenFOAM-1.7.0. I made new solver (interStructFoam) by combining both of the interFoam and solidDisplacementFaom According to the icoStructFoam Instruction, but I could not compile in OP-1.7.0.
Can anyone help me?
I Attach my solver with this message.

Best regards,
rasoul
Attached Files
File Type: zip interStructFoam.zip (48.1 KB, 22 views)
rasoulgharaei is offline   Reply With Quote

Old   June 11, 2012, 10:22
Unhappy error compiling interStructFoam
  #8
Member
 
Stefano
Join Date: Jul 2009
Posts: 36
Rep Power: 17
Whyman is on a distinguished road
Dear rasoul,

i tried to compile your solver, but i got a lot of errors.
Here is the listed:

Making dependency list for source file tractionDisplacement/tractionDisplacementFvPatchVectorField.C
Making dependency list for source file interStructFoam.C
SOURCE=tractionDisplacement/tractionDisplacementFvPatchVectorField.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/opt/openfoam170/src/transportModels -I/opt/openfoam170/src/transportModels/incompressible/lnInclude -I/opt/openfoam170/src/transportModels/interfaceProperties/lnInclude -I/opt/openfoam170/src/turbulenceModels/incompressible/turbulenceModel -I/opt/openfoam170/src/finiteVolume/lnInclude -I/opt/openfoam170/src/dynamicFvMesh/lnInclude -I/opt/openfoam170/src/dynamicMesh/lnInclude -I/opt/openfoam170/src/meshTools/lnInclude -I/opt/openfoam170/src/cfdTools/incompressible -ItractionDisplacement -I/opt/openfoam170/src/finiteElement/lnInclude -I/opt/openfoam170/src/dynamicMesh/motionSolver -IlnInclude -I. -I/opt/openfoam170/src/OpenFOAM/lnInclude -I/opt/openfoam170/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/tractionDisplacementFvPatchVectorField.o
SOURCE=interStructFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/opt/openfoam170/src/transportModels -I/opt/openfoam170/src/transportModels/incompressible/lnInclude -I/opt/openfoam170/src/transportModels/interfaceProperties/lnInclude -I/opt/openfoam170/src/turbulenceModels/incompressible/turbulenceModel -I/opt/openfoam170/src/finiteVolume/lnInclude -I/opt/openfoam170/src/dynamicFvMesh/lnInclude -I/opt/openfoam170/src/dynamicMesh/lnInclude -I/opt/openfoam170/src/meshTools/lnInclude -I/opt/openfoam170/src/cfdTools/incompressible -ItractionDisplacement -I/opt/openfoam170/src/finiteElement/lnInclude -I/opt/openfoam170/src/dynamicMesh/motionSolver -IlnInclude -I. -I/opt/openfoam170/src/OpenFOAM/lnInclude -I/opt/openfoam170/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/interStructFoam.o
In file included from interStructFoam.C:71:
readPISOControls.H: In function ‘int main(int, char**)’:
readPISOControls.H:4: error: redeclaration of ‘int nCorr’
readStressedFoamControls.H:5: error: ‘int nCorr’ previously declared here
In file included from correctPhi.H:2,
from interStructFoam.C:83:
/opt/openfoam170/src/finiteVolume/lnInclude/movingMeshContinuityErrs.H:36: error: ‘mesh’ was not declared in this scope
In file included from interStructFoam.C:83:
correctPhi.H:6: error: ‘p_rgh’ was not declared in this scope
In file included from correctPhi.H:53,
from interStructFoam.C:83:
/opt/openfoam170/src/finiteVolume/lnInclude/movingMeshContinuityErrs.H:36: error: ‘mesh’ was not declared in this scope
interStructFoam.C:186: error: ‘twoPhaseProperties’ was not declared in this scope
In file included from interStructFoam.C:188:
alphaEqnSubCycle.H:15: error: ‘rhoPhi’ was not declared in this scope
alphaEqnSubCycle.H:19: error: ‘alpha1’ was not declared in this scope
In file included from alphaEqnSubCycle.H:23,
from interStructFoam.C:188:
alphaEqn.H:5: error: ‘mesh’ was not declared in this scope
alphaEqn.H:6: error: ‘interface’ was not declared in this scope
alphaEqn.H:29: error: ‘rho1’ was not declared in this scope
alphaEqn.H:29: error: ‘rho2’ was not declared in this scope
In file included from alphaEqnSubCycle.H:31,
from interStructFoam.C:188:
alphaEqn.H:5: error: ‘mesh’ was not declared in this scope
alphaEqn.H:6: error: ‘interface’ was not declared in this scope
alphaEqn.H:17: error: ‘alpha1’ was not declared in this scope
alphaEqn.H:29: error: ‘rhoPhi’ was not declared in this scope
alphaEqn.H:29: error: ‘rho1’ was not declared in this scope
alphaEqn.H:29: error: ‘rho2’ was not declared in this scope
alphaEqn.H:33: error: ‘alpha1’ was not declared in this scope
In file included from interStructFoam.C:188:
alphaEqnSubCycle.H:34: error: ‘interface’ was not declared in this scope
alphaEqnSubCycle.H:36: error: ‘alpha1’ was not declared in this scope
alphaEqnSubCycle.H:36: error: ‘rho1’ was not declared in this scope
alphaEqnSubCycle.H:36: error: ‘rho2’ was not declared in this scope
In file included from interStructFoam.C:190:
UEqn.H:5: error: ‘turbulence’ was not declared in this scope
UEqn.H:11: error: ‘rhoPhi’ was not declared in this scope
UEqn.H:29: error: ‘ghf’ was not declared in this scope
UEqn.H:29: error: no matching function for call to ‘snGrad(Foam::dimensionedScalar&)’
UEqn.H:30: error: ‘p_rgh’ was not declared in this scope
UEqn.H:31: error: ‘mesh’ was not declared in this scope
In file included from interStructFoam.C:195:
pEqn.H:9: error: ‘mesh’ was not declared in this scope
pEqn.H:10: error: no matching function for call to ‘ddtPhiCorr(Foam::volScalarField&, Foam::dimensionedScalar&, Foam::volVectorField&, Foam::surfaceScalarField&)’
pEqn.H:13: error: ‘p_rgh’ was not declared in this scope
pEqn.H:18: error: ‘ghf’ was not declared in this scope
pEqn.H:18: error: no matching function for call to ‘snGrad(Foam::dimensionedScalar&)’
In file included from interStructFoam.C:195:
pEqn.H:49: error: ‘gh’ was not declared in this scope
readStressedFoamControls.H:6: warning: unused variable ‘convergenceTolerance’
make: *** [Make/linux64GccDPOpt/interStructFoam.o] Errore 1


Can you fix it? In alternative can i asky you icoStructFoam solver?

Thank you in advance
Stefano
Whyman is offline   Reply With Quote

Reply


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
Help with KIVA4 source code compiling geothokar Main CFD Forum 0 September 3, 2010 06:40
postprocessing for icoStructFoam solver aut_iut OpenFOAM Post-Processing 8 July 28, 2010 06:05
error msg when compiling user fortran Ollimarc CFX 0 March 13, 2008 19:16
Dissimilarity in compiling new BC in 32bit OpenSuSE 103 versus 64bit CentOS 50 versus 64bit SLED 100 sponiar OpenFOAM Running, Solving & CFD 3 February 26, 2008 07:31
Discussing UDF and C++ Compiling Big Stone FLUENT 9 April 12, 2004 16:07


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