/* * declarations.h * Laplace2D * * Created by RJ Linton on 4/5/09. * Copyright 2009 RJ Linton. All rights reserved. * */ #ifndef _declarations_H #define _declarations_H #include #include //#include #include "gnuplot_i.hpp" //These seem to be unnecessary I'm not sure why... //#include //#include //#include //#include //using namespace std; using std::string; using std::ofstream; using std::ios; using std::endl; using std::cout; //File name string varibales. Change baseDirString to change root location for output files const string baseDirString = "/Users/rj/Desktop/"; const string intermediateFileName = baseDirString + "intermediateData.dat"; const string approxSolutionFileName = baseDirString + "approxSolution.dat"; const string exactSolutionFileName = baseDirString + "exactSolution.dat"; const string gnuplotFileName = baseDirString + "gnuplot.dat"; //Mathematical constants. Vnot is problem specific. const double PI = 4.0*atan(1.0); const double Vnot = 100; //File stream objects. Nameing convention matches file name convention above. ofstream intermediateOut; ofstream approxSolutionOut; ofstream exactSolutionOut; ofstream gnuplotOut; //Random number genterator variables. Change the low numbr and high number and range will reset. const int lowest = 10; const int highest = 80; const int range = (highest - lowest) + 1; //Input variables set to default values. These values are changed at runtime. int resolution = 15; double accuracy = 0.001; //Loop counter variables. Remember to reset for each loop. int i = 0; int j = 0; #endif