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

0 Folder for a dsmcFoam simulation

Register Blogs Community New Posts Updated Threads Search

Like Tree9Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 19, 2014, 00:00
Default
  #41
j3r
New Member
 
Join Date: Jun 2012
Posts: 11
Rep Power: 14
j3r is on a distinguished road
Hi Wenjie,

Yes, it seems to work fine for me now. Was actually not that complicated once I figured out the syntax. Basically you can just copy the VHS sub-model, rename everything to VSS in the .C and .H file and in the .C file adjust the collision diameter and deflection angle according to the VSS model. Just check Bird or this paper for the details:
http://scitation.aip.org/content/aip....1063/1.858184

Of course you will also have to adjust some of the other files so that you can e.g. write alpha for each molecule into your dsmcProperties file and that dsmc knows that there is a new binary collision model (was in makeInflowModel.C or so I think). But which ones I would also have to look up, it's been a while since I worked on it. When you compile your code the error messages will tell you what is missing, e.g. if there are unknown variables that you have to define in another file or so.

Regards,
j3r
j3r is offline   Reply With Quote

Old   August 19, 2014, 05:29
Default
  #42
New Member
 
wenjie
Join Date: Dec 2012
Posts: 12
Rep Power: 14
wenjie is on a distinguished road
Quote:
Originally Posted by j3r View Post
Hi Wenjie,

Yes, it seems to work fine for me now. Was actually not that complicated once I figured out the syntax. Basically you can just copy the VHS sub-model, rename everything to VSS in the .C and .H file and in the .C file adjust the collision diameter and deflection angle according to the VSS model. Just check Bird or this paper for the details:
http://scitation.aip.org/content/aip....1063/1.858184

Of course you will also have to adjust some of the other files so that you can e.g. write alpha for each molecule into your dsmcProperties file and that dsmc knows that there is a new binary collision model (was in makeInflowModel.C or so I think). But which ones I would also have to look up, it's been a while since I worked on it. When you compile your code the error messages will tell you what is missing, e.g. if there are unknown variables that you have to define in another file or so.

Regards,
j3r
Thanks j3r, that's also what I thought. According to Bird's book, I should only change the deflection angle and the collision diameter to include alpha, the rest should be the same. Since in my case the diffusion is important, VSS is indeed necessary. I will also try to post my results here.

Cheers,
Wenjie
wenjie is offline   Reply With Quote

Old   August 19, 2014, 08:00
Default
  #43
j3r
New Member
 
Join Date: Jun 2012
Posts: 11
Rep Power: 14
j3r is on a distinguished road
Hi Wenjie,

Yes, that's right. Even though there are different equations to calculate the collision cross section. But they should all result in same value (more or less).

You will probably also be interested in this paper:
http://www.sciencedirect.com/science...09250913007252

Regards,
j3r
j3r is offline   Reply With Quote

Old   May 2, 2018, 06:00
Default
  #44
New Member
 
Sadegh
Join Date: Nov 2017
Posts: 5
Rep Power: 9
Sadegh yousefi is on a distinguished road
Hi.please help me.how calculate concentration in dsmcfoam?
Sadegh yousefi is offline   Reply With Quote

Old   May 18, 2018, 08:52
Default
  #45
ano
Member
 
ano
Join Date: Jan 2017
Location: Delft
Posts: 58
Rep Power: 10
ano is on a distinguished road
Hi Sadegh,

which version of dsmcFoam are you using?

In the official dsmcFoam version you can add to your controlDict
Code:
dsmcFields1
    {
        type            dsmcFields;
        libs            ("liblagrangianFunctionObjects.so");
        writeControl    writeTime;
    }
Then you should get the number density field rhoN and mass density rhoM for the different species, from these you can calculate the concentrations.

(Much more fields are calculated, if you use dsmcFoamPlus , to go through the part of this code in which the calculations are conducted (in order to understand what the fields are) is a pain though.)
Sadegh yousefi likes this.
ano is offline   Reply With Quote

Old   May 20, 2018, 13:11
Default
  #46
New Member
 
Sadegh
Join Date: Nov 2017
Posts: 5
Rep Power: 9
Sadegh yousefi is on a distinguished road
Dear ano
Hi.i am using to dsmcfoam version 5.0
Sadegh yousefi is offline   Reply With Quote

Old   May 21, 2018, 00:53
Default
  #47
New Member
 
Sadegh
Join Date: Nov 2017
Posts: 5
Rep Power: 9
Sadegh yousefi is on a distinguished road
Hi ano
Please help me again.how to get the concentration from rhoN and rhoM?
Sadegh yousefi is offline   Reply With Quote

Old   June 9, 2021, 07:19
Default Please could you update the attached link
  #48
New Member
 
Samir
Join Date: May 2012
Posts: 14
Rep Power: 14
samegypt is on a distinguished road
Quote:
Originally Posted by alberto View Post
You find a description of the fields in the documentation of the DsmcCloud class:

http://foam.sourceforge.net/docs/cpp/a00438.html

To clarify your confusion about rhoN and dsmcRhoN, notice that rhoN is the number density (the actual one), while dsmcRhoN is the number density of the DSMC particles.

Best,



Please I would like to find a description of the fields, could you update the attached link, because it is not working



http://foam.sourceforge.net/docs/cpp/a00438.html
samegypt is offline   Reply With Quote

Old   June 9, 2021, 08:45
Default
  #49
ano
Member
 
ano
Join Date: Jan 2017
Location: Delft
Posts: 58
Rep Power: 10
ano is on a distinguished road
Now it is here for dsmcFOAM. And for dsmcFoamPLus here.



But it is always best to go to your src (type 'src') and then grep for what you are looking for:
Code:
grep -rH rhoN .
That lists all files in which rhoN appears and you can pick the one you need.
ano is offline   Reply With Quote

Old   October 24, 2021, 05:15
Default the number of particles entering the inlet and the number of particles escaping from
  #50
New Member
 
wcs
Join Date: Mar 2021
Posts: 8
Rep Power: 5
bhwcs is on a distinguished road
Does anyone know how to determine the number of particles entering the inlet and the number of particles escaping from the inlet in DSMCFOAM? thanks!
bhwcs is offline   Reply With Quote

Reply

Tags
boundary conditions, dsmcfoam, initial conditions, openfoam dsmcfoam dsmc


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
Why my simulation not agree with the wind tunnel experiment zhaowei CFX 4 July 11, 2015 04:36
Solar Radiation in OpenFOAM plainstyle OpenFOAM Running, Solving & CFD 15 July 8, 2014 05:43
Simulation of a complex wing in solidworks flow simulation niels1900 FloEFD, FloWorks & FloTHERM 6 April 20, 2011 11:44
Continuous vs interrupted simulation sega OpenFOAM Running, Solving & CFD 4 November 3, 2008 15:29
strange simulation error Ralf Schmidt FLUENT 2 May 4, 2007 14:02


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