|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectspis.Surf.SurfField.SurfField
spis.Surf.SurfField.VectSurfField
Class Name : VectSurfField
Project ref : SPIS project
File name : VectSurfField.java
File type : class
Copyright : ONERA, 2 Av. E. Belin, 31055 Toulouse cedex, France
http://www.onecert.fr
Status : under development
Creation : 25/08/2003
Modification :
Description : Vectorial Surface Field class.
Versions and anomalies correction :
Version number | Author (name, e-mail) | Corrections/Modifications |
0.1 | JF Roussel, roussel@onecert.fr | Creation |
Constructor Summary | |
VectSurfField(SurfMesh surfMesh,
Centring centring,
VectFunctionOfVect f)
Constructor defining the field from a passed function. |
|
VectSurfField(SurfMesh surfMesh,
Centring centring,
VectTable values)
Basic constructor, defining the table. |
|
VectSurfField(VectSurfField f)
Copy constructor |
Method Summary | |
void |
add(SurfField field)
Increments this field by another vector field (on the spot), which must also be a VectSurfField |
ScalSurfField |
computeScalProd(float[] vect)
Computes the scalar product with a fixed vector and returns the result |
ScalSurfField |
computeScalProd(VectSurfField vectField)
Computes the scalar product with another vector field and returns the result |
void |
divide(ScalSurfField scalField)
Divides this field by another scalar field (on the spot) |
SurfField |
getSimilar()
returns a similar SurfField: same subtype and same Centring |
VectTable |
getTable()
Provides the values of the field at a the mesh elements it is defined on (surfaces/edges/nodes depending on centring). |
boolean |
isOfSameSubtype(SurfField f)
tests whether the passed field is of similar subtype |
boolean |
isZero()
Tests whether a Field has zero value (all over the mesh). |
void |
linComb(float a1,
SurfField field,
float a2)
Computes the linear combination a1*this + a2*field and affects it to this field (field must also be a VectSurfField) |
void |
mult(float factor)
Multiplies this field by a constant factor (on the spot) |
void |
mult(ScalSurfField scalField)
Multiplies this field by another scalar field (on the spot) |
void |
mult(ScalSurfField scalField,
float factor)
Multiplies this field by another scalar field and a constant factor (on the spot) |
void |
normalise()
normalises the vectors (to length 1) |
void |
reset()
Sets this field to zero value |
void |
set(float[] value)
Sets this field to a uniform value |
void |
set(VectSurfField inField)
Sets this field to the same local values as the passed filed (copies the values). |
void |
substract(SurfField field)
Decrements this field by another vector field (on the spot), which must also be a VectSurfField |
Methods inherited from class spis.Surf.SurfField.SurfField |
checkDim, checkSameMesh, checkSameMeshAndCentring, checkSameSubtype, getCentring, getName, getSm, getTime, setName, setTime |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public VectSurfField(SurfMesh surfMesh, Centring centring, VectTable values)
public VectSurfField(SurfMesh surfMesh, Centring centring, VectFunctionOfVect f)
public VectSurfField(VectSurfField f)
Method Detail |
public void mult(float factor)
mult
in class SurfField
public void mult(ScalSurfField scalField, float factor)
mult
in class SurfField
public void mult(ScalSurfField scalField)
mult
in class SurfField
public void divide(ScalSurfField scalField)
divide
in class SurfField
public void add(SurfField field)
add
in class SurfField
public void substract(SurfField field)
substract
in class SurfField
public void linComb(float a1, SurfField field, float a2)
linComb
in class SurfField
public void normalise()
public ScalSurfField computeScalProd(VectSurfField vectField)
vectField
-
public ScalSurfField computeScalProd(float[] vect)
public SurfField getSimilar()
getSimilar
in class SurfField
public boolean isOfSameSubtype(SurfField f)
isOfSameSubtype
in class SurfField
public void set(float[] value)
public void set(VectSurfField inField)
public void reset()
reset
in class SurfField
public VectTable getTable()
public boolean isZero()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |