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

CrankNicholson returns wrong dimensions and sound speed when mesh is moving

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 23, 2009, 09:42
Default Hi, I've found that the fvc
  #1
Member
 
lillberg's Avatar
 
Eric Lillberg
Join Date: Mar 2009
Location: Stockholm
Posts: 80
Rep Power: 17
lillberg is on a distinguished road
Send a message via Skype™ to lillberg
Hi,

I've found that the fvc::ddtPhiCorr(rUA, rho, U, phi) function returns wrong dimensions for CrankNicholson when the mesh is moving.

Also, the sound speed is approx. half the physical value for an planar acoustic wave when the mesh is moving and CN is used. Has nothing to do with ddtPhiCorr.

Looking at the source it seems that the handling of moving meshes is quite different from e.g. backward.

All other time schemes works Ok.

If mesh.update() is removed from the application code everything works fine.

Best regards

/Eric
lillberg is offline   Reply With Quote

Old   February 23, 2009, 10:40
Default Which version of OpenFOAM are
  #2
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 22
henry is on a distinguished road
Which version of OpenFOAM are you running and which solver?

H
henry is offline   Reply With Quote

Old   February 23, 2009, 12:44
Default Sorry, not used to posting bug
  #3
Member
 
lillberg's Avatar
 
Eric Lillberg
Join Date: Mar 2009
Location: Stockholm
Posts: 80
Rep Power: 17
lillberg is on a distinguished road
Send a message via Skype™ to lillberg
Sorry, not used to posting bugs ;-)

Latest git version

Home made solver for FSI using the couple manager



/Eric
lillberg is offline   Reply With Quote

Old   February 23, 2009, 12:47
Default I didn't get the code truough
  #4
Member
 
lillberg's Avatar
 
Eric Lillberg
Join Date: Mar 2009
Location: Stockholm
Posts: 80
Rep Power: 17
lillberg is on a distinguished road
Send a message via Skype™ to lillberg
I didn't get the code truough but I'm pretty sure you could reproduce the problem by introducing a dynamicFvMesh and a mesh.update() in for example the coodles code.

/Eric
lillberg is offline   Reply With Quote

Old   February 23, 2009, 14:53
Default Yepp, changing your ordinary c
  #5
Member
 
lillberg's Avatar
 
Eric Lillberg
Join Date: Mar 2009
Location: Stockholm
Posts: 80
Rep Power: 17
lillberg is on a distinguished road
Send a message via Skype™ to lillberg
Yepp, changing your ordinary coodles code by adding a dynamicFvMesh and doing mesh.update() at the same time as using CN timeScheme reproduces the bug.

I ran it on a simple 2D channel with slip walls, waveTransmissive outlet, an oscillating inlet velocity at 100 Hz and air as medium. The fvcDdtPhiCorr returns wrong dimensions, and if it's commented out the soundspeed is reduced to half its physical value.

/Eric
lillberg is offline   Reply With Quote

Old   April 29, 2009, 06:24
Default
  #6
Member
 
lillberg's Avatar
 
Eric Lillberg
Join Date: Mar 2009
Location: Stockholm
Posts: 80
Rep Power: 17
lillberg is on a distinguished road
Send a message via Skype™ to lillberg
Hi Henry,

Any news on this bug?

/Eric
lillberg is offline   Reply With Quote

Old   May 4, 2009, 18:53
Default
  #7
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 22
henry is on a distinguished road
Eric,

I haven't forgotten, it is still on my list of things to do and I will deal with it shortly.

H
henry 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
speed of sound panel in VOF model bohis FLUENT 2 February 20, 2009 11:36
Abt: the speed of sound in incompressible flows jinwon park Main CFD Forum 3 August 21, 2008 21:44
negative speed of sound Bearcat Main CFD Forum 5 August 6, 2008 13:55
wrong dimensions when reading mesh file stella FLUENT 3 October 12, 2005 13:30
Sound Speed Extimation jkl FLUENT 0 June 9, 2003 07:06


All times are GMT -4. The time now is 14:24.