public class SimpleCompo extends ComputationalScheme implements java.util.Observer
An end-user can use the SimpleCompo computational scheme from a graphical user interface or from a simple BeanShell script, as follows:
cote = 1.262082f; lame = 1.322082f; myScheme = new SimpleCompo("myScheme"); myScheme.setEdit(1); myScheme.setThreadPool(new ThreadPool(bsh.args)); myScheme.setGigogne(assmbObj); myScheme.setVolume(((cote*7.0f)+(lame*2.0f))*((cote*7.0f)+(lame*2.0f))); myScheme.setNormalizationFactor(3.016e17f); myScheme.setMicrolib(micrObj); myScheme.setBurnupList(new float[]{9.375f, 18.75f, 37.5f, 75.0f, 500.0f}); myScheme.setAutopBurnupList(new float[]{9.375f, 18.75f, 37.5f, 500.0f}); myScheme.setTempWaterList(new float[]{300.16f, 400.16f, 500.16f}); myScheme.setTempFuelList(new float[]{309.9f, 579.9f}); myScheme.setIsotopesEdit(new Isotope[]{U235,U238,PU239,PU240,PU241,PU242, AM241,AM242M,XE135PF}); myScheme.setSolutionType("Sybil"); myScheme.run(); compoObj = (Compo)myScheme.operatorOut;where it is assumed that objects assmbObj (class Gigogne) and micrObj (class Microlib) already exist and that the array bsh.args contains the list of servers. This computational scheme is executed in two steps. First, the instances variables describing the calculation are set using the methods with prefix set. Second, the computational scheme is executing using the run() method inherited from the Procedure class.
Author: Alain Hebert, Ecole Polytechnique de Montreal (2002)
operatorOut, thread
Constructor and Description |
---|
SimpleCompo(java.lang.String name)
Use this constructor to create a new SimpleCompo object.
|
Modifier and Type | Method and Description |
---|---|
Operator |
exec()
implementation of the computational scheme.
|
void |
setAutopBurnupList(float[] myAutopBurnupList)
set the burnup steps in MYday/Tonne corresponding to the
self-shielding calculations.
|
void |
setBurnupList(float[] myBurnupList)
set the burnup steps in MYday/Tonne corresponding to the flux
calculations.
|
void |
setEdit(int myEdit)
set the edition index for this computational scheme.
|
void |
setGigogne(Gigogne myGeom)
set the geometry.
|
void |
setIsotopesEdit(Isotope[] myIsotopesEdit)
set the particularized isotopes of the outout Compo object.
|
void |
setMicrolib(Microlib myMicrolib)
set the cross section information.
|
void |
setNormalizationFactor(float myNormalizationFactor)
set the normalization factor.
|
void |
setSolutionType(java.lang.String solutionType)
set the type of solution algorithm.
|
void |
setTempFuelList(float[] myTempFuelList)
set the fuel temperatures used as global parameters.
|
void |
setTempWaterList(float[] myTempWaterList)
set the moderator temperatures used as global parameters.
|
void |
setThreadPool(ThreadPool myThreadPool)
set the ThreadPool.
|
void |
setVolume(float myVolume)
set the volume of the complete domain.
|
void |
update(java.util.Observable obj,
java.lang.Object arg)
implement Observer interface.
|
getName
isAlive, join, notifyObserver, run, startThread
public SimpleCompo(java.lang.String name)
name
- user-defined name of the SimpleCompo objectpublic void setEdit(int myEdit)
myEdit
- edition index. Increasing value of myEdit will
cause increasing amount of listing information. Set myEdit
to zero to avoid listing information.public void setThreadPool(ThreadPool myThreadPool)
myThreadPool
- ThreadPool object.public void setGigogne(Gigogne myGeom)
myGeom
- user-defined Gigogne object.public void setVolume(float myVolume)
myVolume
- volume of the complete domain.public void setNormalizationFactor(float myNormalizationFactor)
myNormalizationFactor
- power normalization factorpublic void setMicrolib(Microlib myMicrolib)
myMicrolib
- user-defined Microlib object.public void setBurnupList(float[] myBurnupList)
myBurnupList
- list of burnup values.public void setAutopBurnupList(float[] myAutopBurnupList)
myAutopBurnupList
- list of burnup values.public void setTempWaterList(float[] myTempWaterList)
myTempWaterList
- list of temperature values in Celsius.public void setTempFuelList(float[] myTempFuelList)
myTempFuelList
- list of temperature values in Celsius.public void setIsotopesEdit(Isotope[] myIsotopesEdit)
myIsotopesEdit
- list of Isotope objects.public void setSolutionType(java.lang.String solutionType)
solutionType
- This variable is chosen among the following values:
public Operator exec() throws JargonException
exec
in interface ProcedureIntf
exec
in class Procedure
JargonException
public void update(java.util.Observable obj, java.lang.Object arg)
update
in interface java.util.Observer