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

dsmcFoam: Losing particles at boundaries??

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By anthonygay1812

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 18, 2020, 23:16
Default dsmcFoam: Losing particles at boundaries??
  #1
New Member
 
Anthony Gay
Join Date: Oct 2019
Posts: 17
Rep Power: 6
anthonygay1812 is on a distinguished road
Hello Everyone

I'm running into some errors with dsmcFoam, specifically with properly implementing BC's. I'm working on running a shocktube case but I've created a more simplified example to show my issue.

I'm running a 1D simulation with a zeroGradient BC's with just particles sitting there, but for some reason I seem to be losing particles at the boundaries. I've double checked my implementations of the BC's and just can't figure out whats going on.

I've tried to attach my case but the file is too large, I'm currently working with WSL and git so I think files may not be compressing properly. I went ahead and attached a link to my git hub and a picture of whats going on.

Link to Git: https://github.com/Anthony-Gay/HPC_workspace
Specific Case: https://github.com/Anthony-Gay/HPC_w...dDsmcShockTube

Thank you!

blockMesh File:
Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      blockMeshDict;
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 1;

vertices // places vertices in coordinate plane
(
    (-5 -1 -1)
    (5 -1 -1)
    (5 1 -1)
    (-5 1 -1)
    (-5 -1 1)
    (5 -1 1)
    (5 1 1)
    (-5 1 1)
);

blocks
(
    hex (0 1 2 3 4 5 6 7) (1000 1 1) simpleGrading (1 1 1) // gives labels to vertices and #cells in each dim and there sizes?
);

boundary
(
    sides
    {
        type patch; // patch is generic type for inlet or outlet NOTE: the sides tags correspond to the boundaries specified in the 0 dict
        faces
        (
            (1 2 6 5)
            (0 4 7 3)
        );
    }
    empty
    {
        type empty; // Which faces do not require a solution, compresses to 1D
        faces
        (
            (0 1 5 4)
            (5 6 7 4)
            (3 7 6 2)
            (0 3 2 1)
        );
    }
);

mergePatchPairs
(
);


// ************************************************************************* //
Example 0 File (rhoN):
Code:
dimensions      [0 -3 0 0 0 0 0];

internalField   uniform 0;

boundaryField
{
    sides
    {
        type            zeroGradient;
    }

    empty
    {
        type            empty;
    }
}

// ************************************************************************* //
Attached Images
File Type: jpg OGCode_New_Inputs_Pressure_7e-3.jpg (24.2 KB, 6 views)

Last edited by anthonygay1812; February 19, 2020 at 01:59. Reason: Added more information
anthonygay1812 is offline   Reply With Quote

Old   February 26, 2020, 02:19
Default Resolved
  #2
New Member
 
Anthony Gay
Join Date: Oct 2019
Posts: 17
Rep Power: 6
anthonygay1812 is on a distinguished road
I managed to figure out that dsmcFoam really only has an inflow model for patches and that applying a zerogradient to most of the parameters doesnt mean anything. To get the Dirichlet BC's I needed, I switched to a symmetry BC.

If youre running into issues this thread helped me out a lot. 0 Folder for a dsmcFoam simulation
HPE likes this.
anthonygay1812 is offline   Reply With Quote

Reply

Tags
boundary condition, dsmc openfoam dsmcfoam


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
Simulation crashes when turbulence is on (reactingMultiphaseEulerFoam) remidemol OpenFOAM Running, Solving & CFD 3 May 26, 2020 05:47
UDF for assigning particles position (re-injecting to the inlet) cicatrix Fluent UDF and Scheme Programming 0 November 11, 2019 07:11
Problem with DPM simulation with particles injection and EXECUTE_AT_THE_END UDF. Ari Fluent UDF and Scheme Programming 4 May 31, 2016 08:51
dsmcFoam - micro-hole limiting the number of dsmc particles Araist OpenFOAM Running, Solving & CFD 0 June 25, 2015 06:50
Add lagrangian particles to OpenFoam solver luchen2408 OpenFOAM 0 June 2, 2015 03:10


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