|
[Sponsors] |
May 29, 2008, 18:08 |
Hi everybody,
for my gradua
|
#1 |
New Member
jin xu
Join Date: Mar 2009
Location: london, UK
Posts: 13
Rep Power: 17 |
Hi everybody,
for my graduation project, which is similar to the bentpipe case , I am trying to find a FSI solver and find icoFsiFoam is the one I should use. I am just started with OF, so I just downloaded all the files and try to compile it using "wmake", but I end up with errors, Could anyone give me some ideas? I will really appreciate your help! (I am using OF-1.3 ) snail@snail-laptop:~/OpenFOAM/snail-1.3/applications/solvers/icoFsiFoam$ wmake make: Nothing to be done for `allFiles'. make: `Make/linuxGcc4DPOpt/dependencies' is up to date. SOURCE_DIR=tractionDisplacement SOURCE=tractionDisplacement/tractionDisplacementFvPatchVectorField.C ; g++ -m32 -Dlinux -DDP -Wall -W -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-30 -I/home/snail/OpenFOAM/OpenFOAM-1.3/src/finiteVolume/lnInclude -I/home/snail/OpenFOAM/OpenFOAM-1.3/src/dynamicFvMesh/lnInclude -I/home/snail/OpenFOAM/OpenFOAM-1.3/src/dynamicMesh/lnInclude -DFACE_DECOMP -I/home/snail/OpenFOAM/OpenFOAM-1.3/src/tetDecompositionFiniteElement/lnInclude -I/home/snail/OpenFOAM/OpenFOAM-1.3/src/tetDecompositionMotionSolver/lnInclude -I/home/snail/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude -IlnInclude -I. -fPIC -pthread -c $SOURCE -o Make/linuxGcc4DPOpt/tractionDisplacementFvPatchVectorField.o tractionDisplacement/tractionDisplacementFvPatchVectorField.H:75: error: expected ',' or '...' before '<' token tractionDisplacement/tractionDisplacementFvPatchVectorField.H:76: error: ISO C++ forbids declaration of 'DimensionedField' with no type tractionDisplacement/tractionDisplacementFvPatchVectorField.H:82: error: expected ',' or '...' before '<' token tractionDisplacement/tractionDisplacementFvPatchVectorField.H:84: error: ISO C++ forbids declaration of 'DimensionedField' with no type tractionDisplacement/tractionDisplacementFvPatchVectorField.H:84: error: 'Foam::tractionDisplacementFvPatchVectorField::tra ctionDisplacementFvPatchVect orField(const Foam::fvPatch&, int)' cannot be overloaded tractionDisplacement/tractionDisplacementFvPatchVectorField.H:76: error: with 'Foam::tractionDisplacementFvPatchVectorField::tra ctionDisplacementFvPatchVect orField(const Foam::fvPatch&, int)' tractionDisplacement/tractionDisplacementFvPatchVectorField.H:92: error: expected ',' or '...' before '<' token tractionDisplacement/tractionDisplacementFvPatchVectorField.H:94: error: ISO C++ forbids declaration of 'DimensionedField' with no type tractionDisplacement/tractionDisplacementFvPatchVectorField.H:115: error: expected ',' or '...' before '<' token tractionDisplacement/tractionDisplacementFvPatchVectorField.H:116: error: ISO C++ forbids declaration of 'DimensionedField' with no type tractionDisplacement/tractionDisplacementFvPatchVectorField.H:121: error: expected ',' or '...' before '<' token tractionDisplacement/tractionDisplacementFvPatchVectorField.H:122: error: ISO C++ forbids declaration of 'DimensionedField' with no type tractionDisplacement/tractionDisplacementFvPatchVectorField.H: In member function 'virtual Foam::tmp<foam::fvpatchfield<foam::vector<double> > > Foam::tractionDisplacementFvPatchVectorField::clon e(int) const': tractionDisplacement/tractionDisplacementFvPatchVectorField.H:126: error: 'iF' was not declared in this scope tractionDisplacement/tractionDisplacementFvPatchVectorField.C: At global scope: tractionDisplacement/tractionDisplacementFvPatchVectorField.C:42: error: expected ',' or '...' before '<' token tractionDisplacement/tractionDisplacementFvPatchVectorField.C:43: error: ISO C++ forbids declaration of 'DimensionedField' with no type tractionDisplacement/tractionDisplacementFvPatchVectorField.C: In constructor 'Foam::tractionDisplacementFvPatchVectorField::tra ctionDisplacementFvPatchVect orField(const Foam::fvPatch&, int)': tractionDisplacement/tractionDisplacementFvPatchVectorField.C:45: error: 'iF' was not declared in this scope tractionDisplacement/tractionDisplacementFvPatchVectorField.C: At global scope: tractionDisplacement/tractionDisplacementFvPatchVectorField.C:59: error: expected ',' or '...' before '<' token tractionDisplacement/tractionDisplacementFvPatchVectorField.C:61: error: ISO C++ forbids declaration of 'DimensionedField' with no type tractionDisplacement/tractionDisplacementFvPatchVectorField.C: In constructor 'Foam::tractionDisplacementFvPatchVectorField::tra ctionDisplacementFvPatchVect orField(const Foam::tractionDisplacementFvPatchVectorField&, const Foam::fvPatch&, int)': tractionDisplacement/tractionDisplacementFvPatchVectorField.C:63: error: 'iF' was not declared in this scope tractionDisplacement/tractionDisplacementFvPatchVectorField.C:63: error: 'mapper' was not declared in this scope tractionDisplacement/tractionDisplacementFvPatchVectorField.C: At global scope: tractionDisplacement/tractionDisplacementFvPatchVectorField.C:73: error: expected ',' or '...' before '<' token tractionDisplacement/tractionDisplacementFvPatchVectorField.C:75: error: ISO C++ forbids declaration of 'DimensionedField' with no type tractionDisplacement/tractionDisplacementFvPatchVectorField.C:75: error: redefinition of 'Foam::tractionDisplacementFvPatchVectorField::tra ctionDisplacementFvPatchVect orField(const Foam::fvPatch&, int)' tractionDisplacement/tractionDisplacementFvPatchVectorField.C:43: error: 'Foam::tractionDisplacementFvPatchVectorField::tra ctionDisplacementFvPatchVect orField(const Foam::fvPatch&, int)' previously defined here tractionDisplacement/tractionDisplacementFvPatchVectorField.C: In constructor 'Foam::tractionDisplacementFvPatchVectorField::tra ctionDisplacementFvPatchVect orField(const Foam::fvPatch&, int)': tractionDisplacement/tractionDisplacementFvPatchVectorField.C:77: error: 'iF' was not declared in this scope tractionDisplacement/tractionDisplacementFvPatchVectorField.C:78: error: 'dict' was not declared in this scope tractionDisplacement/tractionDisplacementFvPatchVectorField.C: In copy constructor 'Foam::tractionDisplacementFvPatchVectorField::tra ctionDisplacementFvPatchVect orField(const Foam::tractionDisplacementFvPatchVectorField&)': tractionDisplacement/tractionDisplacementFvPatchVectorField.C:90: warning: base class 'class Foam::lduCoupledInterface' should be explicitly initialized in the copy constructor tractionDisplacement/tractionDisplacementFvPatchVectorField.C: At global scope: tractionDisplacement/tractionDisplacementFvPatchVectorField.C:102: error: expected ',' or '...' before '<' token tractionDisplacement/tractionDisplacementFvPatchVectorField.C:103: error: ISO C++ forbids declaration of 'DimensionedField' with no type tractionDisplacement/tractionDisplacementFvPatchVectorField.C: In constructor 'Foam::tractionDisplacementFvPatchVectorField::tra ctionDisplacementFvPatchVect orField(const Foam::tractionDisplacementFvPatchVectorField&, int)': tractionDisplacement/tractionDisplacementFvPatchVectorField.C:105: error: 'iF' was not declared in this scope tractionDisplacement/tractionDisplacementFvPatchVectorField.C: In member function 'virtual void Foam::tractionDisplacementFvPatchVectorField::upda teCoeffs()': tractionDisplacement/tractionDisplacementFvPatchVectorField.C:172: error: 'const class Foam::fvPatch' has no member named 'lookupPatchField' /home/snail/OpenFOAM/OpenFOAM-1.3/src/finiteVolume/lnInclude/fvPatchField.H: In static member function 'static Foam::tmp<foam::fvpatchfield<type> > Foam::fvPatchField<type>::addpatchConstructorToTab le<fvpatchfieldtype>::New(cons t Foam::fvPatch&, const Foam::Field<type>&) [with fvPatchFieldType = Foam::tractionDisplacementFvPatchVectorField, Type = Foam::Vector<double>]': /home/snail/OpenFOAM/OpenFOAM-1.3/src/finiteVolume/lnInclude/fvPatchField.H:108: instantiated from 'Foam::fvPatchField<type>::addpatchConstructorToTa ble<fvpatchfieldtype>::addpa tchConstructorToTable() [with fvPatchFieldType = Foam::tractionDisplacementFvPatchVectorField, Type = Foam::Vector<double>]' tractionDisplacement/tractionDisplacementFvPatchVectorField.C:197: instantiated from here /home/snail/OpenFOAM/OpenFOAM-1.3/src/finiteVolume/lnInclude/fvPatchField.H:108: error: no matching function for call to 'Foam::tractionDisplacementFvPatchVectorField::tra ctionDisplacementFvPatchVect orField(const Foam::fvPatch&, const Foam::Field<foam::vector<double> >&)' tractionDisplacement/tractionDisplacementFvPatchVectorField.C:103: note: candidates are: Foam::tractionDisplacementFvPatchVectorField::trac tionDisplacementFvPatchVectorF ield(const Foam::tractionDisplacementFvPatchVectorField&, int) tractionDisplacement/tractionDisplacementFvPatchVectorField.C:90: note: Foam::tractionDisplacementFvPatchVectorField::trac tionDisplacementFvPatchVectorF ield(const Foam::tractionDisplacementFvPatchVectorField&) tractionDisplacement/tractionDisplacementFvPatchVectorField.C:61: note: Foam::tractionDisplacementFvPatchVectorField::trac tionDisplacementFvPatchVectorF ield(const Foam::tractionDisplacementFvPatchVectorField&, const Foam::fvPatch&, int) tractionDisplacement/tractionDisplacementFvPatchVectorField.C:43: note: Foam::tractionDisplacementFvPatchVectorField::trac tionDisplacementFvPatchVectorF ield(const Foam::fvPatch&, int) /home/snail/OpenFOAM/OpenFOAM-1.3/src/finiteVolume/lnInclude/fvPatchField.H: In static member function 'static Foam::tmp<foam::fvpatchfield<type> > Foam::fvPatchField<type>::addpatchMapperConstructo rToTable<fvpatchfieldtype>::Ne w(const Foam::fvPatchField<type>&, const Foam::fvPatch&, const Foam::Field<type>&, const Foam::fvPatchFieldMapper&) [with fvPatchFieldType = Foam::tractionDisplacementFvPatchVectorField, Type = Foam::Vector<double>]': /home/snail/OpenFOAM/OpenFOAM-1.3/src/finiteVolume/lnInclude/fvPatchField.H:117: instantiated from 'Foam::fvPatchField<type>::addpatchMapperConstruct orToTable<fvpatchfieldtype>: :addpatchMapperConstructorToTable() [with fvPatchFieldType = Foam::tractionDisplacementFvPatchVectorField, Type = Foam::Vector<double>]' tractionDisplacement/tractionDisplacementFvPatchVectorField.C:197: instantiated from here /home/snail/OpenFOAM/OpenFOAM-1.3/src/finiteVolume/lnInclude/fvPatchField.H:117: error: no matching function for call to 'Foam::tractionDisplacementFvPatchVectorField::tra ctionDisplacementFvPatchVect orField(const Foam::tractionDisplacementFvPatchVectorField&, const Foam::fvPatch&, const Foam::Field<foam::vector<double> >&, const Foam::fvPatchFieldMapper&)' tractionDisplacement/tractionDisplacementFvPatchVectorField.C:103: note: candidates are: Foam::tractionDisplacementFvPatchVectorField::trac tionDisplacementFvPatchVectorF ield(const Foam::tractionDisplacementFvPatchVectorField&, int) tractionDisplacement/tractionDisplacementFvPatchVectorField.C:90: note: Foam::tractionDisplacementFvPatchVectorField::trac tionDisplacementFvPatchVectorF ield(const Foam::tractionDisplacementFvPatchVectorField&) tractionDisplacement/tractionDisplacementFvPatchVectorField.C:61: note: Foam::tractionDisplacementFvPatchVectorField::trac tionDisplacementFvPatchVectorF ield(const Foam::tractionDisplacementFvPatchVectorField&, const Foam::fvPatch&, int) tractionDisplacement/tractionDisplacementFvPatchVectorField.C:43: note: Foam::tractionDisplacementFvPatchVectorField::trac tionDisplacementFvPatchVectorF ield(const Foam::fvPatch&, int) /home/snail/OpenFOAM/OpenFOAM-1.3/src/finiteVolume/lnInclude/fvPatchField.H: In static member function 'static Foam::tmp<foam::fvpatchfield<type> > Foam::fvPatchField<type>::adddictionaryConstructor ToTable<fvpatchfieldtype>::New (const Foam::fvPatch&, const Foam::Field<type>&, const Foam::dictionary&) [with fvPatchFieldType = Foam::tractionDisplacementFvPatchVectorField, Type = Foam::Vector<double>]': /home/snail/OpenFOAM/OpenFOAM-1.3/src/finiteVolume/lnInclude/fvPatchField.H:131: instantiated from 'Foam::fvPatchField<type>::adddictionaryConstructo rToTable<fvpatchfieldtype>:: adddictionaryConstructorToTable() [with fvPatchFieldType = Foam::tractionDisplacementFvPatchVectorField, Type = Foam::Vector<double>]' tractionDisplacement/tractionDisplacementFvPatchVectorField.C:197: instantiated from here /home/snail/OpenFOAM/OpenFOAM-1.3/src/finiteVolume/lnInclude/fvPatchField.H:131: error: no matching function for call to 'Foam::tractionDisplacementFvPatchVectorField::tra ctionDisplacementFvPatchVect orField(const Foam::fvPatch&, const Foam::Field<foam::vector<double> >&, const Foam::dictionary&)' tractionDisplacement/tractionDisplacementFvPatchVectorField.C:103: note: candidates are: Foam::tractionDisplacementFvPatchVectorField::trac tionDisplacementFvPatchVectorF ield(const Foam::tractionDisplacementFvPatchVectorField&, int) tractionDisplacement/tractionDisplacementFvPatchVectorField.C:90: note: Foam::tractionDisplacementFvPatchVectorField::trac tionDisplacementFvPatchVectorF ield(const Foam::tractionDisplacementFvPatchVectorField&) tractionDisplacement/tractionDisplacementFvPatchVectorField.C:61: note: Foam::tractionDisplacementFvPatchVectorField::trac tionDisplacementFvPatchVectorF ield(const Foam::tractionDisplacementFvPatchVectorField&, const Foam::fvPatch&, int) tractionDisplacement/tractionDisplacementFvPatchVectorField.C:43: note: Foam::tractionDisplacementFvPatchVectorField::trac tionDisplacementFvPatchVectorF ield(const Foam::fvPatch&, int) make: *** [Make/linuxGcc4DPOpt/tractionDisplacementFvPatchVectorField.o] Error 1 |
|
May 30, 2008, 03:56 |
Hi Jin!
I THINK the issues
|
#2 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Hi Jin!
I THINK the issues you are experiencing are due to trying to compile 1.4-boundary conditions on a 1.3 installation. The icoFsiFoam you got is from Hrv's dev-version, isn't it? I just tried to compile that on a vanilla 1.4.1 and it won't work there too (because it uses some stuff that was removed). So if you don't want to use the whole dev-version have a look at old versions under https://openfoam-extend.svn.sourcefo...end/tags/Core/ maybe the 1.3-version found there (or even the 1.4) works for you Bernhard
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
|
May 30, 2008, 06:21 |
Hi Bernhard,
I replaced all
|
#3 |
New Member
jin xu
Join Date: Mar 2009
Location: london, UK
Posts: 13
Rep Power: 17 |
Hi Bernhard,
I replaced all my files with the icoFsiFoam version "OpenFOAM-1.4.1_dev_07_11_14/" the old errors are gone, but new one appears: setMotion.H: In function 'int main(int, char**)': setMotion.H:30: error: 'class Foam::tetPolyPatchInterpolation' has no member named 'pointToPointInterpolate' make: *** [Make/linuxGcc4DPOpt/icoFsiFoam.o] Error 1 I think maybe the reason is that in OF 1.3, there is no member function named "pointToPointInterpolate" for Foam::tetPolyPatchInterpolation. so I am thinking that, if I install a OF 1.4, maybe the erros will be eliminated. Can you give me some ideas? Kind regards jin |
|
May 30, 2008, 20:29 |
Hi, everybody,
I also compi
|
#4 |
New Member
jin xu
Join Date: Mar 2009
Location: london, UK
Posts: 13
Rep Power: 17 |
Hi, everybody,
I also compile the icoFsiFoam in OpenFOAM-1.3_dev_07_08_29/, the same error appears: setMotion.H: In function 'int main(int, char**)': setMotion.H:30: error: 'class Foam::tetPolyPatchInterpolation' has no member named 'pointToPointInterpolate' i don't know why Foam::tetPolyPatchInterpolation misses this member funtion, as I have noticed, this member funtion is used in every icoFsiFoam in different OF version. so this member should exit, but I do not know how can i help the class to find this member function, could anybody give me some ideas? Thanks in advance, jin |
|
May 31, 2008, 08:45 |
Hi, everybody,
the problem
|
#5 |
New Member
jin xu
Join Date: Mar 2009
Location: london, UK
Posts: 13
Rep Power: 17 |
Hi, everybody,
the problem is solved.^_^I download another version of OF-1.3 which is precompiled by Pro.Jasak and contains the missing member function in the OF-1.3 downloaded in the official website.so the icoFsiFoam is succesfully compiled. However, there is no turorial case for this solver, could anyone give me some ideas on how to orgnize the directory structure for a icoFsiFoam case? Thanks in advance! Regards jin |
|
June 4, 2008, 20:15 |
Hi everybody,
I think I hav
|
#6 |
New Member
jin xu
Join Date: Mar 2009
Location: london, UK
Posts: 13
Rep Power: 17 |
Hi everybody,
I think I have made some progress on icoFsiFoam,but I still have questions: (1) in the controlDic, what we should we put for the applicationClass(now I use icoFoam, is that right?), but for icoStructFoam, it is "laplacianFoam". (2) why should we have the file "sampleDict" (3)how does the file "tetFemSolution" work? and I am trying to run a deformable channel case(describled in Wiki) and compare it with the one I get from modified icoStructFoam for validation. Now I can run this case but the computation is unstable and I still get one waring which I don't know how to fix: --> FOAM Warning : From function objectRegistry::checkIn(regIOobject&) in file db/objectRegistry/objectRegistry.C at line 51 Registering object 'solid' with objectRegistry 'time' This is only appropriate for registering the regions of a multi-region computation or in other special circumstances. Otherwise please register this object with its region (mesh) The computation output is: . . . Time = 0.608 Setting pressure x-component of total pressure force = nan ICCG: Solving for Ux: solution singularity ICCG: Solving for Uy: solution singularity ICCG: Solving for Uz: solution singularity ICCG: Solving for motionUx: solution singularity ICCG: Solving for motionUy: solution singularity ICCG: Solving for motionUz: solution singularity Motion magnitude: mean = nan max = nan Courant Number mean: nan max: nan BICCG: Solving for Ux: solution singularity BICCG: Solving for Uy: solution singularity BICCG: Solving for Uz: solution singularity ICCG: Solving for p: solution singularity ICCG: Solving for p: solution singularity time step continuity errors : sum local = nan, global = nan, cumulative = nan ICCG: Solving for p: solution singularity ICCG: Solving for p: solution singularity time step continuity errors : sum local = nan, global = nan, cumulative = nan ExecutionTime = 1210.29 s . . . Could anyone give me some ideas of how to fix these problems? Thanks in advance jin |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help : UDF compling error? | Lincoln | FLUENT | 1 | January 13, 2010 14:30 |
Errors in running a icoFsiFoam case | jin_xu | OpenFOAM Pre-Processing | 0 | June 9, 2008 06:48 |
PROBLEM IN COMPLING IN UDF | ammi | CFX | 1 | December 5, 2006 23:43 |
RE: the explaination of Error while compling UDF | li li | FLUENT | 0 | October 24, 2003 00:47 |
Help!compling udf | lynn | FLUENT | 1 | August 6, 2003 08:02 |