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 Tree76Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   November 18, 2013, 12:22
Default
  #641
New Member
 
Lukas
Join Date: Oct 2013
Location: Germany
Posts: 6
Rep Power: 3
Luke92 is on a distinguished road
Hi Niels,
I am trying to calculate wave loads on offshore structures (at first a simple cylinder).
Unfortunately, I currently have problems with the validation of the parameters.
The maximum and minimum values for the velocity Ux that occur on the surface of the waves are too high. This results in incorrect values for the forces.
However the velocities below the water surface are realistic (if the top of the Monopile is below the water surface, the forces are realistic too).


Is it possible that an interaction between the air and water is taking place?
Or is simply the mesh not fine enough?


I am using OF 2.2.1 and work with Stokes 5th.


Regards - Lukas
Attached Files
File Type: zip wellenkanal_monopile.zip (97.6 KB, 27 views)
Luke92 is offline   Reply With Quote

Old   November 19, 2013, 04:29
Default
  #642
Senior Member
 
Arthur Loginow
Join Date: Aug 2012
Posts: 102
Rep Power: 4
Maralady is on a distinguished road
Dear Neils,

I think I found a mistake at the math of the stokesSecond, not quite sure 3am here and I am pretty tired, anyway please check this (or anyone else) when you have time:

H_/2.0*Foam::cos(arg) // First order contribution.
// Second order contribution.
+ (1.0/16.0)*K_*sqr(H_)
*(
3.0/Foam:ow(Foam::tanh(K_*h_),3.0)
- 1.0/Foam::tanh(K_*h_)
)
*Foam::cos(2.0*arg)
)*factor(time) // Hot-starting.
+ seaLevel_; // Adding sea level.


I think that the minus sign should be a plus sign, anyway maybe I am missing something but my math seems correct, it would be nice if someone can check this to corroborate.

Thanks

UPDATED

Seems to be no difference at all with the sign

Last edited by Maralady; November 19, 2013 at 06:50.
Maralady is offline   Reply With Quote

Old   November 19, 2013, 11:51
Default
  #643
New Member
 
behrang chenari
Join Date: Nov 2013
Location: Coimbra, Portugal
Posts: 11
Rep Power: 3
Behrang is on a distinguished road
Send a message via Skype™ to Behrang
Hi,

I'm a new user of OpenFOAM. I started to be familiar with OF following the user-guide and tutorials of OpenFoam. Now I want to use waves2Foam but i can not run any of its tutorials. I don't know if the problem comes from installation or ... ? (I am using Linux mint 14 and OF211 in my own computer and ubuntu 10.10 and OF171 in my work place)
can anyone help me please?
thanks in advance.

Behrang

Last edited by Behrang; November 20, 2013 at 08:07.
Behrang is offline   Reply With Quote

Old   November 24, 2013, 09:22
Default
  #644
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Deltares, Delft, The Netherlands
Posts: 1,608
Rep Power: 25
ngj will become famous soon enoughngj will become famous soon enough
@Lukas:
A quick look at your test case shows that you are using way too few computational cells. 1920 cells for a three dimensional case will never be enough. The number of cells should probably be a couple of orders larger.

Secondly, you are using linear theory for your parameters even though you apply Stokes fifth order theory.

@Behrang: To except any help please conform to the suggestions in this thread: How to give enough info to get help

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.
ngj is offline   Reply With Quote

Old   November 24, 2013, 13:41
Default
  #645
New Member
 
behrang chenari
Join Date: Nov 2013
Location: Coimbra, Portugal
Posts: 11
Rep Power: 3
Behrang is on a distinguished road
Send a message via Skype™ to Behrang
Hi Niels,

Thanks for your suggestion, actually I red all the posts in this forum and also the wiki page but I cannot run any of tutorials!
as I mentioned I checked the suggestion to other new users of OF and waves2Foam but they did not work for me.
if possible please guide me to check what is the problem?
as I told in previous post I dont know if the installation is correct or not?!
Thank you!

Behrang
Behrang is offline   Reply With Quote

