new Q4(options)
Four-node quad geometric cell set.
Parameters:
| Name | Type | Description |
|---|---|---|
options |
module:types.Q4InitOption |
- Source:
Extends
Methods
-
axisSymm() → {Boolean}
-
Returns whether it is axis symmetric.
- Inherited From:
- Source:
Returns:
- Type
- Boolean
-
bfun()
-
- Source:
-
bfundpar()
-
- Source:
-
bfundsp(nder, x) → {module:types.Matrix}
-
Returns derivatives of the basis functions in spatical domain.
Parameters:
Name Type Description ndermodule:types.Matrix Nodal derivatives in parametric domain. xmodule:types.Matrix Nodal coordinates in spatial domain. - Inherited From:
- Source:
Returns:
Derivatives of the basis functions in spatical domain.- Type
- module:types.Matrix
-
boundary() → {module:gcellset.GCellSet}
-
Return the boundary of this gcellset.
- Inherited From:
- Source:
Returns:
the boundary gcellset. -
boundaryCellType() → {String}
-
Return the type of boundary gcellset.
- Inherited From:
- Source:
Returns:
type of boundary gcellset.- Type
- String
-
<virtual> boundaryConn() → {module:types.ConnectivityList}
-
Returns the connectivity list of the boundary. Override by subclasses.
- Inherited From:
- Source:
Returns:
-
boundaryGCellSetConstructor()
-
- Source:
-
boxSelect() → {module:gcellset.GCellSet}
-
Return the indices of the cells that all (or any if options.any is true) of its nodes are inside the given box.
Parameters:
Type Description module:fens.FeNodeSet module:gcellset.boxSelectOption - Inherited From:
- Source:
Returns:
the boundary gcellset. -
cellSize()
-
- Source:
-
clone() → {module:gcellset.GCellSet}
-
Returns a clone of self.
- Inherited From:
- Source:
Returns:
-
conn() → {module:types.ConnectivityList}
-
Returns the connectiviy list.
- Inherited From:
- Source:
Returns:
connectivity list of length this.count(). -
count() → {Int}
-
Return the number of cells.
- Inherited From:
- Source:
Returns:
- Type
- Int
-
dim() → {Int}
-
- Inherited From:
- Source:
Returns:
- Type
- Int
-
edges() → {module:types.ConnectivityList}
-
Returns a list of L2 cells. Mainly used for visualization.
- Inherited From:
- Source:
Returns:
-
equals() → {Boolean}
-
Return true if two gcellset is same.
- Inherited From:
- Source:
Returns:
- Type
- Boolean
-
extrude(flags) → {module:gcellset.GCellSet}
-
Return extruded gcellset.
Parameters:
Name Type Description flagsArray A list of flags, falsy value means skip this layer. - Inherited From:
- Source:
Returns:
- extruded gcellset -
<virtual> extrudedGCellSetConstructor() → {function}
-
Returns the constructor of extruded gcellset. For example, Q4 should return H8, L2 should return Q4.
- Inherited From:
- Source:
Returns:
the constructor of boundary gcellset.- Type
- function
-
id() → {String}
-
Returns the unique id of this geometry cell set.
- Inherited From:
- Source:
Returns:
unique id.- Type
- String
-
jacobian(conn, N, J, x) → {Number}
-
Evaluate the manifold Jacobian.
Parameters:
Name Type Description connmodule:types.Connectivity Connectivity of a single cell. Nmodule:types.Matrix Values of the basis functions. (cellSize by 1). Jmodule:types.Matrix Jacobian matrix. xmodule:types.Matrix Spatial coordinates. (cellSize by dim). - Inherited From:
- Source:
Returns:
- Type
- Number
-
jacobianInDim(conn, N, J, x, dim) → {Number}
-
A convinient wrapper for jacobianCurve, jacobianSurface, jacobianVolumn
Parameters:
Name Type Description connmodule:types.Connectivity Connectivity of a single cell. Nmodule:types.Matrix Values of the basis functions. (cellSize by 1). Jmodule:types.Matrix Jacobian matrix. xmodule:types.Matrix Spatial coordinates. (cellSize by dim). dimInt 2 (surface) or 3 (volumn). - Inherited From:
- Source:
Returns:
- Type
- Number
-
jacobianMatrix(nder, x) → {module:types.Matrix}
-
Evaluate the Jacob matrix.
Parameters:
Name Type Description ndermodule:types.Matrix Nodal derivatives in parametric domain. xmodule:types.Matrix Nodal coordinates in spatial domain. - Inherited From:
- Source:
Returns:
Jacob matrix.- Type
- module:types.Matrix
-
jacobianSurface(conn, N, J, x) → {Number}
-
Evaluate the surface Jacobian.
Parameters:
Name Type Description connmodule:types.Connectivity Connectivity of a single cell. Nmodule:types.Matrix Values of the basis functions. (cellSize by 1). Jmodule:types.Matrix Jacobian matrix. xmodule:types.Matrix Spatial coordinates. (cellSize by dim). - Inherited From:
- Source:
Returns:
- Type
- Number
-
jacobianVolumn(conn, N, J, x) → {Number}
-
Evaluate the volumn Jacobian.
Parameters:
Name Type Description connmodule:types.Connectivity Connectivity of a single cell. Nmodule:types.Matrix Values of the basis functions. (cellSize by 1). Jmodule:types.Matrix Jacobian matrix. xmodule:types.Matrix Spatial coordinates. (cellSize by dim). - Inherited From:
- Source:
Returns:
- Type
- Number
-
nfens() → {Int}
-
Return the number of nodes this gcellset connect
- Inherited From:
- Source:
Returns:
- Type
- Int
-
otherDimension(conn, N, x) → {Number}
-
Evaluate the other dimension (area, thickness) of the element at given parametric coordinates, or at any given spatial coordinate.
Parameters:
Name Type Description connmodule:types.Connectivity connectivity of a single cell. Nmodule:types.Matrix values of the basic functions. xmodule:types.Matrix spatial coordinates. - Inherited From:
- Source:
Returns:
- Type
- Number
-
setFamily_(name)
-
Set the topological family for gcellset.
Parameters:
Name Type Description nameString name of the family: 'P1L2T3T4', 'P1L3T6T10', 'P1L2Q4H8', 'P1L3Q8H20' - Inherited From:
- Source:
-
subset(indices) → {module:gcellset.GCellSet}
-
Returns a new GCellSet of same type which is a subset of self by given indices.
Parameters:
Name Type Description indicesArray indices of selected cell, starts from 0. - Inherited From:
- Source:
Returns:
-
topology() → {module:topology.Topology}
-
Returns the full topology of gcellset. Mainly used for visualization.
- Inherited From:
- Source:
Returns:
- Type
- module:topology.Topology
-
triangles()
-
- Source:
-
type()
-
- Source:
-
vertices() → {module:types.Vector}
-
Returns a vector of vertices ids. Mainly used for visualization.
- Inherited From:
- Source:
Returns:
- Type
- module:types.Vector