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

Inlet Boundary conditions for pressure driven flow in DSMC

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 6, 2012, 07:25
Default Inlet Boundary conditions for pressure driven flow in DSMC
  #1
New Member
 
Jesús González Serrano
Join Date: Nov 2011
Posts: 8
Rep Power: 15
Jesgonse is on a distinguished road
I have been lately trying to program inlet boundary conditions in order to solve a test case.

The boundary conditions implemented are described in the following papers:

http://www.sciencedirect.com/science...42727X04000426

http://www.mae.wmich.edu/faculty/lio..._JCMES2000.PDF

I used as a base the Freestream.H and Freestream.C files and I modified them in order to implement the stated inflow conditions.
As well I modified the cloud in order to calculate velocity, temperature (only translational because I run the test case for Neon) and pressure at each time step because it is needed by the inflow model.

The following problems appeared when I compiled and run the test case:

1. In the inlet, after a couple of steps, I obtain negative velocities. Even forcing in the initialisation that all molecules have positive velocities, after few steps velocities in the inlet turn negative. It happens always and I haven't found any reasonable explanation.

2. When using the velocity distribution for entering molecules from the papers, wrong pressure profiles are obtained. But when leaving the original velocity treatment promising results are obtained.

As well an approach in order to calculate self-diffusion coefficient (I am not really sure about this one) and viscosity in each step is done.

CASE 1: Leaving the original velocity distribution for entering molecules
http://dl.dropbox.com/u/44385545/CASE-1.zip

CASE 2: Using the distribution velocity for entering from the papers
http://dl.dropbox.com/u/44385545/CASE-2.zip

I hope anyone has any idea, I think it is really interesting if we could obtain proper boundary conditions to simulate pressure driven flows with OpenFoam.

Last edited by Jesgonse; June 6, 2012 at 10:48.
Jesgonse is offline   Reply With Quote

Old   June 6, 2012, 11:07
Default
  #2
New Member
 
Jesús González Serrano
Join Date: Nov 2011
Posts: 8
Rep Power: 15
Jesgonse is on a distinguished road
Case 1: Pressure

pressure.png

case 1: Temperature

T.png

case 1: X-velocity

velocity.png
Jesgonse is offline   Reply With Quote

Old   June 6, 2012, 11:29
Default
  #3
Disabled
 
Join Date: Mar 2011
Posts: 174
Rep Power: 15
anon_a is on a distinguished road
I am generally interested and have been working on such flows for some time.
Currently, I don't have enough time to check the paper and discuss the BCs but I would suggest that you check your time step.

If the time step is too large, molecules enter in pulses, while they are supposed to enter in a continuous fashion in time.

If you inject them all together in sparsely distributed times, the number of injecting molecules will be unrealistically high and a large part of them will exit the boundaries very fast. This may be why you witness this effect (at least this is what I have seen in the original dsmcFoam code).

Let me know if there are any changes with a smaller time step.
anon_a is offline   Reply With Quote

Old   February 1, 2014, 03:28
Default
  #4
New Member
 
Javad
Join Date: Aug 2013
Location: Iran
Posts: 8
Rep Power: 13
javad1404 is on a distinguished road
Hi
Could you solve your problem?
javad1404 is offline   Reply With Quote

Old   February 1, 2014, 03:32
Default
  #5
New Member
 
Javad
Join Date: Aug 2013
Location: Iran
Posts: 8
Rep Power: 13
javad1404 is on a distinguished road
Quote:
Originally Posted by Jesgonse View Post
I have been lately trying to program inlet boundary conditions in order to solve a test case.

The boundary conditions implemented are described in the following papers:

http://www.sciencedirect.com/science...42727X04000426

http://www.mae.wmich.edu/faculty/lio..._JCMES2000.PDF

I used as a base the Freestream.H and Freestream.C files and I modified them in order to implement the stated inflow conditions.
As well I modified the cloud in order to calculate velocity, temperature (only translational because I run the test case for Neon) and pressure at each time step because it is needed by the inflow model.

The following problems appeared when I compiled and run the test case:

1. In the inlet, after a couple of steps, I obtain negative velocities. Even forcing in the initialisation that all molecules have positive velocities, after few steps velocities in the inlet turn negative. It happens always and I haven't found any reasonable explanation.

2. When using the velocity distribution for entering molecules from the papers, wrong pressure profiles are obtained. But when leaving the original velocity treatment promising results are obtained.

As well an approach in order to calculate self-diffusion coefficient (I am not really sure about this one) and viscosity in each step is done.

CASE 1: Leaving the original velocity distribution for entering molecules
http://dl.dropbox.com/u/44385545/CASE-1.zip

CASE 2: Using the distribution velocity for entering from the papers
http://dl.dropbox.com/u/44385545/CASE-2.zip

I hope anyone has any idea, I think it is really interesting if we could obtain proper boundary conditions to simulate pressure driven flows with OpenFoam.
Hi Jesgonse
Could you solve your problem?
If so, would you please guide how I can apply these BCs in dsmcFoam?
How should I change FreeStream?
By the way I'm a newbie in C++. Please help me.
Thanks in advance
javad1404 is offline   Reply With Quote

Old   October 3, 2014, 10:52
Default is the problem solved??
  #6
New Member
 
Join Date: May 2014
Posts: 1
Rep Power: 0
jmjk is on a distinguished road
hey Jesgonse

I too am facing a similar problem. Did you find any solution to this problem?
Please do enlighten me with the solution.
jmjk is offline   Reply With Quote

Reply

Tags
boundary condition, dsmc openfoam dsmcfoam, dsmcfoam, openfoam


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
Domain Reference Pressure and mass flow inlet boundary AdidaKK CFX 75 August 20, 2018 06:37
Proper Pressure Boundary Conditions for Buoyant Flow mchurchf OpenFOAM 0 March 25, 2010 13:16
steam flow in a pipe driven by a pressure gradient between inlet and outlet SalvoCalvo COMSOL 0 March 11, 2010 07:52
Pulsating flow with non-reflective inlet boundary cc1000 CFX 6 April 27, 2009 09:10
New topic on same subject - Flow around race car Tudor Miron CFX 15 April 2, 2004 07:18


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