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

[swak4Foam] interFoam groovyBC from other data

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 16, 2013, 00:57
Default interFoam groovyBC from other data
  #1
Senior Member
 
Join Date: Jul 2011
Posts: 120
Rep Power: 14
haze_1986 is on a distinguished road
Hi all, I am starting out on a near-field free surface simulation using data from another depth averaged data. I wanted to test out interFoam first with groovyBC feeding in surface elevation and velocities from all 4 boundaries NESW.

I have successfully ran modifying from damBreak and groovyWaveTank and it works fine when there is only one BC from the left and the rest are either empty or zeroGradient. I have tried for both linear Airy and 2nd order Stokes wave with deep water assumptions for the velocities.

When I tried to use groovyBC for both left and right, interFoam crashes, sometimes immediately and sometimes after quite a number of time steps. Am I missing out something here? Please advise, thanks.
haze_1986 is offline   Reply With Quote

Old   May 16, 2013, 05:37
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 haze_1986 View Post
Hi all, I am starting out on a near-field free surface simulation using data from another depth averaged data. I wanted to test out interFoam first with groovyBC feeding in surface elevation and velocities from all 4 boundaries NESW.

I have successfully ran modifying from damBreak and groovyWaveTank and it works fine when there is only one BC from the left and the rest are either empty or zeroGradient. I have tried for both linear Airy and 2nd order Stokes wave with deep water assumptions for the velocities.

When I tried to use groovyBC for both left and right, interFoam crashes, sometimes immediately and sometimes after quite a number of time steps. Am I missing out something here? Please advise, thanks.
I think the problem is not groovyBC but the physics you're trying to impose. For instance setting Dirichlet-conditions on all four boundaries is almost never a good idea as it is bound to violate mass conservation (even if the data you use is "good": numerical inaccuracies are inevitable and will add up)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   May 16, 2013, 08:02
Default
  #3
Senior Member
 
Join Date: Jul 2011
Posts: 120
Rep Power: 14
haze_1986 is on a distinguished road
Quote:
Originally Posted by gschaider View Post
I think the problem is not groovyBC but the physics you're trying to impose. For instance setting Dirichlet-conditions on all four boundaries is almost never a good idea as it is bound to violate mass conservation (even if the data you use is "good": numerical inaccuracies are inevitable and will add up)
While I fully agree on your point, I've narrowed down the issue to setting the inlet to the right hand side. It does not seem to work the way as the left hand inlet, thus causing the crash. I used the same boundary condition except adding a negative sign in front of u-velocity. The left hand BC has been changed to zeroGradient. Am I doing something wrong?
haze_1986 is offline   Reply With Quote

Reply


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
problem with exporting data to Tecplot v.jab OpenFOAM Post-Processing 2 January 11, 2017 08:56
Problem running in parralel Val OpenFOAM Running, Solving & CFD 1 June 12, 2014 02:47
[OpenFOAM] saving data in paraview aylalisa ParaView 3 May 31, 2014 11:38
[General] Warping Cells by Vectors? ronwelty ParaView 10 April 29, 2014 05:52
How to update polyPatchbs localPoints liu OpenFOAM Running, Solving & CFD 6 December 30, 2005 17:27


All times are GMT -4. The time now is 07:09.