org.jscience.physics.fluids.dynamics.characteristics
Class QuadraticCharacteristics3D

java.lang.Object
  extended by org.jscience.physics.fluids.dynamics.characteristics.QuadraticCharacteristics3D

public class QuadraticCharacteristics3D
extends java.lang.Object

This class calculates the values of the different magnitudes cx, cy, cc y cd at the root of the caracteristics for a 3D meshing with a speed field. Tipically these magnitudes correspond with the three speed components x, y and z and with the concentration of a contaminant.


Constructor Summary
QuadraticCharacteristics3D(KernelADFC kadfc, NavierStokesMesh m, double deltaT, boolean contam)
          Constructor.
 
Method Summary
 void calculate(double[] cxa, double[] cya, double[] cza, double[] cca)
          Calculates the values transported by the vectors which are pased as arguments.
 void initializeCaches()
          Call this method before calculate().
 void setSpeedFields(double[] vxa, double[] vya, double[] vza, double[] vxb, double[] vyb, double[] vzb)
          Indicatestes the values of the two speed components in each node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuadraticCharacteristics3D

public QuadraticCharacteristics3D(KernelADFC kadfc,
                                  NavierStokesMesh m,
                                  double deltaT,
                                  boolean contam)
Constructor. Takes as arguments the mesh and the time step duration

Parameters:
kadfc - kernel parent of the current process
m - mesh to consider
deltaT - time step
contam - indicates if the contaminant should be transported or not
Method Detail

calculate

public void calculate(double[] cxa,
                      double[] cya,
                      double[] cza,
                      double[] cca)
Calculates the values transported by the vectors which are pased as arguments. The new values are placed in those same vectors.

Parameters:
cxa - component x of the speed
cya - component y of the speed
cza - component z of the speed
cca - contaminant concentration

initializeCaches

public void initializeCaches()
Call this method before calculate(). The invocation is done by default if needed.


setSpeedFields

public void setSpeedFields(double[] vxa,
                           double[] vya,
                           double[] vza,
                           double[] vxb,
                           double[] vyb,
                           double[] vzb)
Indicatestes the values of the two speed components in each node.

Parameters:
vxa - component x of the speed at instant n
vya - component y of the speed at instant n
vza - component z of the speed at instant n
vxb - component x of the speed at instant n-1
vyb - component y of the speed at instant n-1
vzb - component z of the speed at instant n-1