function timestep() {
            // Increments the well simulation one timestep
            updateSimulation();
            updateTime(currentStep / getMaxSteps());
            //IncrementStep
            if (currentStep >= getMaxSteps()) {
                clearInterval(intervalFunc);
                $scope.simActive = false;
            }
            else {
                currentStep = currentStep + getStepMagnitude();
                if (currentStep > getMaxSteps()) {
                    currentStep = getMaxSteps();
                }
            }

            function getStepMagnitude() {
                // Determines the number of playback steps advanced each interval]
                var stepMagnitude = Math.round(1680.0 * Math.pow($scope.speedSlider, 3) - 2520.0 * Math.pow($scope.speedSlider, 2) + 1270.0 * $scope.speedSlider + 1);
                if (stepMagnitude < 1) {
                    stepMagnitude = 1;
                }
                return stepMagnitude;
            }
            //updates the display of the time

        }
//Updates the plate for each timestep
Updates the plate for each timestep
Updates the plate for each timestep
function timestep() {
            updateSimulation();
            updateTime(currentStep / getMaxSteps());
            if (currentStep >= getMaxSteps()) {
                clearInterval(intervalFunc);
                $scope.simActive = false;
            }
            else {
                currentStep = currentStep + getStepMagnitude();
                if (currentStep > getMaxSteps()) {
                    currentStep = getMaxSteps();
                }
            }
            function getStepMagnitude() {
                var stepMagnitude = Math.round(1680.0 * Math.pow($scope.speedSlider, 3) - 2520.0 * Math.pow($scope.speedSlider, 2) + 1270.0 * $scope.speedSlider + 1);
                if (stepMagnitude < 1) {
                    stepMagnitude = 1;
                }
                return stepMagnitude;
            }
        }
function timestep ( ) { updateSimulation ( ) ; updateTime ( currentStep / getMaxSteps ( ) ) ; if ( currentStep >= getMaxSteps ( ) ) { clearInterval ( intervalFunc ) ; $scope . simActive = false ; } else { currentStep = currentStep + getStepMagnitude ( ) ; if ( currentStep > getMaxSteps ( ) ) { currentStep = getMaxSteps ( ) ; } } function getStepMagnitude ( ) { var stepMagnitude = Math . round ( 1680.0 * Math . pow ( $scope . speedSlider , 3 ) - 2520.0 * Math . pow ( $scope . speedSlider , 2 ) + 1270.0 * $scope . speedSlider + 1 ) ; if ( stepMagnitude < 1 ) { stepMagnitude = 1 ; } return stepMagnitude ; } }
Updates the plate for each timestep
Updates the plate for each timestep
// Increments the well simulation one timestep //IncrementStep // Determines the number of playback steps advanced each interval] //updates the display of the time