/// <summary> /// Setup interpolation for all nodes in the mesh. /// </summary> public void Setup(SMeshData mesh) { var nodeInterpData = new Interpolator.InterPData[mesh.NumberOfNodes]; for (int i = 0; i < mesh.NumberOfNodes; i++) { nodeInterpData[i] = SetupNodeInterpolation(mesh, i); } _nodeInterpolator = new Interpolator(nodeInterpData); }
public void SetupNodeInterpolation() { MeshNodeInterpolation interpFactory = new MeshNodeInterpolation(_mesh); interpFactory.AllowExtrapolation = _allowExtrapolation; interpFactory.Setup(); _nodeInterpolator = interpFactory.NodeInterpolator; _nodeInterpolator.DeleteValue = _deleteValue; _nodeInterpolator.CircularType = _circularType; _nodeValues = new double[_mesh.Nodes.Count]; }
/// <summary> /// Setup interpolation for all nodes in the mesh. /// </summary> public void Setup() { var nodeInterpData = new Interpolator.InterPData[_mesh.Nodes.Count]; for (int i = 0; i < _mesh.Nodes.Count; i++) { MeshNode node = _mesh.Nodes[i]; nodeInterpData[i] = SetupNodeInterpolation(node); } _nodeInterpolator = new Interpolator(nodeInterpData); }
/// <summary> /// Setup interpolation from element center values to node values. /// </summary> public void SetupElmtToNodeInterpolation() { if (_nodeInterpolator == null) { MeshNodeInterpolation interpFactory = new MeshNodeInterpolation(); interpFactory.AllowExtrapolation = _allowExtrapolation; if (_mesh != null) { interpFactory.Setup(_mesh); _nodeValues = new double[_mesh.Nodes.Count]; } else { interpFactory.Setup(_smesh); _nodeValues = new double[_smesh.NumberOfNodes]; } _nodeInterpolator = interpFactory.NodeInterpolator; _nodeInterpolator.DeleteValue = _deleteValue; _nodeInterpolator.CircularType = _circularType; } }