Package pulse.problem.schemes.rte.dom
Class DiscreteOrdinatesMethod
- java.lang.Object
-
- pulse.util.UpwardsNavigable
-
- pulse.util.Group
-
- pulse.util.Accessible
-
- pulse.util.PropertyHolder
-
- pulse.problem.schemes.rte.RadiativeTransferSolver
-
- pulse.problem.schemes.rte.dom.DiscreteOrdinatesMethod
-
- All Implemented Interfaces:
Serializable,Descriptive,Reflexive
public class DiscreteOrdinatesMethod extends RadiativeTransferSolver
A class that manages the solution of the radiative transfer equation using the discrete ordinates method. The class provides an interface between the ODE adaptive integrator and the iterative solver, which are used together to solve to RTE.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DiscreteOrdinatesMethod(ParticipatingMedium problem, Grid grid)Constructs a discrete ordinates solver using the parameters (emissivity, scattering albedo and optical thickness) declared by theproblemobject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RTECalculationStatuscompute(double[] tempArray)Launches a calculation of the radiative transfer equation.StringgetDescriptor()If not null, will return the prefix, otherwise calls the superclass method.AdaptiveIntegratorgetIntegrator()InstanceDescriptor<AdaptiveIntegrator>getIntegratorDescriptor()IterativeSolvergetIterativeSolver()InstanceDescriptor<IterativeSolver>getIterativeSolverSelector()InstanceDescriptor<PhaseFunction>getPhaseFunctionSelector()voidinit(ParticipatingMedium problem, Grid grid)Retrieves the parameters frompandgridneeded to run the calculations.Resets the flux arrays.List<Property>listedTypes()By default, collects a list of default properties corresponding to types defined by listedKeywords().voidset(NumericPropertyKeyword type, NumericProperty property)An abstract method, which must be overriden to gain access over setting the values of all relevant (selected by the programmer)NumericProperties in subclasses ofAccessible.voidsetIntegrator(AdaptiveIntegrator integrator)voidsetIterativeSolver(IterativeSolver solver)StringtoString()-
Methods inherited from class pulse.problem.schemes.rte.RadiativeTransferSolver
addRTEListener, fireStatusUpdate, getFluxes, getPrefix, getRTEListeners, ignoreSiblings, interpolateTemperatureProfile, opticalCoordinateAt, setFluxes
-
Methods inherited from class pulse.util.PropertyHolder
addListener, areDetailsHidden, data, describe, firePropertyChanged, getListeners, initListeners, isListedNumericType, isListedParameter, listedKeywords, numericData, parameterListChanged, removeListeners, setPrefix, updateProperties, updateProperty
-
Methods inherited from class pulse.util.Accessible
accessibleChildren, genericProperties, genericProperty, numericProperties, numericProperty, property, update, update
-
Methods inherited from class pulse.util.UpwardsNavigable
addHierarchyListener, getHierarchyListeners, getParent, identify, removeHierarchyListener, removeHierarchyListeners, setParent, specificAncestor, tellParent
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface pulse.util.Descriptive
describe
-
-
-
-
Constructor Detail
-
DiscreteOrdinatesMethod
public DiscreteOrdinatesMethod(ParticipatingMedium problem, Grid grid)
Constructs a discrete ordinates solver using the parameters (emissivity, scattering albedo and optical thickness) declared by theproblemobject.- Parameters:
problem- the coupled problem statementgrid- the heat problem grid
-
-
Method Detail
-
compute
public RTECalculationStatus compute(double[] tempArray)
Description copied from class:RadiativeTransferSolverLaunches a calculation of the radiative transfer equation.- Specified by:
computein classRadiativeTransferSolver- Parameters:
tempArray- the input temperature profile- Returns:
- the status of calculation
-
getDescriptor
public String getDescriptor()
Description copied from class:PropertyHolderIf not null, will return the prefix, otherwise calls the superclass method.- Overrides:
getDescriptorin classPropertyHolder- Returns:
- the descriptor
- See Also:
Group.getSimpleName()
-
init
public void init(ParticipatingMedium problem, Grid grid)
Description copied from class:RadiativeTransferSolverRetrieves the parameters frompandgridneeded to run the calculations.Resets the flux arrays.- Overrides:
initin classRadiativeTransferSolvergrid- the grid
-
listedTypes
public List<Property> listedTypes()
Description copied from class:PropertyHolderBy default, collects a list of default properties corresponding to types defined by listedKeywords(). However, this method is overridable to include non-numeric properties.
- Overrides:
listedTypesin classPropertyHolder- Returns:
- a list of
Propertyinstances, which have been explicitly marked as a listed parameter for thisPropertyHolder.
-
getIntegrator
public final AdaptiveIntegrator getIntegrator()
-
getIntegratorDescriptor
public final InstanceDescriptor<AdaptiveIntegrator> getIntegratorDescriptor()
-
setIntegrator
public final void setIntegrator(AdaptiveIntegrator integrator)
-
getIterativeSolver
public final IterativeSolver getIterativeSolver()
-
getIterativeSolverSelector
public final InstanceDescriptor<IterativeSolver> getIterativeSolverSelector()
-
setIterativeSolver
public final void setIterativeSolver(IterativeSolver solver)
-
getPhaseFunctionSelector
public final InstanceDescriptor<PhaseFunction> getPhaseFunctionSelector()
-
set
public void set(NumericPropertyKeyword type, NumericProperty property)
Description copied from class:AccessibleAn abstract method, which must be overriden to gain access over setting the values of all relevant (selected by the programmer)
NumericProperties in subclasses ofAccessible. Typically this involves aswitchstatement that goes through the different options for thetypeand invokes differentset(...)methods to update the matchingNumericPropertywithproperty.- Specified by:
setin classAccessible- Parameters:
type- the type, which must be equal by definition toproperty.getType().property- the property, which contains new information.
-
-