|
[Sponsors] |
February 19, 2020, 00:16 |
dsmcFoam: Losing particles at boundaries??
|
#1 |
New Member
Anthony Gay
Join Date: Oct 2019
Posts: 17
Rep Power: 7 |
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 ( ); // ************************************************************************* // Code:
dimensions [0 -3 0 0 0 0 0]; internalField uniform 0; boundaryField { sides { type zeroGradient; } empty { type empty; } } // ************************************************************************* // Last edited by anthonygay1812; February 19, 2020 at 02:59. Reason: Added more information |
|
February 26, 2020, 03:19 |
Resolved
|
#2 |
New Member
Anthony Gay
Join Date: Oct 2019
Posts: 17
Rep Power: 7 |
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 |
|
Tags |
boundary condition, dsmc openfoam dsmcfoam |
|
|
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 06:47 |
UDF for assigning particles position (re-injecting to the inlet) | cicatrix | Fluent UDF and Scheme Programming | 0 | November 11, 2019 08:11 |
Problem with DPM simulation with particles injection and EXECUTE_AT_THE_END UDF. | Ari | Fluent UDF and Scheme Programming | 4 | May 31, 2016 09:51 |
dsmcFoam - micro-hole limiting the number of dsmc particles | Araist | OpenFOAM Running, Solving & CFD | 0 | June 25, 2015 07:50 |
Add lagrangian particles to OpenFoam solver | luchen2408 | OpenFOAM | 0 | June 2, 2015 04:10 |