|
[Sponsors] |
September 3, 2011, 02:21 |
groovyBC + sinusoidial waves
|
#1 |
New Member
Axel Mohr
Join Date: Mar 2009
Location: Kiel, Schleswig-Holstein, Germany
Posts: 24
Rep Power: 17 |
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 |
|
September 5, 2011, 06:48 |
|
#2 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
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 |
||
September 11, 2011, 04:11 |
|
#3 |
New Member
Axel Mohr
Join Date: Mar 2009
Location: Kiel, Schleswig-Holstein, Germany
Posts: 24
Rep Power: 17 |
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 |
|
September 11, 2011, 06:04 |
|
#4 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
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" |
||
September 13, 2011, 11:02 |
|
#5 |
New Member
Axel Mohr
Join Date: Mar 2009
Location: Kiel, Schleswig-Holstein, Germany
Posts: 24
Rep Power: 17 |
thanks for your help ...
this seems to be one more thing of the "I should have known" type ... |
|
September 14, 2011, 05:46 |
|
#6 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
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
|
|
Tags |
groovybc |
|
|
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 04:30 |
gravitational waves and capillary waves | astroam | COMSOL | 0 | August 15, 2015 17:49 |
gravitational waves and capillary waves | astroam | COMSOL | 0 | August 1, 2015 11:38 |
[swak4Foam] groovyBC setting different directions for waves and velocity profile | kilroy | OpenFOAM Community Contributions | 1 | August 2, 2013 07:00 |
WAVES GENERATION IN A PORT OR BRAKE WAVES. important | tecnicaf1 | STAR-CCM+ | 1 | May 27, 2011 08:32 |