piclas-framework / piclas

PICLas is a parallel, three-dimensional PIC-DSMC solver developed cooperatively by the Institute of Space Systems, Institute of Aerodynamics and Gas Dynamics at the University of Stuttgart and the spin-off boltzplatz. PICLas is a flexible particle-based plasma simulation suite.
https://piclas.readthedocs.io
GNU General Public License v3.0
74 stars 17 forks source link

Problem with Constant Pressure BC #25

Closed hamidmoezzi1988 closed 1 month ago

hamidmoezzi1988 commented 2 months ago

Hey all, I have a problem with implementing constant pressure outlet BC. I consider the outlet as open and then add the followings to the parameter.ini file: Part-Species1-Surfaceflux2-BC=2 Part-Species1-Surfaceflux2-velocityDistribution = maxwell Part-Species1-Surfaceflux2-VeloIC = 1 Part-Species1-Surfaceflux2-VeloVecIC = (/1.0,0.0,0.0/) Part-Species1-Surfaceflux2-MWTemperatureIC = 300. Part-Species1-Surfaceflux2-TempVib = 0. Part-Species1-Surfaceflux2-TempRot = 0. Part-Species1-Surfaceflux2-Adaptive = TRUE Part-Species1-Surfaceflux2-Adaptive-Type = 2 Part-Species1-Surfaceflux2-Adaptive-Pressure = 800

AdaptiveBC-RelaxationFactor = 0.02 AdaptiveBC-SamplingIteration = 0,10,10 AdaptiveBC-TruncateRunningAverage = F,F,T AdaptiveBC-AverageValuesOverBC = T,F nocrosscombination:AdaptiveBC-SamplingIteration,AdaptiveBC-TruncateRunningAverage

After running the simulation with this BC, seemingly, it acts as the perfect vacuum BC and does not maintain the preset pressure. What can be the problem?

Also, in this implementation, why do we need to define the outlet temperature (MWTemperatureIC) and velocity (VeloIC)? I do not know the exact temperature and velocity at the outlet and would prefer for the code to treat them as zero-gradient conditions.

I would appreciate any comments regarding my issues.

Thank you for your time. Hamid

scopplestone commented 1 month ago

fixed and closed!