20.07.2015 Views

PhD Thesis - staffweb - University of Greenwich

PhD Thesis - staffweb - University of Greenwich

PhD Thesis - staffweb - University of Greenwich

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

APPENDIX 6 : SMARTFIRE CONTROL ARCHITECTURE AND BLACKBOARDCurrent blackboard architecture:class CFD_Blackboard_Class {public ://// Constructor and Destructor.//CFD_Blackboard_Class( void );~CFD_Blackboard_Class( void );//// Functions to update the Blackboard or the CFD code control structures.//update_cfd_to_blackboard( void );update_blackboard_to_cfd( void );//// Temporary "punch-through" code to allow groups to be examined and changed.//void set_group_solver_iterations( const Int_Type group_num,const Var_Index_Type& var_point, const Int_Type num_iters );void set_group_solver_relaxation( const Int_Type group_num,const Var_Index_Type& var_point, const Float_Type relax_value );void set_group_solver_tolerance( const Int_Type group_num,const Var_Index_Type& var_point, const Float_Type tol_value );Int_Type get_group_solver_iterations( const Int_Type group_num,const Var_Index_Type& var_point );Float_Type get_group_solver_relaxation( const Int_Type group_num,const Var_Index_Type& var_point );Float_Type get_group_solver_tolerance( const Int_Type group_num,const Var_Index_Type& var_point );Float_Type get_group_solver_residual( const Int_Type group_num,const Var_Index_Type& var_point );//// Copies <strong>of</strong> the domain, control and status objects from the CFD code.//Domain_ClassControl_ClassStatus_Classbb_domain;bb_control;bb_status;//// Solved variable control and status arrays.//Int_Type * bb_solver_max_iterations;Int_Type * bb_solver_max_inner_iterations;Int_Type * bb_solver_max_group_iterations;Solver_Class_Type * bb_solver_class;Solver_Type * bb_solver_type;Float_Type * bb_solver_relaxation;Float_Type * bb_solver_false_time_step;Float_Type * bb_solver_residual;Float_Type * bb_solver_solution_error;Boolean * bb_solver_use_false_time;Boolean * bb_solver_use_solver_relax;Boolean * bb_solver_used;Boolean * bb_solver_use_value_solver;Appendix 11.6 Page 146-3 3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!