public class MFreeFactory
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
MFreeFactory.FemElementTreeNode
Class for storing node make-up of elements
|
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_IPNT_FACTOR |
static int |
DEFAULT_MINIMUM_DEPENDENCIES |
static RadialWeightFunction.RadialWeightFunctionType |
DEFAULT_RADIAL_KERNEL_TYPE |
static double |
DEFAULT_TOLERANCE |
Constructor and Description |
---|
MFreeFactory() |
Modifier and Type | Method and Description |
---|---|
static MFreeModel3d |
cloneFem(MFreeModel3d model,
FemModel3d fem) |
static CubaturePoint3d[] |
computeVoronoiCubature(Point3d[] locs,
PolygonalMesh surface)
Computes cubature points at a set of provided locations, assigning a weight equal to
the volume of the voronoi region about each point
|
static MFreeModel3d |
createBeam(MFreeModel3d model,
double[] size,
int[] res) |
static MFreeModel3d |
createBeam(MFreeModel3d model,
RadialWeightFunction.RadialWeightFunctionType fType,
double[] size,
int[] res) |
static MFreeModel3d |
createBeam(MFreeModel3d model,
RadialWeightFunction.RadialWeightFunctionType fType,
double[] size,
int[] res,
int[] ipntRes) |
static MFreeModel3d |
createCylinder(MFreeModel3d model,
double h,
double r,
int nh,
int nr)
Creates a cylinder by distributing nodes and points radially
|
static MFreeModel3d |
createModel(MFreeModel3d model,
MFreeNode3d[] nodes,
PolygonalMesh surface,
CubaturePoint3d[] cpnts) |
static MFreeModel3d |
createModel(MFreeModel3d model,
Point3d[] nodeLocs,
CubaturePoint3d[] ipnts,
PolygonalMesh surface,
RadialWeightFunction.RadialWeightFunctionType fType) |
static MFreeModel3d |
createModel(MFreeModel3d model,
Point3d[] nodeLocs,
Point3d[] ipntLoc,
PolygonalMesh surface) |
static MFreeModel3d |
createModel(MFreeModel3d model,
Point3d[] nodeLocs,
Point3d[] ipntLocs,
PolygonalMesh surface,
RadialWeightFunction.RadialWeightFunctionType fType) |
static MFreeModel3d |
createModel(MFreeModel3d model,
PolygonalMesh surface,
RigidTransform3d pos,
int nNodes,
int nIPnts) |
static MFreeModel3d |
createModel(MFreeModel3d model,
PolygonalMesh surface,
RigidTransform3d transform,
int nNodes,
int nIPnts,
int[] gridRes,
RadialWeightFunction.RadialWeightFunctionType fType) |
static MFreeModel3d |
createSphere(MFreeModel3d model,
double r,
int nr)
Creates an MFree model of a sphere, distributing nodes and integration points
using subdivided octadecahedrals.
|
static Point3d[] |
generatePointLocations(PolygonalMesh mesh,
int[] res,
int nPoints) |
public static double DEFAULT_TOLERANCE
public static int DEFAULT_IPNT_FACTOR
public static int DEFAULT_MINIMUM_DEPENDENCIES
public static RadialWeightFunction.RadialWeightFunctionType DEFAULT_RADIAL_KERNEL_TYPE
public static MFreeModel3d createBeam(MFreeModel3d model, double[] size, int[] res)
public static MFreeModel3d createBeam(MFreeModel3d model, RadialWeightFunction.RadialWeightFunctionType fType, double[] size, int[] res)
public static MFreeModel3d createBeam(MFreeModel3d model, RadialWeightFunction.RadialWeightFunctionType fType, double[] size, int[] res, int[] ipntRes)
public static MFreeModel3d createModel(MFreeModel3d model, PolygonalMesh surface, RigidTransform3d pos, int nNodes, int nIPnts)
public static MFreeModel3d createModel(MFreeModel3d model, PolygonalMesh surface, RigidTransform3d transform, int nNodes, int nIPnts, int[] gridRes, RadialWeightFunction.RadialWeightFunctionType fType)
public static Point3d[] generatePointLocations(PolygonalMesh mesh, int[] res, int nPoints)
public static MFreeModel3d createCylinder(MFreeModel3d model, double h, double r, int nh, int nr)
model
- model to which the elements should be added, or
null
if the model is to be created from scratch.h
- length along the z axisr
- radius in the x-y planenh
- node resolution along the lengthnr
- node resolution along the radius (including center)public static MFreeModel3d createSphere(MFreeModel3d model, double r, int nr)
model
- model to populate, created if nullr
- radiusnr
- number of radial layers, including the centerpublic static MFreeModel3d createModel(MFreeModel3d model, Point3d[] nodeLocs, Point3d[] ipntLoc, PolygonalMesh surface)
public static CubaturePoint3d[] computeVoronoiCubature(Point3d[] locs, PolygonalMesh surface)
locs
- original locationssurface
- mesh surfacepublic static MFreeModel3d createModel(MFreeModel3d model, Point3d[] nodeLocs, CubaturePoint3d[] ipnts, PolygonalMesh surface, RadialWeightFunction.RadialWeightFunctionType fType)
public static MFreeModel3d createModel(MFreeModel3d model, Point3d[] nodeLocs, Point3d[] ipntLocs, PolygonalMesh surface, RadialWeightFunction.RadialWeightFunctionType fType)
public static MFreeModel3d createModel(MFreeModel3d model, MFreeNode3d[] nodes, PolygonalMesh surface, CubaturePoint3d[] cpnts)
public static MFreeModel3d cloneFem(MFreeModel3d model, FemModel3d fem)