MATLAB/Octave Function Index#
This page provides an index of all MATLAB/Octave functions in the MOLE library.
Gradient Operators#
grad()- Returns a m+1 by m+2 one-dimensional mimetic gradient operatorgrad2D()- Returns a two-dimensional mimetic gradient operatorgrad2DCurv()- Returns a 2D curvilinear mimetic gradientgrad2DNonUniform()- Returns a two-dimensional non-uniform mimetic gradientgrad3D()- Returns a three-dimensional mimetic gradient operatorgrad3DCurv()- Returns a 3D curvilinear mimetic gradientgrad3DNonUniform()- Returns a three-dimensional non-uniform mimetic gradientgradNonUniform()- Returns a m+1 by m+2 one-dimensional non-uniform mimetic gradient
Divergence Operators#
div()- Returns a m+2 by m+1 one-dimensional mimetic divergence operatordiv2D()- Returns a two-dimensional mimetic divergence operatordiv2DCurv()- Returns a 2D curvilinear mimetic divergencediv2DNonUniform()- Returns a two-dimensional non-uniform mimetic divergencediv3D()- Returns a three-dimensional mimetic divergence operatordiv3DCurv()- Returns a 3D curvilinear mimetic divergencediv3DNonUniform()- Returns a three-dimensional non-uniform mimetic divergencedivNonUniform()- Returns a m+2 by m+1 one-dimensional non-uniform mimetic divergence
Laplacian Operators#
Nodal Operators#
nodal()- Returns a one-dimensional operator that approximates the first-ordernodal2D()- Returns a two-dimensional operator that approximates the first-ordernodal2DCurv()- Returns a 2D curvilinear nodal operatornodal3D()- Returns a three-dimensional operator that approximates the first-ordernodal3DCurv()- Returns a 3D curvilinear nodal operatorsidedNodal()- Returns a one-dimensional nodal operator with one-sided stencils
Interpolation Functions#
interpol()- Returns a m+1 by m+2 one-dimensional interpolation operatorinterpol2D()- Returns a two-dimensional interpolation operatorinterpol3D()- Returns a three-dimensional interpolation operatorinterpolD()- Returns a m+1 by m+2 one-dimensional interpolation operatorinterpolD2D()- Returns a two-dimensional interpolation operatorinterpolD3D()- Returns a three-dimensional interpolation operatorinterpolCentersToFacesD1D()- Interpolates values from cell centers to facesinterpolCentersToFacesD2D()- Interpolates values from cell centers to facesinterpolCentersToFacesD3D()- Interpolates values from cell centers to facesinterpolCentersToNodes1D()- Interpolates values from cell centers to nodesinterpolCentersToNodes2D()- Interpolates values from cell centers to nodesinterpolCentersToNodes3D()- Interpolates values from cell centers to nodesinterpolFacesToCentersG1D()- Interpolates values from faces to cell centersinterpolFacesToCentersG2D()- Interpolates values from faces to cell centersinterpolFacesToCentersG3D()- Interpolates values from faces to cell centersinterpolNodesToCenters1D()- Interpolates values from nodes to cell centersinterpolNodesToCenters2D()- Interpolates values from nodes to cell centersinterpolNodesToCenters3D()- Interpolates values from nodes to cell centers
Boundary Conditions#
addScalarBC1D()- Apply boundary conditions to a 1D systemaddScalarBC1Dlhs()- Create left-hand side matrix for 1D boundary conditionsaddScalarBC1Drhs()- Create right-hand side vector for 1D boundary conditionsaddScalarBC2D()- Apply boundary conditions to a 2D systemaddScalarBC2Dlhs()- Create left-hand side matrix for 2D boundary conditionsaddScalarBC2Drhs()- Create right-hand side vector for 2D boundary conditionsaddScalarBC3D()- Apply boundary conditions to a 3D systemaddScalarBC3Dlhs()- Create left-hand side matrix for 3D boundary conditionsaddScalarBC3Drhs()- Create right-hand side vector for 3D boundary conditionsboundaryIdx2D()- Get boundary indices for a 2D domainmixedBC()- Constructs a 1D mimetic mixed boundary conditions operatormixedBC2D()- Constructs a 2D mimetic mixed boundary conditions operatormixedBC3D()- Constructs a 3D mimetic mixed boundary conditions operatorneumann2DCurv()- Returns a 2D curvilinear Neumann BC operatorneumann3DCurv()- Returns a 3D curvilinear Neumann BC operatorrobinBC()- Returns a m+2 by m+2 one-dimensional mimetic boundary operator thatrobinBC2D()- Returns a two-dimensional mimetic boundary operator that implementsrobinBC3D()- Returns a three-dimensional mimetic boundary operator that
Grid and Transformation Functions#
gridGen()- Generate a grid using transfinite interpolationtfi()- Transfinite interpolation for grid generationttm()- Tensor-product transfinite mappingjacobian2D()- Calculate the Jacobian matrix for 2D grid transformationsjacobian3D()- Calculate the Jacobian matrix for 3D grid transformations
Utility Functions#
amean()- Returns the arithmetic mean for every two pairs in a column vectorhmean()- Returns the harmonic mean for every two pairs in a column vectorweightsP()- Returns the m+1 weights of PweightsP2D()- Returns the two-dimensional weights of PweightsQ()- Returns the m+2 weights of QweightsQ2D()- Returns the two-dimensional weights of Qrk4()- Explicit Runge-Kutta 4th-order methodcurl2D()- Returns a two-dimensional mimetic curl operatorDI2()- Returns a 2D diagonal scaling matrixDI3()- Returns a 3D diagonal scaling matrixGI1()- Returns a 1D geomeric interpretation matrixGI13()- Returns a 3D geometric interpretation matrixGI2()- Returns a 2D geometric interpretation matrixmimeticB()- Returns a m+2 by m+1 one-dimensional mimetic boundary operatortensorGrad2D()- Calculate tensor gradient in 2D