spis.Surf.InteractModel
Class FunctionOfDistribFromFuncOfPart

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

public class FunctionOfDistribFromFuncOfPart
extends FunctionOfDistrib

Class Name : FunctionOfDistribFromFuncOfPart
Project ref : SPIS project
File name : FunctionOfDistribFromFuncOfPart.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 : Macroscopic function based on a microscopic function:
from f(partic), builds F(distrib) = sum_partic(weight*f(partic))
This can only be applied on an extensive function (typically a number of secondary particles)
Normalisation also to be confirmed (particle number if inFlux is PIC versus #/m2 if fluid...) TBW

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  boolean intensive
          flag: true if intensive function to be average (e.g. a temperature), false if extensive to be summed (e.g. flux)
private  ScalSurfField matId
          material Id field (used by the indexed microscopic functions)
private  ScalSurfField matModId
          material model Id field (used by the indexed microscopic functions)
private  FunctionOfParticle particleFunction
          microscopic function this "function of dsitribution" is based upon
 
Constructor Summary
FunctionOfDistribFromFuncOfPart(FunctionOfParticle particleFunction_, boolean intensive_, ScalSurfField matModId_, ScalSurfField matId_)
          default constructor.
 
Method Summary
 void compute(SurfDistrib flux, ScalSurfField result)
          Computes the local macroscopic function of the given incoming flux (PIC or fluid or...).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

particleFunction

private FunctionOfParticle particleFunction
microscopic function this "function of dsitribution" is based upon


intensive

private boolean intensive
flag: true if intensive function to be average (e.g. a temperature), false if extensive to be summed (e.g. flux)


matModId

private ScalSurfField matModId
material model Id field (used by the indexed microscopic functions)


matId

private ScalSurfField matId
material Id field (used by the indexed microscopic functions)

Constructor Detail

FunctionOfDistribFromFuncOfPart

public FunctionOfDistribFromFuncOfPart(FunctionOfParticle particleFunction_,
                                       boolean intensive_,
                                       ScalSurfField matModId_,
                                       ScalSurfField matId_)
default constructor.

Parameters:
particleFunction_ - microscopic function
intensive_ - if true intensive function to be averaged, not added
Method Detail

compute

public void compute(SurfDistrib flux,
                    ScalSurfField result)
Computes the local macroscopic function of the given incoming flux (PIC or fluid or...).

Specified by:
compute in class FunctionOfDistrib