Line | |
---|
1 | function dof=modelsize(m_dh,m_dv,m_ds,m_dhu,m_sl);
|
---|
2 | %DOF - return the maximum number of degrees of freedom of the model
|
---|
3 | %
|
---|
4 | % Usage:
|
---|
5 | % dof=modelsize(m_dh,m_dv,m_ds,m_dhu,m_sl)
|
---|
6 |
|
---|
7 | dof=0;
|
---|
8 | if ~isempty(m_ds.nodesets),
|
---|
9 | dof=m_ds.nodesets.fsize; %biggest dof number
|
---|
10 | end
|
---|
11 | if ~isempty(m_dh.nodesets),
|
---|
12 | if dof<m_dh.nodesets.fsize,
|
---|
13 | dof=m_dh.nodesets.fsize; %biggest dof number
|
---|
14 | end
|
---|
15 | end
|
---|
16 | if ~isempty(m_dhu.nodesets),
|
---|
17 | if dof<m_dhu.nodesets.fsize,
|
---|
18 | dof=m_dhu.nodesets.fsize;
|
---|
19 | end
|
---|
20 | end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.