33. isopar — Isoparametric transformations

Isoparametric transformations

class isopar.Isopar(eltype, coords, oldcoords)

A class representing an isoparametric transformation

The following three formulations are equivalent

trf = Isopar(eltype,coords,oldcoords)
G = F.isopar(trf)

trf = Isopar(eltype,coords,oldcoords)
G = trf.transform(F)

G = isopar(F,eltype,coords,oldcoords)

Methods

Create an isoparametric transformation.

type is one of the keys in Isopar.isodata coords and oldcoords can be either arrays, Coords or Formex instances, but should be of equal shape, and match the number of atoms in the specified transformation type

Methods

Isopar objects have the following methods:

transform(X)

Apply isoparametric transform to a set of coordinates.

Returns a Coords array with same shape as X

Functions defined in the module isopar

isopar.evaluate(atoms, x, y=0, z=0)

Build a matrix of functions of coords.

  • atoms: a list of text strings representing a mathematical function of x, and possibly of y and z.
  • x, y, z: a list of x- (and optionally y-, z-) values at which the atoms will be evaluated. The lists should have the same length.

Returns a matrix with nvalues rows and natoms colums.

isopar.isopar(X, eltype, coords, oldcoords)

Perform an isoparametric transformation on a Coords.

This is a convenience function that creates and uses an isoparametric transformation in a single line. It is equivalent to:

Isopar(eltype,coords,oldcoords).transform(X)

Documentation

Previous topic

32. geomtools — Basic geometrical operations.

Next topic

34. section2d — Some functions operating on 2D structures.

This Page