Class: Q4

gcellset. Q4

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
nder module:types.Matrix Nodal derivatives in parametric domain.
x module: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.
Type
module:gcellset.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:
Type
module:types.ConnectivityList

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.
Type
module:gcellset.GCellSet

cellSize()

Source:

clone() → {module:gcellset.GCellSet}

Returns a clone of self.
Inherited From:
Source:
Returns:
Type
module:gcellset.GCellSet

conn() → {module:types.ConnectivityList}

Returns the connectiviy list.
Inherited From:
Source:
Returns:
connectivity list of length this.count().
Type
module:types.ConnectivityList

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:
Type
module:types.ConnectivityList

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
flags Array A list of flags, falsy value means skip this layer.
Inherited From:
Source:
Returns:
- extruded gcellset
Type
module:gcellset.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
conn module:types.Connectivity Connectivity of a single cell.
N module:types.Matrix Values of the basis functions. (cellSize by 1).
J module:types.Matrix Jacobian matrix.
x module: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
conn module:types.Connectivity Connectivity of a single cell.
N module:types.Matrix Values of the basis functions. (cellSize by 1).
J module:types.Matrix Jacobian matrix.
x module:types.Matrix Spatial coordinates. (cellSize by dim).
dim Int 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
nder module:types.Matrix Nodal derivatives in parametric domain.
x module: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
conn module:types.Connectivity Connectivity of a single cell.
N module:types.Matrix Values of the basis functions. (cellSize by 1).
J module:types.Matrix Jacobian matrix.
x module: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
conn module:types.Connectivity Connectivity of a single cell.
N module:types.Matrix Values of the basis functions. (cellSize by 1).
J module:types.Matrix Jacobian matrix.
x module: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
conn module:types.Connectivity connectivity of a single cell.
N module:types.Matrix values of the basic functions.
x module:types.Matrix spatial coordinates.
Inherited From:
Source:
Returns:
Type
Number

setFamily_(name)

Set the topological family for gcellset.
Parameters:
Name Type Description
name String 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
indices Array indices of selected cell, starts from 0.
Inherited From:
Source:
Returns:
Type
module:gcellset.GCellSet

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