public static ITransfinite Volume(int tag, TransfiniteSurfaceType type) { ITransfinite data = new ITransfinite(); data.Dim = 3; data.Tag = tag; data.MethodType = type.ToString(); return(data); }
/// <summary> /// Transfinite curve constraint. /// </summary> /// <param name="tag"> ID of the underlying curve. </param> /// <param name="type"> Curve distribution type. </param> /// <param name="nodesCount"> Number of nodes to be uniformly placed nodes on the curve. </param> /// <param name="coef"> Geometrical progression with power Coef for node distribution when using Progression type. </param> /// <returns></returns> public static ITransfinite Curve(int tag, TransfiniteCurveType type, int nodesCount, double coef) { ITransfinite data = new ITransfinite(); data.Dim = 1; data.Tag = tag; data.MethodType = type.ToString(); data.NodesNumber = nodesCount; data.Coef = coef; return(data); }
/// <summary> /// Transfinite surface constraint. /// </summary> /// <param name="tag"> ID of the underlying surface. </param> /// <param name="type"> Surface distribution type. </param> /// <param name="corners"> Specify the 3 or 4 corners of the transfinite interpolation explicitly. </param> /// <returns></returns> public static ITransfinite Surface(int tag, TransfiniteSurfaceType type, List <int> corners = default) { if (corners == default) { corners = new List <int>(); } ITransfinite data = new ITransfinite(); data.Dim = 2; data.Tag = tag; data.MethodType = type.ToString(); data.Corners = corners.ToArray(); return(data); }