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

[waves2Foam] Waves2Foam Related Topics

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

Like Tree162Likes

Closed Thread
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 3, 2012, 16:35
Default
  #121
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,901
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Hi Nima,

Please consider the content of the wiki. To make it short, you need to run setWaveParameters to generate the needed files. If the wiki is not sufficiently clear, I encourage you to make the needed modifications.

Kind regards,

Niels
ngj is offline  

Old   August 11, 2012, 13:44
Default waveFoam tutorials
  #122
New Member
 
ross
Join Date: Aug 2012
Posts: 16
Rep Power: 13
rosswin is on a distinguished road
Hi
I'm new to using any sort of CFD software and openFoam.
I have managed to install the waveFoam package and it runs.
However when I use paraFoam to view the results it seems as though no processing has been done. The results seem to be initial conditions. I have tried running a few tutorials.
I'm not sure where to start on solving this issue...
Thanks
_________________
Regards,
Ross
rosswin is offline  

Old   August 13, 2012, 01:48
Default
  #123
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,901
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Good morning Ross,

Welcome to the Forum.

You say that you have been running a few tutorials; are these the tutorials in waves2Foam or standard OF tutorials? Anyway, I would recommend that you start trying the tutorials in the User Guide and especially focus on successful visualisation of the results.

If it proves unsuccessful, then please search the forum on problems with paraFoam. On the other hand, if successful, it might be a problem with your installation of waves2Foam, but you are required to give a lot more information, since your above description is too general (e.g. OF-version, did you follow the installation procedure on the wiki, how did you manage to create waveFoam if you are running OF2.0/OF2.1, etc).

Kind regards,

Niels
ngj is offline  

Old   August 13, 2012, 04:59
Default
  #124
New Member
 
Nima
Join Date: Feb 2012
Location: Perth, Western Australia
Posts: 13
Rep Power: 14
nima3906m is on a distinguished road
Quote:
Originally Posted by rosswin View Post
Hi
I'm new to using any sort of CFD software and openFoam.
I have managed to install the waveFoam package and it runs.
However when I use paraFoam to view the results it seems as though no processing has been done. The results seem to be initial conditions. I have tried running a few tutorials.
I'm not sure where to start on solving this issue...
Thanks
_________________
Regards,
Ross
Hi Rosswin

seems a bit strange ! do you have all the time directories made in the case directory? have you checked time step write interval in controlDict file?

Regards

Nima
nima3906m is offline  

Old   August 13, 2012, 12:45
Default
  #125
New Member
 
ross
Join Date: Aug 2012
Posts: 16
Rep Power: 13
rosswin is on a distinguished road
Hi Niels

I have done the standard tutorials in OF 2.1.
I installed OF 1.7.1 in order to make the waves2Foam imstallation simpler for myself.
Are the usergiude tutorials ones for waves2Foam?
If so I will try and do those ones, otherwise I think I should go through the OF tutorials more thoroughly.

Yes I followed the wiki installation.
I tried my best to follow the instructions to create waveFoam. When I run waveFoam it completes the computation much much quicker than any OF tutorial I have run before. Maybe I have not created waveFoam properly.

Hi Nima

I think I did, my knowledge is very limited in this but I had a look over the controldict file and it all seemed ok, time step etc. The time directory is that the initial conditions i.e. at t=0?

Regards
Ross
rosswin is offline  

Old   August 13, 2012, 13:12
Default
  #126
New Member
 
ross
Join Date: Aug 2012
Posts: 16
Rep Power: 13
rosswin is on a distinguished road
Hi again

Just thought I'd try to give an idea of what I am trying to do with OF.
I want to model a 2D hydrofoil in a wave tank.

Thanks

Ross
rosswin is offline  

Old   August 13, 2012, 15:56
Default
  #127
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,901
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Hi Ross,

If you have tried the standard tutorial "damBreak", then you will see that you will get a directory for each time data is outputted.

If you do not have those in the output, when running waveFoam, then something is wrong. If you are running in 1.7.1. then all you need to do is to execute "./Allwmake" to compile library, utilities and solvers and nothing else; and it has proven to work.

Which tutorials in waves2Foam have you been running?

/ Niels
ngj is offline  

Old   September 6, 2012, 10:55
Default combinedWaves waveType
  #128
Member
 
Ed Ransley
Join Date: Jul 2012
Posts: 30
Rep Power: 13
Ed R is on a distinguished road
Dear All,

I hope is the correct place to post my question, I apologise for interrupting any current conversations.

