Example #1
0
        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];
        }
Example #2
0
 /// <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;
     }
 }