numericalMethods.geometry.meshGeneration.util
Class AngleOptimization2D

numericalMethods.geometry.meshGeneration.util.AngleOptimization2D
All Implemented Interfaces:
java.io.Serializable

public class AngleOptimization2D
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
(package private)  double[] cosAngle
           
(package private)  double cosMinAngle
           
(package private)  double[] edge
           
(package private)  int[] index
           
(package private)  double[] length
           
(package private)  int numOfElements
           
(package private)  int numOfEvaluations
           
(package private)  int numOfPoints
           
(package private)  boolean[] pointIsFix
           
 
Constructor Summary
AngleOptimization2D(int[] index, boolean[] pointIsFix)
           
AngleOptimization2D(int[] index, int[] neighbour, int numOfPoints)
           
 
Method Summary
 double cosAngle(int element, int local)
           
 double edge(int element, int local, int coord)
           
 int getDoubleArrayParameterLength()
           
 void getDoubleArrayValue(double[] grad, int offset)
           
 int getDoubleArrayValueLength()
           
 double getDoubleValue()
           
 double getMinAngle(double[] p)
           
 double length(int element, int local)
           
static void minimize(double[] p, int[] index, int[] neighbour, double minAngle, int n, double ftol)
           
static boolean minimize(double[] p, int[] index, int[] neighbour, int n, double ftol)
           
static void minimize(double[] p, int[] index, int[] neighbour, int n, int m, double ftol)
           
(package private)  void nilFixedPoints(double[] grad)
           
static boolean[] pointIsFix(int[] index, int[] neighbour, int numOfPoints)
           
 void setDoubleArrayParameter(double[] p, int offset)
           
 void updateCosAngle()
           
 void updateEdge(double[] point)
           
 void updateLength()
           
 

Field Detail

length

double[] length

cosAngle

double[] cosAngle

edge

double[] edge

pointIsFix

boolean[] pointIsFix

index

int[] index

numOfElements

int numOfElements

numOfPoints

int numOfPoints

cosMinAngle

double cosMinAngle

numOfEvaluations

int numOfEvaluations
Constructor Detail

AngleOptimization2D

public AngleOptimization2D(int[] index,
                           boolean[] pointIsFix)

AngleOptimization2D

public AngleOptimization2D(int[] index,
                           int[] neighbour,
                           int numOfPoints)
Method Detail

pointIsFix

public static boolean[] pointIsFix(int[] index,
                                   int[] neighbour,
                                   int numOfPoints)

edge

public final double edge(int element,
                         int local,
                         int coord)

updateEdge

public void updateEdge(double[] point)

length

public final double length(int element,
                           int local)

updateLength

public void updateLength()

cosAngle

public double cosAngle(int element,
                       int local)

updateCosAngle

public void updateCosAngle()

getDoubleValue

public double getDoubleValue()

getDoubleArrayParameterLength

public int getDoubleArrayParameterLength()

setDoubleArrayParameter

public void setDoubleArrayParameter(double[] p,
                                    int offset)

getDoubleArrayValueLength

public int getDoubleArrayValueLength()

getDoubleArrayValue

public void getDoubleArrayValue(double[] grad,
                                int offset)

nilFixedPoints

void nilFixedPoints(double[] grad)

getMinAngle

public double getMinAngle(double[] p)

minimize

public static void minimize(double[] p,
                            int[] index,
                            int[] neighbour,
                            double minAngle,
                            int n,
                            double ftol)

minimize

public static boolean minimize(double[] p,
                               int[] index,
                               int[] neighbour,
                               int n,
                               double ftol)

minimize

public static void minimize(double[] p,
                            int[] index,
                            int[] neighbour,
                            int n,
                            int m,
                            double ftol)