spis.Surf.InteractModel
Class ConstantFunctionOfDistrib

java.lang.Object
  extended byspis.Surf.InteractModel.FunctionOfDistrib
      extended byspis.Surf.InteractModel.ConstantFunctionOfDistrib

public class ConstantFunctionOfDistrib
extends FunctionOfDistrib

Class Name : ConstantFunctionOfDistrib
Project ref : SPIS project
File name : ConstantFunctionOfDistrib.java
File type : class
Copyright : ONERA, 2 Av. E. Belin, 31055 Toulouse cedex, France http://www.onecert.fr
Status : under development
Creation : 8 mars 2004
Modification :

Description : Constant function of a distribution
NB: this is very different from a FunctionOfDistribFromFuncOfPart(FunctionOfParticleNothing), since in that other case the constant is summed over particles and the function of the distribution returns the particle number, not a constant like here

Versions and anomalies correction :

Version numberAuthor (name, e-mail) Corrections/Modifications
0.1 JF Roussel, roussel@onecert.frCreation


Version:
0.1
Author:
JF Roussel

Field Summary
private  float value
          Constant value of the function
 
Constructor Summary
ConstantFunctionOfDistrib(float constant)
          constructor
 
Method Summary
 void compute(SurfDistrib fluxIn, ScalSurfField result)
          Computes the (local) result of applying this yield on the incoming surface distribution fluxIn (one value per surface element in result)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

private float value
Constant value of the function

Constructor Detail

ConstantFunctionOfDistrib

public ConstantFunctionOfDistrib(float constant)
constructor

Method Detail

compute

public void compute(SurfDistrib fluxIn,
                    ScalSurfField result)
Description copied from class: FunctionOfDistrib
Computes the (local) result of applying this yield on the incoming surface distribution fluxIn (one value per surface element in result)

Specified by:
compute in class FunctionOfDistrib
See Also:
FunctionOfDistrib.compute(spis.Surf.SurfDistrib.SurfDistrib, spis.Surf.SurfField.ScalSurfField)