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

interFoam groovyBC from other data

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 16, 2013, 00:57
Default interFoam groovyBC from other data
  #1
Member
 
Join Date: Jul 2011
Posts: 92
Rep Power: 6
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: 3,915
Rep Power: 40
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
Member
 
Join Date: Jul 2011
Posts: 92
Rep Power: 6
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

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
Writing/output of simple data into an ASCII-File matthi OpenFOAM Programming & Development 17 July 8, 2015 16:08
IFStream read float point data problem liu OpenFOAM Running, Solving & CFD 0 October 24, 2008 12:14
How to update polyPatchbs localPoints liu OpenFOAM Running, Solving & CFD 6 December 30, 2005 18:27
CFXSolver Error Message using Profile Data on B Tobias CFX 0 August 26, 2005 07:27
Help: visualise scatter data with ensight6 buchal EnSight 2 September 27, 2000 15:39


All times are GMT -4. The time now is 12:00.