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

[waves2Foam] converting interDyMFoam to waveDyMFoam with OpenFOAM 2.1.1

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 30, 2014, 05:49
Default converting interDyMFoam to waveDyMFoam with OpenFOAM 2.1.1
  #1
Member
 
Manoj
Join Date: Jun 2013
Posts: 38
Rep Power: 12
manoj_nav is on a distinguished road
Hi Everyone

I am trying to modify waves2foam for coupling it with dynamic mesh motion so that I can simulate boat motion in head waves as per tutorial given at following links,

http://openfoamwiki.net/index.php/Co..._with_dynamic_

https://sites.google.com/site/jordim...ic-mesh-motion

but when I compile waveDyMFoam I get errors,

waveDyMFoam.C:43:28: error: relaxationZone.H: No such file or directory

waveDyMFoam.C:56:36: error: readWaveProperties.H: No such file or directory

In file included from waveDyMFoam.C:55:

/home/manoj/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude/readGravitationalAcceleration.H: In function ‘int main(int, char**)’:

/home/manoj/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude/readGravitationalAcceleration.H:5: error: redeclaration of ‘Foam::uniformDimensionedVectorField g’
/home/manoj/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude/readGravitationalAcceleration.H:5: error: ‘Foam::uniformDimensionedVectorField g’ previously declared here

In file included from createFields.H:96,

from waveDyMFoam.C:57:
/home/manoj/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude/readGravitationalAcceleration.H:5:
error: redeclaration of ‘Foam::uniformDimensionedVectorField g’
/home/manoj/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude/readGravitationalAcceleration.H:5:
error: ‘Foam::uniformDimensionedVectorField g’ previously declared here
In file included from waveDyMFoam.C:57:
createFields.H:134:
error: invalid initialization of reference of type ‘const Foam::dictionary&’ from expression of type ‘Foam::volScalarField’
/home/manoj/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude/findRefCell.H:57:
error: in passing argument 2 of ‘void Foam::setRefCell(const Foam::volScalarField&, const Foam::dictionary&, Foam::label&, Foam::scalar&, bool)’
In file included from waveDyMFoam.C:74:
setDeltaT.H:37:
error: ‘maxAlphaCo’ was not declared in this scope
setDeltaT.H:37: error: ‘alphaCoNum’ was not declared in this scope
waveDyMFoam.C:109: error: ‘relaxing’ was not declared in this scope


Kindly help me to understand the error and correct them. I am new to openFOam.

With warm regards,

Manoj
manoj_nav is offline   Reply With Quote

Old   June 4, 2014, 00:23
Default
  #2
Member
 
Manoj
Join Date: Jun 2013
Posts: 38
Rep Power: 12
manoj_nav is on a distinguished road
Hi Everyone

I am compiling waveDyMFoam.C and getting following error ..
--------------------------------------------------------------------------------------------------------------------------------------------------------
Making dependency list for source file waveDyMFoam.C
could not open file relaxationZone.H for source file waveDyMFoam.C
could not open file readWaveProperties.H for source file waveDyMFoam.C
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/opt/openfoam211/src/transportModels -I/opt/openfoam211/src/transportModels/incompressible/lnInclude -I/opt/openfoam211/src/transportModels/interfaceProperties/lnInclude -I/opt/openfoam211/src/turbulenceModels/incompressible/turbulenceModel -I/opt/openfoam211/src/finiteVolume/lnInclude -I/opt/openfoam211/src/dynamicMesh/lnInclude -I/opt/openfoam211/src/meshTools/lnInclude -I/opt/openfoam211/src/dynamicFvMesh/lnInclude -I./../../../../../src/lnInclude -IlnInclude -I. -I/opt/openfoam211/src/OpenFOAM/lnInclude -I/opt/openfoam211/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/waveDyMFoam.o
waveDyMFoam.C:43:28: fatal error: relaxationZone.H: No such file or directory
compilation terminated.
make: *** [Make/linux64GccDPOpt/waveDyMFoam.o] Error 1
--------------------------------------------------------------------------------------------------------------------------------------------------------

Kindly help.

Regards,

Manoj

----

I am following below link to compile waveDyMFoam .

https://sites.google.com/site/jordim...ic-mesh-motion

After I change -I./../../../../../src/lnInclude to -I./../../../../../src/waves2Foam/lnInclude i.e pointing to the right source I am able to compile.

Last edited by wyldckat; October 8, 2018 at 10:33. Reason: merged posts a few minutes apart
manoj_nav is offline   Reply With Quote

Old   June 5, 2014, 02:52
Default
  #3
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,900
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Good morning,

@Manoj (and others): The guides on converting interDyMFoam to waveDyMFoam are outdated, as they do not follow the most recent structure of the source code.

Kind regards,

Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.

Last edited by wyldckat; October 8, 2018 at 10:31. Reason: removed answer to another post that was on the main thread
ngj 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
Frequently Asked Questions about Installing OpenFOAM wyldckat OpenFOAM Installation 3 November 14, 2023 11:58
OpenFOAM Training, London, Chicago, Munich, Houston 2016-2017 cfd.direct OpenFOAM Announcements from Other Sources 0 September 14, 2016 03:19
Segmentation fault running waveDyMFoam solver (mod. interDyMFoam solver - waves2Foam) Ed R OpenFOAM Running, Solving & CFD 5 July 2, 2013 11:36
OpenFOAM Foundation Releases OpenFOAM® Version 2.1.1 opencfd OpenFOAM Announcements from ESI-OpenCFD 0 May 31, 2012 09:07
[Gmsh] Error converting Gmsh mesh to OpenFOAM format Martin_ OpenFOAM Meshing & Mesh Conversion 3 December 9, 2009 09:35


All times are GMT -4. The time now is 03:36.