I'm trying to get the combinedWaves waveType to work at the inlet of my 2D wave tank with the ultimate goal of creating a focussed wave packet which focussed down the tank (ideally an addition waveType with parameters such that the NewWave formulation could be implemented would be great) but in the mean time I'd like to add multiple stokes waves together with different phases but I cannot decipher the wiki (below)

"+++ Example - setWaveParameters and Running +++ waveType combinedWaves; combinedWaveNames <workList>; // A list of names of the other sub-dictionaries without the Coeffs-part"

Can anyone explain how I should set up my wavefoam file to solve this problem?

Thanks

Ed
Ed R is offline  

Old   September 7, 2012, 01:38
Default
  #129
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,901
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Good morning Ed,

What you need to do is define something similar to this:

Code:
myWaveCoeffs
{
     waveType combinedWaves;
     combinedWaveNames (wave0 wave1 wave2 <ETC>);
}

wave0Coeffs
{
    waveType <>;
    and all relevant data
}

wave1Coeffs
{
    waveType <>;
    and all relevant data
}

wave2Coeffs
{
    waveType <>;
    and all relevant data
}

<ETC>
It is a bit tedious way of creating a focused wave, so an actual focused waveType would probably be nice in the longer run.

Kind regards,

Niels
ngj is offline  

Old   September 14, 2012, 15:49
Default
  #130
Senior Member
 
Kevin Smith
Join Date: Mar 2009
Posts: 104
Rep Power: 17
kev4573 is on a distinguished road
Niels,

I attached a svn diff patch to add a waveFoam solver based on the current OpenFOAM 2.1.x version of interFoam, basically following the directions on the wiki. Thought this might help people get started with waves2foam, without having to copy and modify a handful of code if they happen to use 2.1.x.

Cheers,
Kevin
Attached Files
File Type: patch wave2Foam_add_solvers21.patch (18.8 KB, 51 views)
kev4573 is offline  

Old   September 17, 2012, 02:43
Default
  #131
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,901
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Good morning Kevin,

Thank you for the patch. Before adding it to the svn, I would like to discuss it a bit, since the lack of a release from my side is based on the question:

- What is it worth to have a solver, when none of the tutorials work with 2.0/2.1? (Here I am thinking of incorrect fvSolution, possible extension of Allrun, etc.)

Any input on this is most appreciated. Furthermore, as I am not running 2.0/2.1, a list of problems in the tutorials would be very valuable.

Kind regards,

Niels
ngj is offline  

Old   September 17, 2012, 11:00
Default
  #132
Senior Member
 
Kevin Smith
Join Date: Mar 2009
Posts: 104
Rep Power: 17
kev4573 is on a distinguished road
Niels,

Yes, I agree ideally all the tutorials should be updated at the same time as the solvers for 2.0/2.1. I just updated the waveFlume tutorial (modify Allrun, added fvSchemes.21, fvSolution.21), see attached for a patch including these changes.

I ran into 2 problems when trying to run the waveFlume tutorial under 2.1.x
  1. 2.1.x version of interFoam is pimple-based, tutorials need PIMPLE section in fvSolution, replacing "PISO" with "PIMPLE" in fvSolution seems to do the trick.
  2. 2.1.x needs div((muEff*dev(T(grad(U))))) term added to fvSchemes. I do not have a good understand of this term, so I just used "Gauss linear" setting.
I have not tried to run waves2Foam with version 2.0, so I can't comment on what issues may exist there.


Kevin
Attached Files
File Type: patch waves2Foam_add_solvers21_mod_waveFlume.patch (24.5 KB, 26 views)
kev4573 is offline  

Old   September 18, 2012, 02:39
Default
  #133
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,901
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Hi Kevin,

Thanks a lot. The patch was exactly the answer I was hoping for ) I will make sure to make an update of the repository within the near future.

Are there any affiliation, which you would like me to put in the CONTRIBUTORS file?

/ Niels
ngj is offline  

Old   September 18, 2012, 11:18
Default
  #134
Senior Member
 
Kevin Smith
Join Date: Mar 2009
Posts: 104
Rep Power: 17
kev4573 is on a distinguished road
Great, thank you Niels!

I sent you a private message in regards to contributors file.

Kevin
kev4573 is offline  

Old   September 20, 2012, 04:11
Default
  #135
New Member
 
Jan Löhrmann
Join Date: Sep 2010
Posts: 21
Rep Power: 15
JanL is on a distinguished road
Dear Nils, dear Björn,