Old   November 24, 2013, 17:33
Default
  #646
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Deltares, Delft, The Netherlands
Posts: 1,608
Rep Power: 25
ngj will become famous soon enoughngj will become famous soon enough
Hi Behrang,

Since you have read through this thread, and considering the range of issue discussed and solved in the above post, your problem(s) must be quite special, why you not nearly have presented us with enough information to come up with a solution.

Output from the command line and confirmation that waves2Foam is correctly compiled are typically a good starting point.

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.
ngj is offline   Reply With Quote

Old   November 25, 2013, 06:53
Default
  #647
New Member
 
Lukas
Join Date: Oct 2013
Location: Germany
Posts: 6
Rep Power: 3
Luke92 is on a distinguished road
Hi Niels,

thank you for your effort but what do you mean with
Quote:
Originally Posted by ngj View Post
Secondly, you are using linear theory for your parameters even though you apply Stokes fifth order theory.
If I determine the parameters with setWaveProperties I get the same values.

In addition, I work with ~2kk Cells (after refinement) in this case. My minimum mesh size varies between 0.2 m 0.5m in each direction.
Is this still not fine enough?


Thanks in advance
Lukas
Luke92 is offline   Reply With Quote

Old   November 25, 2013, 08:35
Default
  #648
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Deltares, Delft, The Netherlands
Posts: 1,608
Rep Power: 25
ngj will become famous soon enoughngj will become famous soon enough
Hi Lukas,

I am sorry with respect to Stokes Fifth, I am just used to work in shallow waters, where the two theories deviate, but your water depth is 30 m.

With respect to the number of cells, then 2.000.000 seems like a more reasonable number, i.e. a lot more than the mesh you uploaded. I have not really worked with impact on cylinders myself, and since my points above are void, I hope that some one else can help you?

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.
ngj is offline   Reply With Quote

Old   November 25, 2013, 09:02
Default
  #649
New Member
 
behrang chenari
Join Date: Nov 2013
Location: Coimbra, Portugal
Posts: 11
Rep Power: 3
Behrang is on a distinguished road
Send a message via Skype™ to Behrang
Hi Niels,

I am using OF211 in Linux mint14. I follow the instruction of wiki to install waves2Foam ( sudo apt-get install libgsl0-dev
svn co http://svn.code.sf.net/p/openfoam-ex...her/waves2Foam
)
now I have waves2Foam in home/behrang , then i execute allwmake with (./Allwmake) and I have same error as maryam has:
(
behrang@linuxmint ~/waves2Foam $ ./Allwmake

=====================================
ENVIRONMENTAL VARIABLES
=====================================
WAVES_XVERSION=0
WM_PROJECT_VERSION_NUMBER=211
WAVES_SOL=/home/behrang/OpenFOAM/behrang-2.1.1/applications/utilities/waves2Foam/applications/solvers/solvers211
WAVES_POST=/home/behrang/OpenFOAM/behrang-2.1.1/applications/utilities/waves2Foam/applications/utilities/postProcessing
WAVES_UTIL=/home/behrang/OpenFOAM/behrang-2.1.1/applications/utilities/waves2Foam/applications/utilities
EXTBRANCH=0
WAVES_APPBIN=/home/behrang/OpenFOAM/behrang-2.1.1/platforms/linuxGccDPOpt/bin
WAVES_TUT=/home/behrang/OpenFOAM/behrang-2.1.1/applications/utilities/waves2Foam/tutorials
WAVES_GSL_INCLUDE=/usr/include
WAVES_GSL_LIB=/usr/lib64
WAVES_PRE=/home/behrang/OpenFOAM/behrang-2.1.1/applications/utilities/waves2Foam/applications/utilities/preProcessing
WAVES_SRC=/home/behrang/OpenFOAM/behrang-2.1.1/applications/utilities/waves2Foam/src
WAVES_DIR=/home/behrang/OpenFOAM/behrang-2.1.1/applications/utilities/waves2Foam
WAVES_LIBBIN=/home/behrang/OpenFOAM/behrang-2.1.1/platforms/linuxGccDPOpt/lib


FATAL ERROR.
The directory path /home/behrang/OpenFOAM/behrang-2.1.1/applications/utilities/waves2Foam does not exist.
Correct the path in bin/bashrc

Please note that once bin/bashrc is created, bin/bashrc.org is only an
inactive file. The latter is also the only of the two files, which is
updated through the SVN-repository.

EXITING
)
but I don't have a folder called application in behrang-2.1.1!!!!!!!!!!!!!!!!!!!!!!!!!
I have application in opt/openfoam211 and inside that I have utilities (but no folder called waves2Foam)
sorry if I am causing any inconvenience.

