Class MixedCoupledSolver
-
- All Implemented Interfaces:
Serializable,Solver<ParticipatingMedium>,Descriptive,Reflexive
- Direct Known Subclasses:
MixedCoupledSolverNL
public abstract class MixedCoupledSolver extends CoupledImplicitScheme implements Solver<ParticipatingMedium>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MixedCoupledSolver()MixedCoupledSolver(NumericProperty N, NumericProperty timeFactor, NumericProperty timeLimit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doubleevalRightBoundary(double alphaN, double betaN)doublefirstBeta()NumericPropertygetWeight()Set<NumericPropertyKeyword>listedKeywords()The superclass only lists theTIME_LIMITproperty.voidprepare(Problem problem)Contains preparatory steps to ensure smooth running of the solver.This includes creating aDiscretePulseobject and adjusting the grid of this scheme to match theDiscretePulsecreated for thisproblemFinally, a heating curve is cleared from the previously calculated values.doublepulse(int m)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.voidsetWeight(NumericProperty weight)voidsolve(ParticipatingMedium problem)Calculates the solution of thetand stores it in the respectiveHeatingCurve.-
Methods inherited from class pulse.problem.schemes.CoupledImplicitScheme
domain, finaliseStep, getCalculationStatus, getCoupling, isAutoUpdateFluxes, normalOperation, setAutoUpdateFluxes, setCalculationStatus, setCoupling
-
Methods inherited from class pulse.problem.schemes.ImplicitScheme
getTridiagonalMatrixAlgorithm, leftBoundary, setTridiagonalMatrixAlgorithm, timeStep, toString
-
Methods inherited from class pulse.problem.schemes.OneDimensionalScheme
clearArrays, getCurrentSolution, getPreviousSolution, setSolutionAt, signal
-
Methods inherited from class pulse.problem.schemes.DifferenceScheme
areDetailsHidden, copy, copyFrom, getCurrentPulseValue, getDiscretePulse, getGrid, getTimeInterval, getTimeLimit, initFrom, prepareStep, runTimeSequence, runTimeSequence, scaleSolution, setDetailsHidden, setGrid, setTimeInterval, setTimeLimit
-
Methods inherited from class pulse.util.PropertyHolder
addListener, data, describe, firePropertyChanged, getDescriptor, getListeners, getPrefix, ignoreSiblings, initListeners, isListedNumericType, isListedParameter, listedTypes, 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
-
-
-
-
Constructor Detail
-
MixedCoupledSolver
public MixedCoupledSolver()
-
MixedCoupledSolver
public MixedCoupledSolver(NumericProperty N, NumericProperty timeFactor, NumericProperty timeLimit)
-
-
Method Detail
-
prepare
public void prepare(Problem problem) throws SolverException
Description copied from class:DifferenceSchemeContains preparatory steps to ensure smooth running of the solver.This includes creating a
DiscretePulseobject and adjusting the grid of this scheme to match theDiscretePulsecreated for thisproblemFinally, a heating curve is cleared from the previously calculated values.All subclasses of
DifferenceSchemeshould override and explicitly call this superclass method where appropriate.- Overrides:
preparein classImplicitScheme- Parameters:
problem- the heat problem to be solved- Throws:
SolverException
-
solve
public void solve(ParticipatingMedium problem) throws SolverException
Description copied from interface:SolverCalculates the solution of thetand stores it in the respectiveHeatingCurve.- Specified by:
solvein interfaceSolver<ParticipatingMedium>- Parameters:
problem- - an accepted instance ofT- Throws:
SolverException
-
pulse
public double pulse(int m)
- Overrides:
pulsein classDifferenceScheme
-
firstBeta
public double firstBeta()
- Specified by:
firstBetain classImplicitScheme
-
evalRightBoundary
public double evalRightBoundary(double alphaN, double betaN)- Specified by:
evalRightBoundaryin classImplicitScheme
-
setWeight
public void setWeight(NumericProperty weight)
-
getWeight
public NumericProperty getWeight()
-
listedKeywords
public Set<NumericPropertyKeyword> listedKeywords()
Description copied from class:DifferenceSchemeThe superclass only lists theTIME_LIMITproperty.- Overrides:
listedKeywordsin classCoupledImplicitScheme- Returns:
- a set of
NumericPropertyKeywordinstances, which have been explicitly marked as a listed parameter for thisPropertyHolder.
-
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.- Overrides:
setin classDifferenceScheme- Parameters:
type- the type, which must be equal by definition toproperty.getType().property- the property, which contains new information.
-
-