I've been reading your posts regarding the problem of combining stokesFirst and potentialCurrent. As I would like to simulate a ship with forward speed in incoming waves, I'd be very much interested if there have been any results regarding the issues mentioned by Björn about the discrepancy in amplitude and period.
Is there a working setWaveProperties file somewhere?
Or is there any other possibility to consider a forward speed within waveFoam?

Best regards
Jan
JanL is offline  

Old   September 20, 2012, 22:07
Default Solitary and Cnoidal Wave Makers
  #136
New Member
 
Masoud Hayatdavoodi
Join Date: Sep 2012
Location: University of Hawaii
Posts: 4
Rep Power: 13
Rotto is on a distinguished road
Hi Niels,



What solution of Solitary wave did you use in the Solitary wave-maker? I mean, where did you get the equations to specify eta, p, and horizontal and vertical velocities? Could you please refer me to the reference you used?
Also, I know you used KdV solution for the Cnoidal wave-maker, could you give me a reference for this as well. It is just not clear to me why p (pressure) needs to be specified in the Solitary wave-maker but not in the Cnoidal wave-maker.


Thank you for all your great work. Very helpful package.
Masoud
Rotto is offline  

Old   September 21, 2012, 03:52
Default
  #137
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,901
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Hi Massoud

The discussion of the pressure can be found on the Wiki describing the tutorial for the solitary wave.

With respect to documentation, the same is used for cnoidal and solitary theory, and you can find the reference in cnoidalFirst.H.

Kind regards,

Niels
ngj is offline  

Old   September 23, 2012, 14:59
Default
  #138
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,901
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Hi Kevin,

Are you sure that the files you have sent me are from a 2.1.0 distribution? The reason I am asking is that they do not compile on a freshly installed 2.1.0 distribution from the Ubuntu repository.

The compile error is:

Code:
Making dependency list for source file waveFoam.C
SOURCE=waveFoam.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I/opt/openfoam210/src/transportModels -I/opt/openfoam210/src/transportModels/incompressible/lnInclude -I/opt/openfoam210/src/transportModels/interfaceProperties/lnInclude -I/opt/openfoam210/src/turbulenceModels/incompressible/turbulenceModel -I/opt/openfoam210/src/finiteVolume/lnInclude -DOFVERSION=21 -I./../../../../src/lnInclude -IlnInclude -I. -I/opt/openfoam210/src/OpenFOAM/lnInclude -I/opt/openfoam210/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPOpt/waveFoam.o
In file included from waveFoam.C:63:
createFields.H: In function ‘int main(int, char**)’:
createFields.H:35: error: ‘class Foam::twoPhaseMixture’ has no member named ‘alpha1’
In file included from waveFoam.C:93:
UEqn.H:5: error: ‘class Foam::incompressible::turbulenceModel’ has no member named ‘divDevRhoReff’
/opt/openfoam210/src/finiteVolume/lnInclude/readTimeControls.H:38: warning: unused variable ‘maxDeltaT’
make: *** [Make/linux64GccDPOpt/waveFoam.o] Error 1
I will have another look at the update to 2.1.0 in waves2Foam one of the following days.

Kind regards,

Niels
ngj is offline  

Old   September 24, 2012, 10:40
Default
  #139
Member
 
Dennis Kingsley
Join Date: Mar 2009
Location: USA
Posts: 45
Rep Power: 17
dkingsley is on a distinguished road
Niels,

The version of waves2Foam that Kevin sent to you was compiled for the bleeding edge 2.1.1 git repository.

If you need a 2.1.0 version, he can do that when he gets back from travel next week.

Dennis
dkingsley is offline  

Old   September 24, 2012, 10:57
Default
  #140
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,901
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Hi Dennis

So that would mean that the solvers compile differently from 2.1.0 to 2.1.1? In that case I am very reluctant to distribute a solver in waveFoam, because it will definitely create even more confusion in my perspective. Here the guidelines on the wiki will do better.

Do you agree?

However, I will update the tutorials with the missing files, so there will not be any problems running them.

Kind regards,

Niels
ngj is offline  

Closed Thread

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
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 10 September 2, 2021 05:29
Re-Project topics protocol STAR-CCM+ 0 March 22, 2016 05:25
Waves2Foam Related Topics seoseonguk OpenFOAM Running, Solving & CFD 0 March 1, 2016 22:18
Waves2Foam Related Topics seoseonguk OpenFOAM Running, Solving & CFD 0 March 1, 2016 22:14
Error: "Cannot find file points" related to changing parallelized code to serial? Suyf OpenFOAM Running, Solving & CFD 0 February 12, 2015 04:31


All times are GMT -4. The time now is 12:29.