the midpoint of i and i+1

For developers writing C++, Fortran, Java, code who have questions or comments to make.

Moderators: silvia, selimgunay, Moderators

Post Reply
tangzhen
Posts: 30
Joined: Thu May 30, 2013 4:58 am
Location: HIT

the midpoint of i and i+1

Post by tangzhen »

how to get the value of the midpoint of P(i) and P(i+1),in which P means the element or nodal external Load. thanks.
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Re: the midpoint of i and i+1

Post by fmk »

what is the i?
tangzhen
Posts: 30
Joined: Thu May 30, 2013 4:58 am
Location: HIT

Re: the midpoint of i and i+1

Post by tangzhen »

sorry, i means the nth step and i+1 means the (n+1)th step,we can regard as the step at time t and the step at time t+deltat respectively.
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Re: the midpoint of i and i+1

Post by fmk »

what object type is trying to get what actual quantity.
tangzhen
Posts: 30
Joined: Thu May 30, 2013 4:58 am
Location: HIT

Re: the midpoint of i and i+1

Post by tangzhen »

I want to get the midpoint load of the element or nodal external Load when formUnbalance.
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Re: the midpoint of i and i+1

Post by fmk »

you want to get the loads using what object? elements, loads, or P in the system of equation.

you cannot get the applied load vector from anyone for the elements, they all give the unbalance, i.e. applied load - ele rsisting forces.
formUnbalance() again from the system will not give the external load, again it gives the unbalance, i.e. appliedLoad - the element resisting forces and nodal loads.

if you capture these at the first trial step in an algorithm (i.e. before the nodes move) you will get the deltaP from the previous step (as the ressiting forces will still be for the previous converged step. if you kept track from the start you would have the P's.

the exact midpoint load from individual elements or nodes can only be found by setting the time to the time you want and getting the domain to invoke applyLoad with that time. if loads varied linearly between steps, it is not simply the difference between 2 converged steps.
Post Reply