why are there 4*numberDOF elements in the disp array?

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

Moderators: silvia, selimgunay, Moderators

Post Reply
docmao
Posts: 6
Joined: Wed Jan 09, 2008 6:54 pm
Location: China

why are there 4*numberDOF elements in the disp array?

Post by docmao »

int
Node::createDisp(void)
{
// trial , committed, incr = (committed-trial)
disp = new double[4*numberDOF];
.......
}


I want to know what means of the disp elements?
docmao
Posts: 6
Joined: Wed Jan 09, 2008 6:54 pm
Location: China

Post by docmao »

In my thought, it should be numberDOF elements in the disp array. But it seems the disp array keeps more displacements information in the Node class. So, what do they means?
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Post by fmk »

the array keeps current trial, last committed, the incremental disp(trial - commit), and the delta incr disp (current trial-last trial)
Post Reply