PhD Thesis - staffweb - University of Greenwich
PhD Thesis - staffweb - University of Greenwich
PhD Thesis - staffweb - University of Greenwich
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
APPENDIX 6 : SMARTFIRE CONTROL ARCHITECTURE AND BLACKBOARD//// Control <strong>of</strong> problem class//class Control_Class {private :Boolean debug_item[ MAX_VARIABLES+1 ];public :};Float_Type delta_time; // Time step size for transient runsDiff_Scheme_Type difference_scheme;// Difference scheme to use// {i.e. UPWIND, HYBRID, POWER_LAW, EXPONENTIAL}Int_Type num_<strong>of</strong>_time_steps; // Number <strong>of</strong> time steps to use in transient runInt_Type turbulence_model; // Turbulence model to use (KE_MODEL only)Int_Type probe_cell_number; // Cell to look in for monitor informationInt_Type num_<strong>of</strong>_sweeps; // Number <strong>of</strong> sweeps (outer iterations) to doInt_Type num_<strong>of</strong>_flow_sweeps; // Number <strong>of</strong> flow algorithm sweeps to doInt_Type ke_source_method; // Kinetic energy source methodInt_Type debug_start_iteration; // Debug switched to a range <strong>of</strong> sweeps onlyInt_Type debug_end_iteration;Int_Type debug_start_time_step; // Debug switched to a range <strong>of</strong> time steps onlyInt_Type debug_end_time_step;Int_Type debug_start_cell; // Debug cell rangeInt_Type debug_end_cell;Int_Type print_frequency; // Frequency <strong>of</strong> run time sweep infoint sweep_adapt_every; // Mesh adaption and refinement parametersint sweep_refine_every;Float_Type tolerance; // Global default convergence tolerance valueBoolean be_silent; // Do not use the screen for outputBoolean use_heat; // Activate the heat solverBoolean use_flow; // Activate the flow solversBoolean use_boussinesq; // Switch to select buoyancy calculation methodBoolean use_solidification; // Redundant switch to allow for solidificationBoolean use_cross_product; // Activate cross-product diffusion termsBoolean use_turbulence; // Activate turbulence (solves turbulent vars)Boolean use_output_var; // Create a var result fileBoolean use_output_phi; // Create a PHI result fileBoolean use_flowvis_phi; // Use Flowvis format for PHI fileBoolean use_restart; // Read restart info and continue processingBoolean use_transient; // Transient simulation (steady state otherwise)Boolean use_wall_2; // A boundary for PHOENICS compatibilityBoolean use_pressure_ref_point; // Switch to use a cell for pressure referenceBoolean use_pressure_ref; // Switch to use a pressure referenceBoolean use_density_ref; // Switch to use a density referenceBoolean use_temperature_ref; // Switch to use a temperature referenceBoolean use_external_pressure; // Switch to use an external pressure valueBoolean create_restart; // Create a restart file at the end <strong>of</strong> this runBoolean use_refinement; // Switch to allow mesh refinement (NA)Boolean use_adaption; // Switch to allow mesh adaption (NA)Boolean use_volumetric_sources; // Flag to indicate use <strong>of</strong> volume sourcesBoolean use_debug_dump; // Flag to write debug data to fileBoolean use_log_file; // Keep a log file if activeBoolean use_restart_dumps; // Flag to allow creation <strong>of</strong> restarts each sweepBoolean use_table_file; // Residual and monitor output to a graph fileBoolean started_table_file;int restart_dump_interval; // Frequency <strong>of</strong> debugs (1=every sweep)Algorithm_Type flow_algorithm; // Switch for flow algorithm (SIMPLE only)Boolean show_storage_info; // Switch for storage information debuggingBoolean check_mem_allocation; // More exhaustive memory allocation informationinline Boolean & use_debug( const Var_Index_Type& var_point ){return debug_item[ var_point ];}Appendix 11.6 Page 146-8 8