Region: Difference between revisions
Jump to navigation
Jump to search
(Created page with ' < Back '''region'''(''regTag[, '-ele', e1, e2, ...][, '-eleRange', e1, e2, ...][, '-node', nd1, nd2, ...][, '-nodeRange', nd1, nd2][, '-rayleigh', alphaM, betaK, beta...') |
No edit summary |
||
Line 4: | Line 4: | ||
'''region'''(''regTag[, '-ele', e1, e2, ...][, '-eleRange', e1, e2, ...][, '-node', nd1, nd2, ...][, '-nodeRange', nd1, nd2][, '-rayleigh', alphaM, betaK, betaKinit, betaKcomm][, 'getNodeTags'][, 'getConnectedEleTags'][, 'getEleTags'][, '-mass', m1, m2, ...]'') <span id="pyregion"> ¶</span> | '''region'''(''regTag[, '-ele', e1, e2, ...][, '-eleRange', e1, e2, ...][, '-node', nd1, nd2, ...][, '-nodeRange', nd1, nd2][, '-rayleigh', alphaM, betaK, betaKinit, betaKcomm][, 'getNodeTags'][, 'getConnectedEleTags'][, 'getEleTags'][, '-mass', m1, m2, ...]'') <span id="pyregion"> ¶</span> | ||
<blockquote> | <blockquote>an enhanced region command</blockquote> | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
! rowspan=" | ! rowspan="10"| Parameters: | ||
|* ''' | |* '''regTag''' (''int'') - a predefined or new region tag. | ||
|- | |- | ||
|* ''' | |* '''"-ele", e1, e2, ..''' (''int'') – the region is defined by elements e1, e2, .... If no tag is given, then all elements are added. | ||
|- | |- | ||
|* '''numfreeregs''' (''int'') – number of regions which need to be remeshed. | |* '''numfreeregs''' (''int'') – number of regions which need to be remeshed. |
Revision as of 21:49, 30 June 2017
region(regTag[, '-ele', e1, e2, ...][, '-eleRange', e1, e2, ...][, '-node', nd1, nd2, ...][, '-nodeRange', nd1, nd2][, '-rayleigh', alphaM, betaK, betaKinit, betaKcomm][, 'getNodeTags'][, 'getConnectedEleTags'][, 'getEleTags'][, '-mass', m1, m2, ...]) ¶
an enhanced region command
Parameters: | * regTag (int) - a predefined or new region tag. |
---|---|
* "-ele", e1, e2, .. (int) – the region is defined by elements e1, e2, .... If no tag is given, then all elements are added. | |
* numfreeregs (int) – number of regions which need to be remeshed. | |
* numfixedregs (int) – number of regions which need not to be remeshed but used to form elements between free regions. | |
* reg1, reg2, .. (int) – tags of free or fixed regions. | |
* eletype... (str) – the name of the element followed by element parameters. | |
Returns: | |
Return Type: |
Example:
alpha = 1.4
freeregs = [1,2]
fixedregs = [3,4]
eleargs = ['PFEMElement2DBubble',rho,mu,b1,b2,thk,kappa]
remesh('tri', alpha, len(freeregs), *freeregs, len(fixedregs) *fixedregs, *eleargs)