Package pulse.problem.schemes
Class Grid2D
- java.lang.Object
-
- pulse.util.UpwardsNavigable
-
- pulse.util.Group
-
- pulse.util.Accessible
-
- pulse.util.PropertyHolder
-
- pulse.problem.schemes.Grid
-
- pulse.problem.schemes.Grid2D
-
- All Implemented Interfaces:
Serializable,Descriptive
public class Grid2D extends Grid
A
Grid2Dis used to partition the space and time domain of aProblem2Dto allow a numeric solution with aDifferenceScheme. This type of grid is two-dimensional in space, meaning that it defines rules for partitioning of both the axial and radial dimensions for interpreting the laser flash experiments.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGrid2D()Grid2D(NumericProperty gridDensity, NumericProperty timeFactor)Creates aGrid2Dwhere the radial and axial spatial steps are equal to the inversegridDensity.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadjustStepSize(DiscretePulse pulse)Calls theadjustTomethod from superclass, then adjusts thegridDensityof thegridifdiscretePulseSpot < (Grid2D)grid.hy.Grid2Dcopy()Creates a newGridobject with exactly the same parameters as this one.doublegetYStep()doublegridRadialDistance(double radial, double lengthFactor)The dimensionless radial distance on thisGrid2D, which is theradial/lengthFactorrounded up to a factor of the coordinate stephy.voidsetGridDensity(NumericProperty gridDensity)Sets the value of thegridDensity.protected voidsetGridDensityValue(int N)voidsetTimeFactor(NumericProperty timeFactor)Sets the value of thetauFactor.-
Methods inherited from class pulse.problem.schemes.Grid
getGridDensity, getGridDensityValue, getTimeFactor, getTimeStep, getXStep, gridAxialDistance, gridTime, listedKeywords, set, setTimeStep, setXStep, toString
-
Methods inherited from class pulse.util.PropertyHolder
addListener, areDetailsHidden, 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
-
Grid2D
protected Grid2D()
-
Grid2D
public Grid2D(NumericProperty gridDensity, NumericProperty timeFactor)
Creates aGrid2Dwhere the radial and axial spatial steps are equal to the inversegridDensity. Otherwise, calls the superclass constructor.- Parameters:
gridDensity- the grid densitytimeFactor- theτ<sub>F</sub>factor
-
-
Method Detail
-
copy
public Grid2D copy()
Description copied from class:GridCreates a newGridobject with exactly the same parameters as this one.
-
setTimeFactor
public void setTimeFactor(NumericProperty timeFactor)
Description copied from class:GridSets the value of thetauFactor. Automatically recalculates thetauvalue.- Overrides:
setTimeFactorin classGrid- Parameters:
timeFactor- a NumericProperty of theTAU_FACTORtype
-
adjustStepSize
public void adjustStepSize(DiscretePulse pulse)
Calls theadjustTomethod from superclass, then adjusts thegridDensityof thegridifdiscretePulseSpot < (Grid2D)grid.hy.- Parameters:
pulse- the discrete puls representation
-
setGridDensityValue
protected void setGridDensityValue(int N)
- Overrides:
setGridDensityValuein classGrid
-
setGridDensity
public void setGridDensity(NumericProperty gridDensity)
Sets the value of thegridDensity. Automatically recalculates thehxanhyvalues.- Overrides:
setGridDensityin classGrid- Parameters:
gridDensity- a NumericProperty of theGRID_DENSITYtype
-
gridRadialDistance
public double gridRadialDistance(double radial, double lengthFactor)The dimensionless radial distance on thisGrid2D, which is theradial/lengthFactorrounded up to a factor of the coordinate stephy.- Parameters:
radial- the distance along the radial directionlengthFactor- a factor which has the dimension of length- Returns:
- a double representing the radial distance on the finite grid
-
getYStep
public double getYStep()
-
-