Patch Command: Difference between revisions
No edit summary |
No edit summary |
||
(14 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{CommandManualMenu}} | {{CommandManualMenu}} | ||
The patch command is used to generate a number of fibers over a cross-sectional area. Currently there are | The patch command is used to generate a number of fibers over a cross-sectional area. Currently there are three types of cross-section that fibers can be generated: quadrilateral, rectangular and circular. | ||
The following is the command to generate a quadrilateral shaped patch (the geometry of the patch is defined by four vertices: I J K L. The coordinates of each of the four vertices is specified in COUNTER CLOCKWISE sequence): | The following is the command to generate a quadrilateral shaped patch (the geometry of the patch is defined by four vertices: I J K L. The coordinates of each of the four vertices is specified in COUNTER CLOCKWISE sequence): | ||
{| style="background: | {| style="background:lime; color:black; width:800px" | ||
| '''patch quad $matTag $numSubdivIJ $numSubdivJK $yI $zI $yJ $zJ $yK $zK $yL $zL''' | | '''patch quad $matTag $numSubdivIJ $numSubdivJK $yI $zI $yJ $zJ $yK $zK $yL $zL''' | ||
|} | |} | ||
{| | {| | ||
| style="width:150px" | '''$matTag''' || tag of previously defined | | style="width:150px" | '''$matTag''' || tag of previously defined material (UniaxialMaterial tag for a FiberSection or NDMaterial tag for use in an NDFiberSection) | ||
|- | |- | ||
| '''$numSubdivIJ''' || number of subdivisions (fibers) in the IJ direction. | | '''$numSubdivIJ''' || number of subdivisions (fibers) in the IJ direction. | ||
Line 31: | Line 31: | ||
---- | ---- | ||
The following is the command to generate a rectangular patch. The geometry of the patch is defined by coordinates of vertices I and J. To ensure positive fiber areas are created, (zJ-zI)/(yJ-yI) should be positive. | |||
{| style="background:lime; color:black; width:800px" | |||
| '''patch rect $matTag $numSubdivY $numSubdivZ $yI $zI $yJ $zJ''' | |||
|} | |||
{| | |||
| style="width:150px" | '''$matTag''' || tag of previously defined material (UniaxialMaterial tag for a FiberSection or NDMaterial tag for use in an NDFiberSection) | |||
|- | |||
| '''$numSubdivY''' || number of subdivisions (fibers) in the local y direction. | |||
|- | |||
| '''$numSubdivZ''' || number of subdivisions (fibers) in the local z direction. | |||
|- | |||
| '''$yI $zI''' || y & z-coordinates of vertex I (local coordinate system) | |||
|- | |||
| '''$yJ $zJ''' || y & z-coordinates of vertex J (local coordinate system) | |||
|} | |||
[[Image:PatchRect.GIF]] | |||
---- | |||
The following is the command to generate a circular shaped patch: | The following is the command to generate a circular shaped patch: | ||
{| style="background: | {| style="background:lime; color:black; width:800px" | ||
| '''patch circ $matTag $numSubdivCirc $numSubdivRad $yCenter $zCenter $intRad $extRad | | '''patch circ $matTag $numSubdivCirc $numSubdivRad $yCenter $zCenter $intRad $extRad $startAng $endAng''' | ||
|} | |} | ||
{| | {| | ||
| style="width:150px" | '''$matTag''' || tag of previously defined UniaxialMaterial | | style="width:150px" | '''$matTag''' || tag of previously defined material (UniaxialMaterial tag for a FiberSection or NDMaterial tag for use in an NDFiberSection) | ||
|- | |- | ||
| '''$numSubdivCirc''' || number of subdivisions (fibers) in the circumferential direction | | '''$numSubdivCirc''' || number of subdivisions (fibers) in the circumferential direction (number of wedges) | ||
|- | |- | ||
| '''$numSubdivRad''' || number of subdivisions (fibers) in the radial direction | | '''$numSubdivRad''' || number of subdivisions (fibers) in the radial direction (number of rings) | ||
|- | |- | ||
| '''$yCenter $zCenter''' || y & z-coordinates of the center of the circle | | '''$yCenter $zCenter''' || y & z-coordinates of the center of the circle | ||
Line 52: | Line 74: | ||
| '''$extRad''' || external radius | | '''$extRad''' || external radius | ||
|- | |- | ||
| '''$startAng''' || starting angle | | '''$startAng''' || starting angle | ||
|- | |- | ||
| '''$endAng''' || ending angle | | '''$endAng''' || ending angle | ||
|} | |} | ||
Line 71: | Line 93: | ||
EXAMPLE: | EXAMPLE: | ||
patch circ $coreMatTag 8 8 0.0 0.0 0.0 $h; # define solid circular section with 64 fibers with | patch circ $coreMatTag 8 8 0.0 0.0 0.0 $h; # define solid circular section with 64 fibers with radius $h using $coreMatTag material | ||
patch quad $coreMatTag 8 8 -$b -$h $b -$h $b $h -$b $h; # define core patch with 8 subdivisions within a | patch quad $coreMatTag 8 8 -$b -$h $b -$h $b $h -$b $h; # define core patch with 8 subdivisions within a rectangle of width 2b and depth 2h | ||
---- | ---- |
Latest revision as of 17:12, 5 June 2022
- Command_Manual
- Tcl Commands
- Modeling_Commands
- model
- uniaxialMaterial
- ndMaterial
- frictionModel
- section
- geometricTransf
- element
- node
- sp commands
- mp commands
- timeSeries
- pattern
- mass
- block commands
- region
- rayleigh
- Analysis Commands
- Output Commands
- Misc Commands
- DataBase Commands
The patch command is used to generate a number of fibers over a cross-sectional area. Currently there are three types of cross-section that fibers can be generated: quadrilateral, rectangular and circular.
The following is the command to generate a quadrilateral shaped patch (the geometry of the patch is defined by four vertices: I J K L. The coordinates of each of the four vertices is specified in COUNTER CLOCKWISE sequence):
patch quad $matTag $numSubdivIJ $numSubdivJK $yI $zI $yJ $zJ $yK $zK $yL $zL |
$matTag | tag of previously defined material (UniaxialMaterial tag for a FiberSection or NDMaterial tag for use in an NDFiberSection) |
$numSubdivIJ | number of subdivisions (fibers) in the IJ direction. |
$numSubdivJK | number of subdivisions (fibers) in the JK direction. |
$yI $zI | y & z-coordinates of vertex I (local coordinate system) |
$yJ $zJ | y & z-coordinates of vertex J (local coordinate system) |
$yK $zK | y & z-coordinates of vertex K (local coordinate system) |
$yL $zL | y & z-coordinates of vertex L (local coordinate system) |
The following is the command to generate a rectangular patch. The geometry of the patch is defined by coordinates of vertices I and J. To ensure positive fiber areas are created, (zJ-zI)/(yJ-yI) should be positive.
patch rect $matTag $numSubdivY $numSubdivZ $yI $zI $yJ $zJ |
$matTag | tag of previously defined material (UniaxialMaterial tag for a FiberSection or NDMaterial tag for use in an NDFiberSection) |
$numSubdivY | number of subdivisions (fibers) in the local y direction. |
$numSubdivZ | number of subdivisions (fibers) in the local z direction. |
$yI $zI | y & z-coordinates of vertex I (local coordinate system) |
$yJ $zJ | y & z-coordinates of vertex J (local coordinate system) |
The following is the command to generate a circular shaped patch:
patch circ $matTag $numSubdivCirc $numSubdivRad $yCenter $zCenter $intRad $extRad $startAng $endAng |
$matTag | tag of previously defined material (UniaxialMaterial tag for a FiberSection or NDMaterial tag for use in an NDFiberSection) |
$numSubdivCirc | number of subdivisions (fibers) in the circumferential direction (number of wedges) |
$numSubdivRad | number of subdivisions (fibers) in the radial direction (number of rings) |
$yCenter $zCenter | y & z-coordinates of the center of the circle |
$intRad | internal radius |
$extRad | external radius |
$startAng | starting angle |
$endAng | ending angle |
NOTES:
EXAMPLE:
patch circ $coreMatTag 8 8 0.0 0.0 0.0 $h; # define solid circular section with 64 fibers with radius $h using $coreMatTag material
patch quad $coreMatTag 8 8 -$b -$h $b -$h $b $h -$b $h; # define core patch with 8 subdivisions within a rectangle of width 2b and depth 2h
Code Developed by: Remo M. De Souza