ISAAR.MSolve.FEM/Interpolation/Jacobians/IsoparametricJacobian3D.cs
/// <summary>
/// Transforms the gradient of a scalar-valued function from the natural to the global cartesian coordinate system.
/// </summary>
/// <param name="naturalGradient">The gradient of a scalar-valued function in the natural coordinate system. Each entry 
///     corresponds to the derivative with respect to a single coordinate.</param>
Transforms the gradient of a scalar-valued function from the natural to the global cartesian coordinate system.
Transforms the gradient of a scalar - valued function from the natural to the global cartesian coordinate system .
public double[] TransformNaturalDerivativesToCartesian(double[] naturalGradient) 
        {
            var result = new double[3];
            result[0] = naturalGradient[0] * InverseMatrix[0, 0] + naturalGradient[1] * InverseMatrix[1, 0] +
                        naturalGradient[2] * InverseMatrix[2, 0];
            result[1] = naturalGradient[0] * InverseMatrix[0, 1] + naturalGradient[1] * InverseMatrix[1, 1] +
                        naturalGradient[2] * InverseMatrix[2, 1];
            result[2] = naturalGradient[0] * InverseMatrix[0, 2] + naturalGradient[1] * InverseMatrix[1, 2] +
                        naturalGradient[2] * InverseMatrix[2, 2];
            return result;
        }
public double [ ] TransformNaturalDerivativesToCartesian ( double [ ] naturalGradient ) { var result = new double [ 3 ] ; result [ 0 ] = naturalGradient [ 0 ] * InverseMatrix [ 0 , 0 ] + naturalGradient [ 1 ] * InverseMatrix [ 1 , 0 ] + naturalGradient [ 2 ] * InverseMatrix [ 2 , 0 ] ; result [ 1 ] = naturalGradient [ 0 ] * InverseMatrix [ 0 , 1 ] + naturalGradient [ 1 ] * InverseMatrix [ 1 , 1 ] + naturalGradient [ 2 ] * InverseMatrix [ 2 , 1 ] ; result [ 2 ] = naturalGradient [ 0 ] * InverseMatrix [ 0 , 2 ] + naturalGradient [ 1 ] * InverseMatrix [ 1 , 2 ] + naturalGradient [ 2 ] * InverseMatrix [ 2 , 2 ] ; return result ; }
Transforms the gradient of a scalar-valued function from the natural to the global cartesian coordinate system.
Transforms the gradient of a scalar - valued function from the natural to the global cartesian coordinate system .
//TODO: rowVector * matrix
naturalGradient
double[]
The gradient of a scalar-valued function in the natural coordinate system. Each entry
corresponds to the derivative with respect to a single coordinate.
The gradient of a scalar - valued function in the natural coordinate system . Each entry corresponds to the derivative with respect to a single coordinate .