How to simulate gunshot with FEMLAB

  • Thread starter Thread starter lkjt
  • Start date Start date
AI Thread Summary
The discussion centers on simulating gunshot dynamics using FEMLAB, with participants questioning why the ball (E1) does not travel far. One contributor suggests that the issue may stem from the software only solving for small displacements, contrasting it with ANSYS, which requires enabling large displacements for accurate results. Another participant argues that finite element software is not ideal for tracking a bullet's trajectory, recommending the use of MATHCAD or MATLAB for trajectory calculations after determining the bullet's exit velocity. The complexity of accurately simulating a gunshot is acknowledged, particularly regarding fluid-structure interactions and acoustics. Suggestions for improving the simulation include adjusting time increments for convergence and utilizing advanced mesh movement techniques available in FEMLAB.
lkjt
Messages
1
Reaction score
0
I attached femlab document.

Why doesn't the ball(E1) go far away?
 

Attachments

Physics news on Phys.org
lkjt said:
I attached femlab document.

Why doesn't the ball(E1) go far away?

I don't have FEMLAB, but it could be that the problem is only solving for "small displacements." In ANSYS for example, you need to turn on large displacements for a problem like a gunshot. Are you trying to solve the trajectory of the bullet as well, or just the bullet leaving the barrel?

I would say that FE software is not a very good way to simulate the trajectory of a bullet, instead I would solve for its final speed after just leaving the barrel, and then use that velocity in MATHCAD or MATLAB to show its trajectory using the kinematic equations, taking air drag into account of course...
 
The attachment is still pending approval so still a bit hazy :biggrin: (anyone ?).

What physical aspect of a gunshot are you attempting to simulate, could you elaborate a bit.
 
I am reluctant to approve any attachment that I cannot view. I do not have femlab, so cannot verify the content. Guess I will aprove it without the verification. Open at your own risk.
 
It's a valid Femlab model file ... will return to the topic later if no one beats me to it :-p .
 
Hi lkjt,

I looked at your model, your application mode & analysis type should be able to reproduce the type of result you're aiming at (transient dynamic one). Naturally there are lots of simplifications you've had to do and a thorough simulation of a gunshot is a really difficult task (like if would open the 'can' of accurate fluid-structure interaction modeling for a gunshot and add the acoustics problem to the mix), but looks like a good example to me. However, there are a couple of things which see potentially causing trouble.

1st you probably noticed the convergence issue - a believe it'll rectify itself pretty easily by controlling the time incrementation and specifying it according to the displacements the mesh experiences, so that the features of the solution can be traced accurately time-wise. Then there is the issue mech_engineer already touched, i.e. FEM is basically usually very lousy what comes to large trajectories, finite displacements combined with rigid body movement and so on (your analysis focuses on the early stages granted, but still compared to say, to a stress analysis or so, the displacements are really large). This isn't a theoretical limitation, rather how the numerical solution process plays itself out. But, since you're working with comsol/femlab, you're lucky (or you probably knew that already). If you've already gotten your model to work with your current settings ... great ... but I wouldn't be somewhat surprised if you could do so without using the adaptive and deformed mesh features of Femlab (meaning you'd get the bullet out of the barrel). It may be that h-adaptivity for example is in order in your analysis, but more likely using the arbitrary Lagrangian - Eulerian technique for mesh movement. Comsol (especially the latest update) has a really nice implementation of this technique which has as of late been introduced to a number of FE programs, and I believe it could be used nicely to solve your problem. Had you had any further luck with your model and in your mind does what I'm thinking make any sense (can help you with the buildup if needed) :biggrin: ?
 
So I know that electrons are fundamental, there's no 'material' that makes them up, it's like talking about a colour itself rather than a car or a flower. Now protons and neutrons and quarks and whatever other stuff is there fundamentally, I want someone to kind of teach me these, I have a lot of questions that books might not give the answer in the way I understand. Thanks
Back
Top