|
[Sponsors] |
October 11, 2012, 06:14 |
|
#161 |
New Member
Feng
Join Date: Oct 2011
Posts: 6
Rep Power: 15 |
Hi Niels,
I have try to generate focus wave as post #47 suggested with combineWaves. The focus wave is really generated, but I am confused with the focus time and focus point. With newwave method, when you input focus time and focus point, the focus wave will be generated at focus point on focus time. But with combineWaves, the focus time and focus point seems not on the input value. I have shift each wave phase with omega(i)*t(focus)-k(i)*x(focus). Any suggestion? Best Regards Feng |
|
October 11, 2012, 11:23 |
5th order Stokes wave issue
|
#162 |
Senior Member
Kevin Smith
Join Date: Mar 2009
Posts: 104
Rep Power: 17 |
Hi Niels,
I am trying to use the 5th order Stokes theory to simulate deep water waves. However it seems that the mean water level gets shifted by about the amplitude of the wave. I'd expect some shift of the mean level on the order of the second/third order wave amplitudes, but the results I am seeing seem odd to me. Case: https://www.dropbox.com/s/q60gv6pcuq9z2k8/wfd_5th_problem.tar.gz Kind regards, Kevin |
|
October 12, 2012, 11:22 |
|
#163 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Hi Kevin,
I agree, it does look weird - do not think I ever tried running 5th order - merely implemented it for fun I am out of the office for a couple of days, but I will try to get a change to look into it. If you stumble over a bug before that time, please report it here. Kind regards, Niels P.S. What is the vertical resolution/sample accuracy relative to the reported error? |
|
October 15, 2012, 11:24 |
|
#164 |
Senior Member
Kevin Smith
Join Date: Mar 2009
Posts: 104
Rep Power: 17 |
Niels,
The cell size in the vertical is 0.00333m and the shift in mean water level is about equal to the wave amplitude (0.0125m). Cheers, Kevin |
|
October 15, 2012, 21:10 |
|
#165 | |
New Member
ross
Join Date: Aug 2012
Posts: 16
Rep Power: 14 |
Quote:
Sorry for the late reply and thank you for trying to help me out. I have uninstalled all openFOAM versions and reinstalled OpenFOAM 171. AS of yet I haven't run any waves2Foam tutorials but I have managed to run A few OpenFOAM tutorials and they worked. At the moment I am reinstalling waves2Foam: I am stuck on Instruction 2 of this installation https://github.com/ogoe/waves2Foam I have run ./Allwmake and I get this response Code:
make: Target `application' not remade because of errors. for which I got this response Code:
make: Target `application' not remade because of errors. Regards Ross |
||
October 16, 2012, 10:48 |
|
#166 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Hi all,
@Kevin: You are using a solution to the linear dispersion relation, however, you are using a fifth order stokes theory. This does not match, which results in a negative stokes drift in your case, hence a lowering of the water level. In the attached figure, the black line is with correct k(period,depth,height), whereas the white line is the incorrect linear dispersion relation. @Ross: You give far too little information to resolve your problem and furthermore, you have achieved the source code from a to me unknown source. Try download the latest release directly from the SVN given on the wiki. Kind regards, Niels |
|
October 16, 2012, 12:16 |
|
#167 |
Senior Member
Kevin Smith
Join Date: Mar 2009
Posts: 104
Rep Power: 17 |
Hi Niels,
Great, thank you for taking the time to look at this. I noticed the negative flow from the domain and now it makes sense. Kind regards, Kevin |
|
October 16, 2012, 12:36 |
|
#168 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
No problem - I can really recommend using setWaveParameters, because it does resolve this type of problems, and the dispersion relation for the specific wave theory is already implemented.
/ Niels |
|
October 16, 2012, 13:03 |
|
#169 |
Senior Member
Kevin Smith
Join Date: Mar 2009
Posts: 104
Rep Power: 17 |
That's what I started using for the fifth order waves and it seems to be working well now.
By the way, I did take a good look through the 5th order theory implementation and was unable to find any mistakes . |
|
October 17, 2012, 04:15 |
|
#170 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Kevin,
Did you find the time to test the compilation of waveFoam based on 2.1 on 2.1.1? / Niels |
|
October 18, 2012, 10:40 |
|
#171 |
Senior Member
Kevin Smith
Join Date: Mar 2009
Posts: 104
Rep Power: 17 |
Niels,
Yes the waveFoam solver based on 2.1.0 is cross compatible with 2.1.1 (no changes required). Kevin |
|
October 18, 2012, 11:52 |
|
#172 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Hi Massoud,
I have been going through the solitary and as I see it, it is implemented as it is given in the reference already discussed. I have updated the header, and it will come out later today with a large update. Please see the announcement thread. Kind regards, Niels |
|
October 22, 2012, 11:21 |
|
#173 |
Member
Nick
Join Date: Nov 2011
Location: Tongji University,Shanghai,China
Posts: 33
Blog Entries: 6
Rep Power: 15 |
Hi,ngj:
I'm now working on wind-wave interaction problems for wind engineering application as my master's thesis, and my foremost concern is wind profile over waves rather than wave itself. I've read your paper about the wave generation toolbox, very nice job. But I wonder whether your toolbox can take into account of wind forces on waves(given a natural wind field rather than a uniform zero) and whether the coupling effect of air and water can be considered. I wanna use LES but your toolbox is based on RANS(if I'm right), is that compatible with LES for upper wind field? Thank you in advance! |
|
October 22, 2012, 12:16 |
|
#174 |
Senior Member
Dave
Join Date: Jul 2010
Posts: 100
Rep Power: 16 |
Sunliming,
Currently only uniform wind velocity has been implemented by adding: wind (0 0 0) into the waveProperties file (default is uniform zero if omitted). The addition of uniform wind was made primarily with moving objects (ships) in mind as before then only uniform zero was present. You could utilize existing boundary conditions like swak4foam to produce a wind gradient, however you would likely have to develop a modified version of wave2foam to avoid the profile being overwritten in the domain. Regarding LES and RANS, wave2foam is built on the interFoam solver which is generic in the choice of turbulence model (RANS, LES, Laminar). |
|
October 23, 2012, 00:47 |
|
#175 | |
Member
Nick
Join Date: Nov 2011
Location: Tongji University,Shanghai,China
Posts: 33
Blog Entries: 6
Rep Power: 15 |
Quote:
Thank you for your reply! But I'm still a little bit confused of "swak4foam to produce a wind gradient", I want to add uniform pressure gradient as a driving force for wind (like in channelFoam), can swak4Foam fullfil that? In interFoam two-phase flow is solved using a general U-equation, how to add the pressure gradient to air alone excluding the water part since the interface is unknown brefore solving? |
||
October 23, 2012, 17:51 |
|
#176 |
Senior Member
Dave
Join Date: Jul 2010
Posts: 100
Rep Power: 16 |
Sunliming,
Swak4foam is a library that combines groovyBC and funkysetfields. It is a very flexible way to define boundary conditions and field values. This would be your best bet for being able to define a pressure gradient for air and not water (you could define a function for it). I can't really offer any specifics on how you actually go about setting up this with swak4foam since I haven't really used it. There is plenty of post about swak4foam and a OF wiki article on it. |
|
October 24, 2012, 04:33 |
|
#177 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Good morning,
Another option is that the boundary condition, wavePressure, in waves2Foam is based on the mixed type boundary condition, so it is relatively easy to give a pressure gradient in the air or an absolute value of the pressure. How this would interact with the relaxation zones is not very clear on the other hand, but an inlet relaxation zone might not be of your interest? Anyway, good luck Niels |
|
November 2, 2012, 10:14 |
|
#179 | |
New Member
John Peng
Join Date: Oct 2012
Location: NL
Posts: 7
Rep Power: 14 |
Hi, Ngj,
I am quite curious which nonlinear dispersion formulae or codes used for fifth stokes wave. Could you please pass me some references or codes? Regards, John Quote:
|
||
November 2, 2012, 10:48 |
|
#180 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Hi John
Yes, I have found out that I lack some information in the header files. Here is the reference: Code:
@article{ ISI:A1985AEB7500005, Author = {FENTON, JD}, Title = {{A 5TH-ORDER STOKES THEORY FOR STEADY WAVES}}, Journal = {{JOURNAL OF WATERWAY PORT COASTAL AND OCEAN ENGINEERING-ASCE}}, Year = {{1985}}, Volume = {{111}}, Number = {{2}}, Pages = {{216-234}}, Publisher = {{ASCE-AMER SOC CIVIL ENGINEERS}}, Address = {{345 E 47TH ST, NEW YORK, NY 10017-2398}}, Type = {{Article}}, Language = {{English}}, Affiliation = {{FENTON, JD (Reprint Author), UNIV NEW S WALES,SCH MATH,KENSINGTON,NSW 2033,AUSTRALIA..}}, ISSN = {{0733-950X}}, Research-Areas = {{Engineering; Water Resources}}, Web-of-Science-Categories = {{Engineering, Civil; Engineering, Ocean; Water Resources}}, Number-of-Cited-References = {{13}}, Times-Cited = {{134}}, Journal-ISO = {{J. Waterw. Port Coast. Ocean Eng.-ASCE}}, Doc-Delivery-Number = {{AEB75}}, Unique-ID = {{ISI:A1985AEB7500005}}, } Kind regards, Niels |
|
|
|
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 06:29 |
Re-Project topics | protocol | STAR-CCM+ | 0 | March 22, 2016 06:25 |
Waves2Foam Related Topics | seoseonguk | OpenFOAM Running, Solving & CFD | 0 | March 1, 2016 23:18 |
Waves2Foam Related Topics | seoseonguk | OpenFOAM Running, Solving & CFD | 0 | March 1, 2016 23:14 |
Error: "Cannot find file points" related to changing parallelized code to serial? | Suyf | OpenFOAM Running, Solving & CFD | 0 | February 12, 2015 05:31 |