Skip to content

Commit

Permalink
mention ODE-Solvers
Browse files Browse the repository at this point in the history
  • Loading branch information
ArseniyKholod committed Nov 2, 2023
1 parent 6c62bc8 commit bb518f5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/literate/src/files/innards_of_the_basic_setup.jl
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ ode = semidiscretize(semi, (0.0, 1.0));
# the target variables for each node within each element. The `allocate_coefficients` function
# initializes `u_ode` as a 1D zero-vector with a length that depends on the number of variables,
# elements, nodes, and dimensions. The use of a 1D vector format is consistent with the
# requirements of the `solve` function from OrdinaryDiffEq.jl. Therefore, Trixi.jl follows this
# requirements of the ODE-solvers from OrdinaryDiffEq.jl. Therefore, Trixi.jl follows this
# format to be able to utilize the functionalities of OrdinaryDiffEq.jl.

# - `wrap_array(u_ode, semi)`
Expand Down Expand Up @@ -194,15 +194,15 @@ ode = semidiscretize(semi, (0.0, 1.0));

# ## Functions `solve` and `rhs!`

# Once the `ODEProblem` object is initialized, the `solve` function from the OrdinaryDiffEq.jl
# package can be utilized to compute an approximated solution using the instructions contained in
# the `ODEProblem` object.
# Once the `ODEProblem` object is initialized, the `solve` function and one of the ODE-solvers from
# the OrdinaryDiffEq.jl package can be utilized to compute an approximated solution using the
# instructions contained in the `ODEProblem` object.

sol = solve(ode, CarpenterKennedy2N54(williamson_condition=false), dt=0.01, save_everystep=false);

# Since the `solve` function is defined in another package without knowledge of how to handle
# discretizations performed in Trixi.jl, it is necessary to define the right-hand-side function,
# `rhs!`, within Trixi.jl.
# Since the `solve` function and the ODE-solver are defined in another package without knowledge
# of how to handle discretizations performed in Trixi.jl, it is necessary to define the
# right-hand-side function, `rhs!`, within Trixi.jl.

# Trixi.jl includes a set of `rhs!` functions designed to compute `du` according to the structure
# of the setup. These `rhs!` functions calculate interface, mortars, and boundary fluxes, in
Expand Down

0 comments on commit bb518f5

Please sign in to comment.