CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

Waves2Foam Related Topics

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

Like Tree7Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   August 13, 2012, 01:48
Default
  #41
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Posts: 1,118
Rep Power: 19
ngj 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   Reply With Quote

Old   August 13, 2012, 04:59
Default
  #42
New Member
 
Nima
Join Date: Feb 2012
Location: Perth, Western Australia
Posts: 10
Rep Power: 3
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   Reply With Quote

Old   August 13, 2012, 12:45
Default
  #43
New Member
 
ross
Join Date: Aug 2012
Posts: 16
Rep Power: 2
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   Reply With Quote

Old   August 13, 2012, 13:12
Default
  #44
New Member
 
ross
Join Date: Aug 2012
Posts: 16
Rep Power: 2
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   Reply With Quote

Old   August 13, 2012, 15:56
Default
  #45
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Posts: 1,118
Rep Power: 19
ngj 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   Reply With Quote

Old   September 6, 2012, 10:55
Default combinedWaves waveType
  #46
New Member
 
Ed Ransley
Join Date: Jul 2012
Posts: 12
Rep Power: 2
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   Reply With Quote

Old   September 7, 2012, 01:38
Default
  #47
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Posts: 1,118
Rep Power: 19
ngj 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   Reply With Quote

Old   September 14, 2012, 15:49
Default
  #48
Member
 
Kevin Smith
Join Date: Mar 2009
Posts: 95
Rep Power: 6
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, 22 views)
kev4573 is offline   Reply With Quote

Old   September 17, 2012, 02:43
Default
  #49
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Posts: 1,118
Rep Power: 19
ngj 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   Reply With Quote

Old   September 17, 2012, 11:00
Default
  #50
Member
 
Kevin Smith
Join Date: Mar 2009
Posts: 95
Rep Power: 6
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, 16 views)
kev4573 is offline   Reply With Quote

Old   September 18, 2012, 02:39
Default
  #51
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Posts: 1,118
Rep Power: 19
ngj 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   Reply With Quote

Old   September 18, 2012, 11:18
Default
  #52
Member
 
Kevin Smith
Join Date: Mar 2009
Posts: 95
Rep Power: 6
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   Reply With Quote

Old   September 20, 2012, 04:11
Default
  #53
New Member
 
Jan Löhrmann
Join Date: Sep 2010
Posts: 19
Rep Power: 4
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   Reply With Quote

Old   September 20, 2012, 22:07
Default Solitary and Cnoidal Wave Makers
  #54
New Member
 
Masoud Hayatdavoodi
Join Date: Sep 2012
Location: University of Hawaii
Posts: 2
Rep Power: 0
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   Reply With Quote

Old   September 21, 2012, 03:52
Default
  #55
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Posts: 1,118
Rep Power: 19
ngj 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   Reply With Quote

Old   September 23, 2012, 14:59
Default
  #56
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Posts: 1,118
Rep Power: 19
ngj 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   Reply With Quote

Old   September 24, 2012, 10:40
Default
  #57
Member
 
Dennis Kingsley
Join Date: Mar 2009
Location: USA
Posts: 38
Rep Power: 6
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   Reply With Quote

Old   September 24, 2012, 10:57
Default
  #58
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Posts: 1,118
Rep Power: 19
ngj 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   Reply With Quote

Old   September 28, 2012, 07:06
Default
  #59
New Member
 
Jan Löhrmann
Join Date: Sep 2010
Posts: 19
Rep Power: 4
JanL is on a distinguished road
Dear All,

I'm still looking for a way to simulate a ship with forward speed in waves. As I'd like to use waveFoam for that purpose, I was wondering if anybody could give me some advice how to realize that type of simulations. I thought about combining potential current with a regular wave theory using combinedWaves. Has anybody experience doing that, or would this actually be a solution to my problem?
Apart from that I would like to vary the incident angle of the waves (e.g. still forward speed of the ship but waves from behind or beam seas) which leads me to the problem, how the INLET and OUTLET relaxationZones could be realised in that case for each waveType.

I'd very much appreciate any advice!

Best regards
Jan
JanL is offline   Reply With Quote

Old   September 28, 2012, 08:19
Default
  #60
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Posts: 1,118
Rep Power: 19
ngj will become famous soon enough
Hi Jan,

Maybe you should consider streamFunction waves instead. The wave-current interaction is a natural output from the estimation of the harmonic coefficients.

What do you mean with INLET/OUTLET. They are only directional flags and has nothing to do with the behaviour of the specific relaxation zone, but can help to easily change the relaxation direction. Try to use relaxationZoneLayout utility and switch between INLET/OUTLET and you will understand the difference.

They are planned to be removed in a future release, as they do cause confusion.

Have a nice weekend,

Niels
ngj is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Other Topics at OpenFOAM Workshop Milan 2008 hjasak OpenFOAM 0 March 28, 2008 05:27
Sections / Topics in CFD Wiki Roberthealy1 CFD-Wiki 6 August 23, 2007 17:58
CFD Related Educational Programmes Jonas Larsson Main CFD Forum 3 February 9, 2007 10:11
project topics vivekanand CFX 0 October 27, 2004 05:17
Advanced Topics in Aerodynamics Antonio Filippone Main CFD Forum 0 August 28, 1999 12:16


All times are GMT -4. The time now is 22:08.