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

Setting up a transient case with laminar incompressible flow

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 14, 2019, 06:41
Default Setting up a transient case with laminar incompressible flow
  #1
New Member
 
Join Date: Apr 2019
Posts: 12
Rep Power: 7
VentinS is on a distinguished road

Dear Foamers,

I am trying to set up a transient case. The velocity is slow: Re =17
The mesh is a 3D Mesh, basically a U-shaped channel. I never tried to solve a case in openFoam with transient conditions.
My setup is:
U:
Inlet : (0 -0.0076 0), everything else 0
p:
Outlet: fixedValue 0;
In the controldict:
adjustTimeStep is activated
max Co 1,
Solver is the pimpleFoam in the Piso-mode

What I am trying to achieve is something like that:
https://www.youtube.com/watch?v=jx3DQn33MHE

But the time steps are getting smaller and smaller my deltaT is about 1e-10.
And when I deactivate the maxCo and the timesteps, the courant number rises.
And the velocity profile doesn’t look like the video at all.
Shall I wait or is everything wrong?
Kind regards
VentinS is offline   Reply With Quote

Old   May 14, 2019, 07:01
Default
  #2
Senior Member
 
anonymous
Join Date: Jan 2016
Posts: 416
Rep Power: 14
simrego is on a distinguished road
Hi!


Your outlet is a zeroGradient for U and the inlet is zeroGradient for p?
Try to use a bit smaller Co (maybe 0.8-0.9) to be sure you wont exceed 1.
What about your mesh? Run a checkMesh so if you have a really poor mesh it'll complaining!
simrego is offline   Reply With Quote

Old   May 14, 2019, 08:20
Default
  #3
New Member
 
Join Date: Apr 2019
Posts: 12
Rep Power: 7
VentinS is on a distinguished road
Hey,

Quote:
Originally Posted by simrego View Post


Your outlet is a zeroGradient for U and the inlet is zeroGradient for p?

Yeah, exactly, I've checked


Quote:
Originally Posted by simrego View Post
Try to use a bit smaller Co (maybe 0.8-0.9) to be sure you wont exceed 1.

Ok, I set the maxCo =0.8 but the timesteps are still getting smaller...



Quote:
Originally Posted by simrego View Post
What about your mesh? Run a checkMesh so if you have a really poor mesh it'll complaining!

The Mesh is OK and the steady state worked fine...
VentinS is offline   Reply With Quote

Old   May 14, 2019, 08:34
Default
  #4
Senior Member
 
anonymous
Join Date: Jan 2016
Posts: 416
Rep Power: 14
simrego is on a distinguished road
Can you share your case?
I'm out of guesses, and if no one will give you the right hint, I'll check it. It doesn't seems to be a hell complicated case.
simrego is offline   Reply With Quote

Old   May 15, 2019, 05:25
Default
  #5
New Member
 
Join Date: Apr 2019
Posts: 12
Rep Power: 7
VentinS is on a distinguished road
Yeah sure,


It would be wonderful, because I am pretty stuck....


https://www.dropbox.com/s/m9kr4vzsm9...Daily.zip?dl=0


Thanks!
VentinS is offline   Reply With Quote

Old   May 16, 2019, 04:40
Default
  #6
Senior Member
 
Robert
Join Date: May 2015
Location: Bremen, GER
Posts: 292
Rep Power: 12
RobertHB is on a distinguished road
Try inletOutlet for your velocity outlet condition.
__________________
If you liked my answer to your question, please consider leaving a "Like" in return
RobertHB is offline   Reply With Quote

Old   May 16, 2019, 06:29
Default
  #7
New Member
 
Join Date: Apr 2019
Posts: 12
Rep Power: 7
VentinS is on a distinguished road
Hey,
I've tried it but the deltaT ist still around 2e-7.


Maybe I should start with a 2D case first....
VentinS is offline   Reply With Quote

Old   May 16, 2019, 06:35
Default
  #8
Senior Member
 
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,290
Rep Power: 34
arjun will become famous soon enougharjun will become famous soon enough
Quote:
Originally Posted by VentinS View Post
Yeah sure,


It would be wonderful, because I am pretty stuck....


https://www.dropbox.com/s/m9kr4vzsm9...Daily.zip?dl=0


Thanks!



i opened the mesh and it shows very very small volume of 1E-18 m3 types. Also does it really have those crumbles on the surface as this image shows.
Attached Images
File Type: jpeg img.jpeg (42.4 KB, 17 views)
arjun is offline   Reply With Quote

Old   May 16, 2019, 07:34
Default
  #9
New Member
 
Join Date: Apr 2019
Posts: 12
Rep Power: 7
VentinS is on a distinguished road
hmm.. I guess this small volumes are the result from trying to flatten the mesh in icem and also this crumbles. I guess I was lucky, that steady case worked...


But even when I chop off the unstructured part, the result remains the same.


Here is the "short" version, if it helps:


https://www.dropbox.com/s/3b47zh3xs7...short.zip?dl=0
VentinS is offline   Reply With Quote

Old   May 16, 2019, 17:12
Default
  #10
Senior Member
 
anonymous
Join Date: Jan 2016
Posts: 416
Rep Power: 14
simrego is on a distinguished road
Hi!


Sorry for the late answer.
So I checked your case. inletOutlet can be a bit dangerous. You can have really unphysical results.
Your 1st case seems to be really weird. I mean the mesh. Also the max nonorthogonality is ~83 if i remember well, which is pretty high.
But I think the mesh is also problematic in the second case you provided. It seems to be nice, checkmesh -> no error, but my first guess was that the mesh is bad. So i made a really fast rubbish mesh with snappyHexMesh, and the case ran perfectly as it should.
I suggest you to recreate the mesh. Try to create a simpler mesh, or just a coarser one, and if it works refine it.
I also made some modifications in the files. You can find your modified case in the following link.

https://drive.google.com/file/d/1cV5...ew?usp=sharing


Again!!! This mesh is really ugly, and you should doublecheck everything in the provided case, maybe i did some silly thing, but it is working without any problems for me.
You should tighten the tolerances, etc. Also there is a comment in the fvSolution file, I haven't used the foundation OF for a long time and i had no more time for that so sorry for the crap case.
simrego is offline   Reply With Quote

Old   May 19, 2019, 13:26
Default
  #11
New Member
 
Join Date: Apr 2019
Posts: 12
Rep Power: 7
VentinS is on a distinguished road
Thank you soooooo much!



I guess I was lucky that the steady case worked.

I'll try and report you back


And again sorry for your trouble!!!!!!!!!!!
VentinS 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
Setting up a case for a plane plate in a longitudinal flow Chronique OpenFOAM Running, Solving & CFD 0 October 9, 2014 15:17
Ratio of eddy viscosity to molecular viscosity : Laminar or turbulent flow? JuPa CFX 7 September 9, 2013 08:45
Cells with t below lower limit Purushothama Siemens 2 May 31, 2010 22:58
incompressible flow over laminar plate varunjain89 Main CFD Forum 1 March 4, 2010 07:58
3D Incompressible turbulent flow validation case Yu Main CFD Forum 2 April 4, 2008 04:13


All times are GMT -4. The time now is 21:20.