As long as the program code is written so that the high pressures and densities work as intended.... and also modified so that the speed of sound at those pressures is correct.... a CFD program may work properly.... It also has to allow for the fact that the HPA is expanding into a space that is essentially at atmospheric pressure (most programs I have seen assume constant density at inlet and outlet).... and that the barrel is corked by a movable pellet being accelerated by the flow.... I guess a Cray supercomputer could handle it OK.... a desktop PC, not so much.... but that is JMO.... The problem is that you may get what looks like a perfect solution to your problem, but you will have no idea if it is the correct solution.... Bob
Easier than you think! Heres a CFD program I've used for valve flow data and the like as d once you get a hang of it quite useful in many ways. https://openfoam.org/
Problem also lies in the fact WE ARE NOT USING FLUID which is not compressible, but a gas which is compressible and does not act the same as a fluid
Compressed air, oil and water all act as FLUIDS.... However, oil and water are incompressible LIQUIDS, and therefore not the same as compressed air, which is still a gas (the molecules are not touching, but moving freely and colliding).... To complicate things further, above 550 psi, air is actually a supercritical fluid, but that is still distinctly different from a liquid, which is incompressible....Bob
In physics, a fluid is a substance that continually deforms (flows) under an applied shear stress, or external force. Fluids are a phase of matter and include liquids, gases and plasmas.
A liquid is a nearly incompressible fluid that conforms to the shape of its container but retains a (nearly) constant volume independent of pressure.