mirror of
https://git.gfz-potsdam.de/naaice/tug.git
synced 2025-12-16 02:48:23 +01:00
finished BTCS prototype with closed boundary condition
This commit is contained in:
parent
2a97bb65c6
commit
e8d322fb75
@ -70,13 +70,13 @@ int main(int argc, char *argv[]) {
|
|||||||
// set up a simulation environment
|
// set up a simulation environment
|
||||||
Simulation simulation = Simulation(grid, bc, FTCS_APPROACH); // grid,boundary,simulation-approach
|
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
|
simulation.setTimestep(0.1); // timestep
|
||||||
|
|
||||||
// (optional) set the number of iterations
|
// set the number of iterations
|
||||||
simulation.setIterations(10000);
|
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);
|
simulation.setOutputCSV(CSV_OUTPUT_VERBOSE);
|
||||||
|
|
||||||
// **** RUN SIMULATION ****
|
// **** RUN SIMULATION ****
|
||||||
|
|||||||
200
proto/BTCS.ipynb
200
proto/BTCS.ipynb
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user