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

groovyBC + sinusoidial waves

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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 3, 2011, 01:21
Default groovyBC + sinusoidial waves
  #1
New Member
 
Axel Mohr
Join Date: Mar 2009
Location: Kiel, Schleswig-Holstein, Germany
Posts: 24
Rep Power: 8
alexm is on a distinguished road
Hello togeher ...
maybe this ist a simple question, but nevertheless I am al little confused about and hope someone could help me.

I woluld like to use the groovyBC for the creation of a sinusoidial water wave ... and later for a standing wave ... first in 2dim.
At this point it is more or less a question for me of understanding, how to deal with this kind of boundaray conditition ...

Thanks in advance ...
Axel
alexm is offline   Reply With Quote

Old   September 5, 2011, 05:48
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,915
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by alexm View Post
Hello togeher ...
maybe this ist a simple question, but nevertheless I am al little confused about and hope someone could help me.

I woluld like to use the groovyBC for the creation of a sinusoidial water wave ... and later for a standing wave ... first in 2dim.
At this point it is more or less a question for me of understanding, how to deal with this kind of boundaray conditition ...

Thanks in advance ...
Axel
You've got to be a bit more specific: what kind of waves? Accoustic? Water waves? ....

Basically write the boundary conditions down on a piece of paper. That is the difficult part. Implementing them in groovyBC ist pretty straightforward.

There is an example case groovyWaveTank floating around somewhere. I understand that it doesn't work with the latest versions of OF, but it might give you an idea
gschaider is offline   Reply With Quote

Old   September 11, 2011, 03:11
Default
  #3
New Member
 
Axel Mohr
Join Date: Mar 2009
Location: Kiel, Schleswig-Holstein, Germany
Posts: 24
Rep Power: 8
alexm is on a distinguished road
Thanks for your answer. I would like to use the groovyBC for the generation of water waves in a wave tank.
I've found the "groovyWaveTank case" you mentioned and got it working for OpenFOAM 2.0.x. ... but I still have problems in understanding the syntax of the "value expression" part. Normaly at this point I reduce a problem to something I am more familiar with. So my idea of generating sinusoidial water wave with the groovyBC.

there seems to be three parts in the value expression " .... ? ... : ... " ... the first one seems to describe the wave as a scalar, the second as a vector .... standing for the propagation of the wave in each direction (?). But playing with this didn't bring me very far.

Any hint for me? Thanks again and have a nice weekend!

Greetings ... Axel
alexm is offline   Reply With Quote

Old   September 11, 2011, 05:04
Default
  #4
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,915
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by alexm View Post
Thanks for your answer. I would like to use the groovyBC for the generation of water waves in a wave tank.
I've found the "groovyWaveTank case" you mentioned and got it working for OpenFOAM 2.0.x. ... but I still have problems in understanding the syntax of the "value expression" part. Normaly at this point I reduce a problem to something I am more familiar with. So my idea of generating sinusoidial water wave with the groovyBC.

there seems to be three parts in the value expression " .... ? ... : ... " ... the first one seems to describe the wave as a scalar, the second as a vector .... standing for the propagation of the wave in each direction (?). But playing with this didn't bring me very far.

Any hint for me? Thanks again and have a nice weekend!

Greetings ... Axel
This is the conditional operator described in
http://openfoamwiki.net/index.php/Co...e_implemented:

Basically "a ? b : c" means "if a is true in a face then use b else use c"
gschaider is offline   Reply With Quote

Old   September 13, 2011, 10:02
Default
  #5
New Member
 
Axel Mohr
Join Date: Mar 2009
Location: Kiel, Schleswig-Holstein, Germany
Posts: 24
Rep Power: 8
alexm is on a distinguished road
thanks for your help ...
this seems to be one more thing of the "I should have known" type ...
alexm is offline   Reply With Quote

Old   September 14, 2011, 04:46
Default
  #6
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,915
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by alexm View Post
thanks for your help ...
this seems to be one more thing of the "I should have known" type ...
I say to you what I say to everyone: the "documentation" on the Wiki is not sacrosanct. Should you have the feeling that this information is missing or too hard to find feel free to rewrite the relevant stuff
gschaider is offline   Reply With Quote

Reply

Tags
groovybc

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
groovyBC and funkySetFields married and got a kid named swak4Foam gschaider OpenFOAM 164 January 13, 2015 03:52
groovyBC and Eqn.setReference() benk OpenFOAM 3 June 2, 2011 08:49
WAVES GENERATION IN A PORT OR BRAKE WAVES. important tecnicaf1 STAR-CCM+ 1 May 27, 2011 07:32
CFD Animations of breaking waves Dommermuth Main CFD Forum 0 June 17, 2009 11:47
Terrible Mistake In Fluid Dynamics History Abhi Main CFD Forum 12 July 8, 2002 09:11


All times are GMT -4. The time now is 20:03.