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

[waves2Foam] Trying to add a new wave theory

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 19, 2015, 04:19
Default Trying to add a new wave theory
  #1
New Member
 
Pablo Montalvo
Join Date: Feb 2015
Location: Taiwan
Posts: 9
Rep Power: 8
Olbap is on a distinguished road
Hello everyone,
I started using OpenFOAM (2.3.0) recently and enjoyed it a lot. I really like the development of the waveFoam package, congratulations! Everything is built perfectly and I managed to run every tutorial, but now I have encountered a problem.
I want to add a new wave theory which is just a first order Stokes wave with modulation. So I wrote the .C and the header corresponding, and tried to run my case, which is for now the tutorial 3DWaves but with FirstOrderModulated for the wave theory.
I got the following error

Code:
setWaveParameters 

Create time


Reading g

Reading waveProperties



--> FOAM FATAL ERROR: 
Unknown wave property type stokesFirstModulationProperties

Valid wave property types are :

14
(
solitaryFirstProperties
stokesSecondProperties
cnoidalFirstProperties
combinedWavesProperties
potentialCurrentProperties
irregularProperties
bichromaticFirstProperties
stokesSecondModulationProperties
streamFunctionProperties
bichromaticSecondProperties
stokesFirstStandingProperties
externalSourceProperties
stokesFirstProperties
stokesFifthProperties
)


    From function setWaveProperties::New(const fvMesh&, const Time&, ...)
    in file preProcessing/setWaveProperties/setWaveProperties.C at line 261.

FOAM exiting
so I searched on the forum and I saw that one should add the wave properties files (code and header) in /waves2Foam/src/waves2FoamProcessing/preProcessing/setWaveProperties/ and /regular/ in my case. So I did, and modified the Make/files in waves2FoamProcessing, and built it without error. However, I still have the same error when I try to run my case. Do you know what could be the issue? Thanks in advance!
Olbap is offline   Reply With Quote

Old   February 8, 2021, 13:00
Default
  #2
New Member
 
Arun Kumar
Join Date: Sep 2019
Location: Dundee, Scotland
Posts: 10
Rep Power: 4
AR91 is on a distinguished road
Quote:
Originally Posted by Olbap View Post
Hello everyone,
I started using OpenFOAM (2.3.0) recently and enjoyed it a lot. I really like the development of the waveFoam package, congratulations! Everything is built perfectly and I managed to run every tutorial, but now I have encountered a problem.
I want to add a new wave theory which is just a first order Stokes wave with modulation. So I wrote the .C and the header corresponding, and tried to run my case, which is for now the tutorial 3DWaves but with FirstOrderModulated for the wave theory.
I got the following error

Code:
setWaveParameters 

Create time


Reading g

Reading waveProperties



--> FOAM FATAL ERROR: 
Unknown wave property type stokesFirstModulationProperties

Valid wave property types are :

14
(
solitaryFirstProperties
stokesSecondProperties
cnoidalFirstProperties
combinedWavesProperties
potentialCurrentProperties
irregularProperties
bichromaticFirstProperties
stokesSecondModulationProperties
streamFunctionProperties
bichromaticSecondProperties
stokesFirstStandingProperties
externalSourceProperties
stokesFirstProperties
stokesFifthProperties
)


    From function setWaveProperties::New(const fvMesh&, const Time&, ...)
    in file preProcessing/setWaveProperties/setWaveProperties.C at line 261.

FOAM exiting
so I searched on the forum and I saw that one should add the wave properties files (code and header) in /waves2Foam/src/waves2FoamProcessing/preProcessing/setWaveProperties/ and /regular/ in my case. So I did, and modified the Make/files in waves2FoamProcessing, and built it without error. However, I still have the same error when I try to run my case. Do you know what could be the issue? Thanks in advance!
Hello,
I am facing the same issue. Did you find a solution!?
Thanks,
Arun.
AR91 is offline   Reply With Quote

Old   February 16, 2021, 17:29
Default
  #3
New Member
 
Arun Kumar
Join Date: Sep 2019
Location: Dundee, Scotland
Posts: 10
Rep Power: 4
AR91 is on a distinguished road
Quote:
Originally Posted by AR91 View Post
Hello,
I am facing the same issue. Did you find a solution!?
Thanks,
Arun.
Once again I stumbled onto the solution on my own. It is probably the 7th time this has happened after having asked a question on the forum and receiving no help.

To anyone who might be in this trouble. Check your WAVES_APPBIN and WAVES_LIBBIN in bin/bashrc inside waves2Foam. I set these to $FOAM_USER_APPBIN and $FOAM_USER_LIBBIN respectively. That fixed the issue.
Regards,
Arun.
AR91 is offline   Reply With Quote

Old   October 8, 2021, 05:20
Default
  #4
New Member
 
irengclenk
Join Date: Feb 2021
Posts: 4
Rep Power: 2
irengclenk is on a distinguished road
Hi guys,

I am a beginner and was able to solve this by doing this:
1. check the options file is avalaible in the make folder. So if we want to modify the set wave properties
check the make folder here /home/u0142217/OpenFOAM/waves2Foam-master/src/waves2FoamProcessing/preProcessing
chosse the correct option version and rename it into options
2. Make sure the modified folder is written in the files
3. ./Allwmake

That worked for me. Hope it helps
irengclenk is offline   Reply With Quote

Reply

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
Pressure for wave height in an Water Wave Tank Cluain CFX 8 December 6, 2021 04:58
[waves2Foam] How to use stream function wave theory Melo1993 OpenFOAM Community Contributions 9 May 29, 2020 08:11
[waves2Foam] New wave theory coded in FORTRAN, how to add to waves2Foam? Kun_zheng OpenFOAM Community Contributions 6 August 30, 2017 05:58
[PyFoam] and paraview eelcovv OpenFOAM Community Contributions 28 May 30, 2016 10:23
Wave Theory oliver.mulryan Main CFD Forum 10 July 9, 2000 12:35


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