Behrang
Behrang is offline   Reply With Quote

Old   November 25, 2013, 14:22
Default
  #650
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Deltares, Delft, The Netherlands
Posts: 1,608
Rep Power: 25
ngj will become famous soon enoughngj will become famous soon enough
Behrang,

Kindly consider the solution presented in post #479 in this thread.

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; December 28, 2013 at 09:12. Reason: upda
ngj is offline   Reply With Quote

Old   November 26, 2013, 07:50
Default
  #651
New Member
 
behrang chenari
Join Date: Nov 2013
Location: Coimbra, Portugal
Posts: 11
Rep Power: 3
Behrang is on a distinguished road
Send a message via Skype™ to Behrang
Hi Niels,

I tried your suggestion on post #479 but still no success, any new idea about the issue?
please let me know if any more info. is needed.

Best,
Behrang

Last edited by wyldckat; December 28, 2013 at 09:12. Reason: updated the link to the other post, given the transfer of posts from the news thread
Behrang is offline   Reply With Quote

Old   November 26, 2013, 13:10
Default
  #652
New Member
 
behrang chenari
Join Date: Nov 2013
Location: Coimbra, Portugal
Posts: 11
Rep Power: 3
Behrang is on a distinguished road
Send a message via Skype™ to Behrang
Hi Niels,

Finally it worked Thank you for your supports.
I just made folders as mentioned in the error ( I made applications/utilities in /home/<user>/OpenFOAM/<user>-2.1.1) and then ./Allwmake
now it is OK.

Behrang
Behrang is offline   Reply With Quote

Old   December 2, 2013, 06:21
Default
  #653
New Member
 
Lukas
Join Date: Oct 2013
Location: Germany
Posts: 6
Rep Power: 3
Luke92 is on a distinguished road
Hi Niels,

Quote:
Originally Posted by ngj View Post
...and since my points above are void...
waveFoam based on interFoam and interfoam is a two-phase-solver.
how can I set the points above the watersurface void?

Regards - Lukas
sina.s likes this.
Luke92 is offline   Reply With Quote

Old   December 2, 2013, 11:55
Default
  #654
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Deltares, Delft, The Netherlands
Posts: 1,608
Rep Power: 25
ngj will become famous soon enoughngj will become famous soon enough
Hi Lukas,

I believe you must have misunderstood. What I meant by "since my points are void ..." is:

Since the suggestions/comments I gave above are void/has become redundant ...

To my knowledge there is not a version available, where you can compute the waves without including the air. It would, however, be a very nice contribution.

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.
ngj is offline   Reply With Quote

Old   December 3, 2013, 04:27
Default
  #655
New Member
 
Lukas
Join Date: Oct 2013
Location: Germany
Posts: 6
Rep Power: 3
Luke92 is on a distinguished road
Ahh ok. That would have been too nice. Then I had it simply misunderstood.
Thanks anyway

Regards - Lukas
Luke92 is offline   Reply With Quote

Old   December 3, 2013, 11:39
Default StreamFunction Wave Theory
  #656
New Member
 
Lukas
Join Date: Oct 2013
Location: Germany
Posts: 6
Rep Power: 3
Luke92 is on a distinguished road
Hi Niels,

One more question. This time relating to the StreamFunction Wave Theory.

