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

unexpected wiggles in Ux in very simple piston motion

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 20, 2016, 08:49
Default unexpected wiggles in Ux in very simple piston motion
  #1
New Member
 
Olaf Schiemann
Join Date: Feb 2016
Posts: 10
Rep Power: 10
oschi is on a distinguished road
Hello,
I am asking for help with unexpected wiggles in the Ux solution of a horizontally moving piston (pimpleDyMFoam solver).

The attached case simulates the motion of a piston on the right side of the model domain with a velocity ramp from (0 0 0) to (1 0 0) over the duration of 3ms.
The left side is set to pressureInletOutletVelocity/totalPressure. (For other details please ask or check the attached case.)

I am expecting a constant velocity profile, but results show strong oscillations of Ux:


Is it possible to change boundary conditions or solver to get rid of the wiggles? I have tried a compressible solver (rhoPimpleDyMFoam) as well with the same problem. The aim is to solve the flow inside a closed volume which may or may not have inlets and outlets. Without inlets/outlets, of course a compressible solver will be used, otherwise both compressible or incompressible solvers can be tried.

Greetings
Olaf
Attached Images
File Type: png Ux.png (23.2 KB, 45 views)
Attached Files
File Type: zip piston.zip (26.5 KB, 5 views)
oschi is offline   Reply With Quote

Old   February 21, 2016, 11:25
Default
  #2
New Member
 
Jakob
Join Date: Jul 2015
Posts: 3
Rep Power: 10
jakob15 is on a distinguished road
Hi Olaf,
you have fixed the velocity at the outlet. Better fix the velocity at the inlet, which is known in this case, and use outlet conditions on the right side.

Other solutions to remove the oscillations are to run potentialFoam to start with a converged solution or to use "internalField (1 0 0)" as initial condition for U or to increase the fluid viscosity and solve for a longer time period until the oscillations decay.

Jakob
jakob15 is offline   Reply With Quote

Old   February 22, 2016, 11:49
Default
  #3
New Member
 
Olaf Schiemann
Join Date: Feb 2016
Posts: 10
Rep Power: 10
oschi is on a distinguished road
Hello Jakob,
I have tried to follow your suggestions.
1) The constant zero velocity field chosen as U internalField actually is the correct solution at time t=0, because I apply a velocity ramp from 0...1 m/s to the piston on the right side. For this reason the results are worse, if I initialise with U=(1 0 0), and potentialFoam changes nothing.
2) Applying the known velocity at the inlet and setting p=0, zerogradient U at the outlet shifts the wiggles from the right side to the left side. I have attached the case and Ux profile below.
3) Calculating with a higher viscosity helps a little bit, and the relative size of wiggles do shrink if I use a larger endTime, but I urgently need a solution for the given viscosity and given integration time.

Why can't OpenFOAM converge to the correct, known velocity profile (U=const)? What is the numerical reason for the problem?

Greetings
Olaf

Attached Images
File Type: png Ux.png (22.6 KB, 34 views)
Attached Files
File Type: zip piston.zip (6.9 KB, 2 views)
oschi is offline   Reply With Quote

Reply

Tags
dynamic mesh, oscilations


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
ANSYS Workbench on "Uncertified" Linux Distros hsr CFX 289 April 20, 2023 09:23
Piston motion in the cylinder gbrajtm Main CFD Forum 0 December 5, 2014 00:16
Piston Simulation helloworld922 Autodesk Simulation CFD 1 September 9, 2012 22:54
Changing piston motion profile in engineFoam kukikano OpenFOAM Running, Solving & CFD 2 February 23, 2006 08:10
simple rigid body motion UDF Dan FLUENT 0 January 11, 2006 05:48


All times are GMT -4. The time now is 01:05.