Author Topic: how to calculate the kinetic energy  (Read 11242 times)

carlygao

  • Jr. Member
  • **
  • Posts: 37
Re: how to calculate the kinetic energy
« Reply #15 on: October 12, 2016, 04:39:33 PM »
Hi Prof. Taylor, I want to use an elastic user element to calculate the kinetic energy for a transient simulation. In order to do this, I need to calibrate the user element using FEAP solid element for transient simulations. The input files for FEAP solid element and the user element are included here. I need to get the permission of my advisor to post the user element. But the user element only uses the basic elastic theory. In the input files, only one element is used, and one time step simulation is run. I output consistent mass matrix, tangent matrix and other mass related matrix to compare their results. You know there are two ways to deal with the mass in transient simulations, either adding lumped mass or use consistent mass. I expect the user element gives me the same results as those from the FEAP solid element, but unfortunately not in all situations. However, using lumped mass in user element gave me close results to those from the FEAP solid element. I am confusing how to program the user element to obtain the same results as those from FEAP solid element, and how to evaluate the following findings. Thanks.

1. adding lumped masses will only change the diagonal mass value in the mass matrix.
2. if both of them use lumped masses, or don’t use lumped masses, the mass matrix are the same for the user element and the FEAP solid element, but the tangent matrix is different.
3. the maximum vertical displacement after 1 step of transient simulation of one simple testing case is summarized as follows for each situation.


                       
                                        solid                  user element      different place
both use lumped mass     9.5763e-13          4.05e-12         tangent matrix are different, but the values have the same order

both consistent mass          1.35e-12            1.25e-2        tangent matrix have a huge difference

Prof. R.L. Taylor

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 2649
Re: how to calculate the kinetic energy
« Reply #16 on: October 13, 2016, 10:39:37 AM »
The programmer manual describes the requirements for coding elements the requirment is that

s(:,:) = ctan(1)*K(:,:) + ctan(2)*C(:,:) + ctan(3)*M(:,:)

where: K, C, M are the stiffness, damping and mass matrices, respectively.

The values of ctan(:) may be passed to the element using

          include 'eltran.h'

You need to be careful with the quadrature order you use to compute each array,  the requirement is that M(:,:) be of full rank.  This is no problem for quads and bricks, but triangles and tetrahedron require more than the stiffness.  Note that computing s(:,:) above is required when isw = 3.  When isw=5 we compute only M(:,:) both in lumped and consistent form.

carlygao

  • Jr. Member
  • **
  • Posts: 37
Re: how to calculate the kinetic energy
« Reply #17 on: November 22, 2016, 10:03:40 AM »
Hi Prof. Taylor, if I use point mass only, and no density for the materials to do the transient simulation, how are the kinetic energy and strain energy calculated? sengy.f should be only for the lumped mass and consistent mass. Thanks.