Class FFTSolution

java.lang.Object
  extended bySolution
      extended byFluidSolution
          extended byFFTSolution

public class FFTSolution
extends FluidSolution

FFTsolution - Fast Fourier Transform solver

See Also:
FluidSolution, Solution

Field Summary
protected  boolean isForward
          True if needs to shiftLevels
protected  FFT keepFFT
          FFT previous (or initial) step
protected  FFT toolFFT
          FFT tool
 
Fields inherited from class Solution
df, dfm, dfp, dg, dgm, dgp, dh, dhm, dhp, dx, f, f0, fm, fp, g, gm, gp, h, hm, hp, ic, initialMoments, mesh, method, pde, s, scheme, sm, sp, time, x, x_0, x_1, xOffset, xSize, y_0, y_1, yOffset, ySize
 
Constructor Summary
FFTSolution(RunData runData)
           
 
Method Summary
 void discretize(ShapeFunction function)
          Discretize the initial Shape function and initialize the moments
 boolean hasOption(java.lang.String option)
          Tells whether the solution implements a option
 boolean next(RunData runData, PhysData physData)
          Advance the solution forward one step in time.
 boolean previous(RunData runData, PhysData physData)
          Starting procedure for FFT schemes.
protected  void shiftLevels()
          Internal function for copying new -> old
 
Methods inherited from class Solution
calculateMoments, getTime, getValue, getValue, getWinSize, incTime, limits, measure, momentsDeviation, output, plot, rescale, setIC, setMethod, setPde, setScheme, setTime, updateHeaders
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

keepFFT

protected FFT keepFFT
FFT previous (or initial) step


toolFFT

protected FFT toolFFT
FFT tool


isForward

protected boolean isForward
True if needs to shiftLevels

Constructor Detail

FFTSolution

public FFTSolution(RunData runData)
Method Detail

discretize

public void discretize(ShapeFunction function)
Discretize the initial Shape function and initialize the moments

Overrides:
discretize in class FluidSolution
Parameters:
function - The initial shape to be approximated

next

public boolean next(RunData runData,
                    PhysData physData)
Advance the solution forward one step in time. The equation is set by the internal variable pde and the numerical scheme by the internal variable scheme

Specified by:
next in class Solution
Parameters:
runData - List of run parameters
physData - Physical parameters (e.g. potential)
Returns:
True if a scheme is implemented for that equation
See Also:
RunData

previous

public boolean previous(RunData runData,
                        PhysData physData)
Starting procedure for FFT schemes.

Specified by:
previous in class Solution
Parameters:
runData - List of run parameters
Returns:
True if an initialisation scheme is implemented for that equation
See Also:
RunData

hasOption

public boolean hasOption(java.lang.String option)
Tells whether the solution implements a option

Specified by:
hasOption in class Solution
Parameters:
option - The the option to implement
Returns:
True if the option is implemented
See Also:
jbone.pdeNames, jbone.schemeNames

shiftLevels

protected void shiftLevels()
Internal function for copying new -> old