finished BTCS prototype with closed boundary condition

This commit is contained in:
philippun 2023-08-10 11:25:54 +02:00
parent 2a97bb65c6
commit e8d322fb75
2 changed files with 95 additions and 111 deletions

View File

@ -70,13 +70,13 @@ int main(int argc, char *argv[]) {
// set up a simulation environment
Simulation simulation = Simulation(grid, bc, FTCS_APPROACH); // grid,boundary,simulation-approach
// (optional) set the timestep of the simulation
// set the timestep of the simulation
simulation.setTimestep(0.1); // timestep
// (optional) set the number of iterations
// set the number of iterations
simulation.setIterations(10000);
// (optional) set kind of output [CSV_OUTPUT_OFF (default), CSV_OUTPUT_ON, CSV_OUTPUT_VERBOSE]
// set kind of output [CSV_OUTPUT_OFF (default), CSV_OUTPUT_ON, CSV_OUTPUT_VERBOSE]
simulation.setOutputCSV(CSV_OUTPUT_VERBOSE);
// **** RUN SIMULATION ****

File diff suppressed because one or more lines are too long