2 Replies Latest reply on Jul 12, 2014 2:00 PM by Jared Conway

    Priming and releasing a presurized gun barrel into air

    Greg Oberlin

      I am relativly new to the solidworks flow simulation, although i have some experience with more traditional CFD codes. Let me set up the problem for you. I am trying to model gun muzzle blast through various devices attached to the muzzle. i have defined a custom gas with the properties of the gun propellant gas and i have experimental measurements of the conditions inside the barrel. What is traditionally done when using other CFD packages is the fluid inside the barrel is set to the conditions just before barrel exit and when the simulation starts since there is nothing holding the pressurized gas back the flow starts out of the muzzle and the blast is simulated. I am running a time dependant external analysis with the default fluid set to air. I included a few local mesh area with more dense meshing around smaller features that require smaller cells to refine the flow dynamics in these regions.


      What i cant seem to figure out is how to setup the initial fluid subdomain inside the barrel such that i can define a starting pressure, velocity, temperature profile along the length of the barrel and release it upon starting the analysis.


      Any help on setting this up would be greatly appreciated. I would like to set this up similar/ the same as how we run these sims using the other CFD codes so that the results can more directly be compared.



        • Re: Priming and releasing a presurized gun barrel into air
          Nicholas Luyster

          Hi Greg,


          This sounds like a very interesting problem.  What you can do is model a body at the location where you will have an initial condition of high pressure in the barrel of the gun.  Then, within the flow simulation software, you can take that body out of the computational domain through component control.  (Right click on the tree, input data, component control.)


          You'll still be able to see these bodies and select the bodies, it's just that the bodies are no longer part of the solid computational domain.  When you make you're selection for the initial condition of pressure in the barel, you should still be able to select that body.


          All the best,


          Nick Luyster


          Online SolidWorks Simulation Training