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

[swak4Foam] groovyBC + sinusoidial waves

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

Reply
 
LinkBack Thread Tools Search this Thread 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: 17
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: 4,225
Rep Power: 51
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: 17
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: 4,225
Rep Power: 51
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: 17
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: 4,225
Rep Power: 51
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 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
[swak4Foam] Change in alpha and U with groovyBC in twoPhaseEulerFoam dani2702 OpenFOAM Community Contributions 0 November 17, 2016 03:30
gravitational waves and capillary waves astroam COMSOL 0 August 15, 2015 16:49
gravitational waves and capillary waves astroam COMSOL 0 August 1, 2015 10:38
[swak4Foam] groovyBC setting different directions for waves and velocity profile kilroy OpenFOAM Community Contributions 1 August 2, 2013 06:00
WAVES GENERATION IN A PORT OR BRAKE WAVES. important tecnicaf1 STAR-CCM+ 1 May 27, 2011 07:32


All times are GMT -4. The time now is 23:25.