Code:
+++ Example - setWaveParameters +++ 
// Currently not working  


+++ Example - Running +++ 
waveType   streamFunction; 
omega      <scalar>; 
depth      <scalar>; 
phi        <scalar>; 
waveNumber <vector>; 
uBar       <scalar>; 
N         <scalar>; 
A         <scalarField>; 
B         <scalarField>; 
Tsoft     <scalar>; // Not required 
Tstart    <scalar>; // Not required (Default 0.0); 
Tend      <scalar>; // Not required (Default GREAT);
Is there a more detailed description of the parameters 'A', 'B', 'uBar' and 'N'?
N probably stands for the Order, but what about the others?
Luke92 is offline   Reply With Quote

Old   December 3, 2013, 12:12
Default
  #657
New Member
 
Ed Ransley
Join Date: Jul 2012
Posts: 29
Rep Power: 5
Ed R is on a distinguished road
Dear Luke,

May I direct you to the MATLAB script written by Niels which may answer your recent question. It should be located at /waves2Foam/ applications/utilities/misc/matlab/preporocessing

I hope this helps.

Ed
Ed R is offline   Reply With Quote

Old   December 12, 2013, 03:08
Default
  #658
New Member
 
thejaraju
Join Date: Dec 2010
Posts: 8
Rep Power: 6
thejaraju is on a distinguished road
Hi rita did you get the solution for how to solve the
PISOControls.H:3:15: warning: unused variable ‘nOuterCorr’

If so please help me out

regards

Thanks in advance

Theja
thejaraju is offline   Reply With Quote

Old   December 13, 2013, 21:33
Default
  #659
New Member
 
Ivy
Join Date: Sep 2013
Location: Singapore
Posts: 16
Rep Power: 3
Ivy Zhou is on a distinguished road
Hi, Niels and anyone who willing to help

Thanks very much,Niels, to your great efforts to create waves2foam and answering questions here.

I am really new and using openfoam 2.2.1 on ubuntu to create 2nd Order stokes waves. I am trying to follow instructions from your wiki link http://openfoamwiki.net/index.php/Contrib/waves2Foam from part 3. Application.
However I am wondering:
1.for3.3, To which directory should I copy the folder interFoam to (witha new folder named waveFoam)? I tried to paste it in /opt/openfoam221/applications/solvers, however I was told 'permission denied'
Or can I just post it in home/username/openFoam?

2. For 3.2, this command
cp -r $WM_PROJECT_DIR/applications/solvers/multiphase/interFoam/interDyMFoam $WM_PROJECT_USER_DIR/applications/solvers/waves2Foam/applications/solvers/solvers17/waveFoam/ the waves2Foam should be newly created by me? I didnt see it existing and when i do mkdir waves2Foam in solvers, I was told again 'permission denied'. It seems that I just cannt do anything inside $WM_PROJECT_DIR

3. I notice that I need to add '-lwaves2Foam' in make/options
I am wondering how the library waves2Foam is created? and located in which file?

Sorry that I might have asked really naive questions. But it really bothers me for 2 days and I cant make any effective progess.
Any help will be really appreciated

Ivy

Last edited by wyldckat; December 14, 2013 at 19:16. Reason: removed broken font formatting text
Ivy Zhou is offline   Reply With Quote

Old   December 15, 2013, 12:27
Default
  #660
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings to all!

@thejaraju:
Quote:
Originally Posted by thejaraju View Post
PISOControls.H:3:15: warning: unused variable ‘nOuterCorr’
It's only a warning, it's not an error, therefore that is not a problem. I'll quote myself from a post I made back in 2010 :
Quote:
Originally Posted by wyldckat View Post
Those warnings are actually normal. AFAIK, those solvers use header files that are common to various solvers and not all solvers use those variables, therefore it triggers warning messages on those that don't use them.
As for the specific problem you're having, I'll explain on the other thread you posted at: problem in making a new solver!!! - namely regarding post #20

Best regards,
Bruno
wyldckat 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 2 October 26, 2013 04:33
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 11: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 06:50.