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

Running pimpleDyMFoam with groovyBC

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

Like Tree1Likes
  • 1 Post By gschaider

Reply
 
LinkBack Thread Tools Display Modes
Old   August 15, 2013, 19:31
Default Running pimpleDyMFoam with groovyBC
  #1
New Member
 
Join Date: Sep 2010
Posts: 5
Rep Power: 6
lexmatt is on a distinguished road
I am attempting to use groovyBC to control dynamic mesh motion with the solver pimpleDyMFoam.

As a test case, I moved the body with a fixedValue condition on motionU and it worked great. All of the elements in the mesh moved or morphed and maintained good quality.

Then I attempted to use groovyBC and I gave it the same fixed velocity (but I had to use toPoints()) in order to get it to work.

The result is that now only the surface of the body moves and none of the mesh elements move causing that first layer of cells to skew.

I compared the two cases and noticed that when it worked the internalField for meshPhi was non-zero, while for the groovyBC case, it was zero everywhere but at the boundary I was moving.

Does anyone know what I did wrong? Is there a utility I need to run before hand. Did I implement toPoints() incorrectly?

Thanks in advance for your help!

Best,
Matt
Attached Images
File Type: jpg meshMotion.jpg (96.8 KB, 23 views)
lexmatt is offline   Reply With Quote

Old   August 16, 2013, 06:52
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 lexmatt View Post
I am attempting to use groovyBC to control dynamic mesh motion with the solver pimpleDyMFoam.

As a test case, I moved the body with a fixedValue condition on motionU and it worked great. All of the elements in the mesh moved or morphed and maintained good quality.

Then I attempted to use groovyBC and I gave it the same fixed velocity (but I had to use toPoints()) in order to get it to work.

The result is that now only the surface of the body moves and none of the mesh elements move causing that first layer of cells to skew.

I compared the two cases and noticed that when it worked the internalField for meshPhi was non-zero, while for the groovyBC case, it was zero everywhere but at the boundary I was moving.

Does anyone know what I did wrong? Is there a utility I need to run before hand. Did I implement toPoints() incorrectly?

Thanks in advance for your help!

Best,
Matt
Did you change it in cellMotionU AND pointMotionU? Have a look at the movingConeDistorted-example how to do this consistently
immortality likes this.
__________________
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   August 16, 2013, 15:08
Default
  #3
New Member
 
Join Date: Sep 2010
Posts: 5
Rep Power: 6
lexmatt is on a distinguished road
Quote:
Originally Posted by gschaider View Post
Did you change it in cellMotionU AND pointMotionU? Have a look at the movingConeDistorted-example how to do this consistently
Thanks Bernhard!

I was missing the cellMotionUx file.

Best,
Matt
lexmatt 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
parallel error with cyclic BCs for pimpleDyMFoam and trouble in resuming running sunliming OpenFOAM Bugs 21 November 22, 2013 04:38
groovyBC and Eqn.setReference() benk OpenFOAM 3 June 2, 2011 08:49
Running PimpleDyMFoam in parallel paul b OpenFOAM Running, Solving & CFD 8 April 20, 2011 05:21
Statically Compiling OpenFOAM Issues herzfeldd OpenFOAM Installation 21 January 6, 2009 10:38
Kubuntu uses dash breaks All scripts in tutorials platopus OpenFOAM Bugs 8 April 15, 2008 07:52


All times are GMT -4. The time now is 08:15.