Remesh: Difference between revisions
Jump to navigation
Jump to search
(Created page with ' < Back '''remesh'''(''type, alpha, numfreeregs, reg1, reg2, ..., numfixregs, reg1, reg2, ...[, eletype, ...]'') <span id="pyremesh"> ¶</span> <blockquote>remesh bas...') |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
[[FSI | < Back]] | [[FSI | < Back]] | ||
<span id="pyremesh"></span> | |||
'''remesh'''(''type, alpha, numfreeregs, reg1, reg2, ..., numfixregs, reg1, reg2, ...[, eletype, ...]'') | '''remesh'''(''type, alpha, numfreeregs, reg1, reg2, ..., numfixregs, reg1, reg2, ...[, eletype, ...]'') [[#pyremesh|¶]] | ||
<blockquote>remesh based on the nodes in regions.</blockquote> | <blockquote>remesh based on the nodes in regions.</blockquote> | ||
Line 23: | Line 23: | ||
|- | |- | ||
! |Returns: | ! |Returns: | ||
| | |||
|- | |- | ||
! |Return Type: | ! |Return Type: | ||
| None | |||
|} | |} | ||
Latest revision as of 18:34, 3 July 2017
remesh(type, alpha, numfreeregs, reg1, reg2, ..., numfixregs, reg1, reg2, ...[, eletype, ...]) ¶
remesh based on the nodes in regions.
Parameters: | * type (str) - a string of mesh type, currently 'tri'. |
---|---|
* alpha (float) – the control parameter for alpha shape method. The value is usually between 1 and 2, e.g. alpha = 1.4. | |
* 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: | None |
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)