Changelog
Trixi.jl follows the interpretation of semantic versioning (semver) used in the Julia ecosystem. Notable changes will be documented in this file for human readability.
Changes in the v0.18 lifecycle
Added
- Auxiliary variables are now also supported for
DGSEMon (also statically refined) serialP4estMesh{2}es without AMR. The new equationsConservativeLinearScalarAdvectionEquation2DandNonconservativeLinearScalarAdvectionEquation2Duse them for a spatially varying advection velocity (#3438). - The flux splitting
splitting_lax_friedrichsis now also available forCompressibleEulerEquations1D(#3489).
Changed
- Fixes non-periodic boundary conditions for
FDSBPsolvers onTreeMesh{1}andTreeMesh{2}, which failed with aMethodErrorsince v0.15.7 (#3490).
Deprecated
Changes when updating to v0.18 from v0.17.x
Changed
- The internal function
create_cachewas split into separate functions for the different parts of the storage, which affects packages extending or calling it:create_cache_hyperbolic(cache of a hyperbolic semidiscretization),create_cache_volume_integral,create_cache_mortar,create_cache_indicator,create_cache_subcell_limiter,create_cache_amr_controller,create_cache_averaging_callback, andcreate_cache_euler_acoustics.create_cache_indicator_for_amrwas merged intocreate_cache_indicator. The functions handling the storage of all nested volume integrals were renamed tocreate_cache_all_volume_integrals,resize_cache_all_volume_integrals!, andreinit_cache_all_volume_integrals!; the methods for a single volume integral toresize_cache_volume_integral!andreinit_cache_volume_integral!. Furthermore,resize_subcell_limiter_cache!was renamed toresize_cache_subcell_limiter!. ForDGMulti,create_cache_volume_integralnow receives the storage created so far instead of the real typeRealT, as for the other solvers (#3398). - Internal functions were renamed to use the abbreviations
initandreinitconsistently, which affects packages extending or calling them:reinitialize_containers!toreinit_containers!,reinitialize_boundaries!toreinit_boundaries!,initialize_left_neighbor_connectivity!toinit_left_neighbor_connectivity!,initialize_mean_valuestoinit_mean_values,initialize_cache!(AveragingCallback) toinit_cache_averaging_callback!, andinitialize_dgmulti_solution_containertoinit_dgmulti_solution_container. The methods ofinitialize!forTreeMeshandUnstructuredSortedBoundaryTypeswere renamed toinit_refinement!andinit_boundary_types!;initialize!now only refers to the initialization of callbacks (#3402). - The node indices describing the faces of interfaces, boundaries, and mortars of
P4estMeshes andT8codeMeshes are now stored as values of the new enumerationNodeIndex(e.g.,NodeIndex.BeginandNodeIndex.IForward) instead ofSymbols (e.g.,:beginand:i_forward). Packages that use these internal node indices directly (e.g., comparisons such as:i_backward in indices) need to be updated accordingly (#3332). - The
indicesof aBoundaryConditionCoupledmust now be given asNodeIndexvalues, e.g.,(NodeIndex.End, NodeIndex.IForward)instead of(:end, :i_forward)(#3332). - For the
CompressibleNavierStokesDiffusion1Dequations, the viscous stresstau_xxis now computed astau_xx = (4/3) * mu * (dv1/dx)instead oftau_xx = mu * (dv1/dx)(#3202). Here,muis the user-given dynamic viscosity. This is the 1D reduction of the stress tensor of a Newtonian fluid with zero bulk viscosity (Stokes' hypothesis), consistent withCompressibleNavierStokesDiffusion2DandCompressibleNavierStokesDiffusion3D. Thus, the results of all 1D compressible Navier-Stokes simulations with the same parameters change. Moreover,max_diffusivitynow usesmax(4/3, gamma / Prandtl)instead ofmax(1, gamma / Prandtl), so parabolic time step estimates (e.g., viaStepsizeCallbackwithcfl_parabolic) are smaller ifgamma / Prandtl < 4/3. To recover the previous results, passmu = (3/4) * mu_oldandPrandtl = (3/4) * Prandtl_old; the second factor keeps the thermal conductivitykappa = gamma * mu * R / ((gamma - 1) * Prandtl)unchanged. A viscosity functionmu(u, equations)needs to be scaled by3/4accordingly. - The methods of
get_element_variables!for the different components were split into separate functions:get_element_variables_volume_integral!,get_element_variables_mesh!,get_element_variables_callback!,get_element_variables_controller!, andget_element_variables_indicator!. Only the methods for the semidiscretization and the solver remainget_element_variables!. Custom indicators used for AMR must now specializeget_element_variables_indicator!instead ofget_element_variables!(element_variables, indicator, ::AMRCallback). Similarly, custom callbacks and AMR controllers must specializeget_element_variables_callback!andget_element_variables_controller!. As part of this change, theSaveSolutionCallbacknow also works when aContinuousCallbackis passed to the ODE solver (#3399). - For equations with auxiliary variables (i.e.,
nauxvariables(equations) > 0), the auxiliary variables at a node are now also passed to functions of the conservative variables used for analysis and output, e.g.,cons2prim(u, aux, equations)instead ofcons2prim(u, equations). This applies tocons2prim,cons2entropy,entropy, thesolution_variablesof theSaveSolutionCallbackand of plots, and the functions passed tointegrateandcalc_error_norms. Such equations must now implementcons2entropy(u, aux, equations)to use theAnalysisCallbackandcons2prim(u, aux, equations)to use theSaveSolutionCallbackwith their default settings (#3466).
Removed
- The deprecated keyword arguments
storage_type,real_type, andflux_differencing_kernelofsemidiscretizewere removed. Usesemi = trixi_adapt(semi; storage_type, real_type, tuning = Tuning(; flux_differencing_kernel))before callingsemidiscretize(semi, tspan)instead, and use the adaptedsemiafterwards, e.g., to create callbacks (#3404). - The deprecated keyword argument
flux_differencing_kerneloftrixi_adaptwas removed. Usetrixi_adapt(semi; tuning = Tuning(; flux_differencing_kernel))instead (#3404).
Changes in the v0.17 lifecycle
Added
PositivityPreservingLimiterZhangShunow supportsDGMultisolvers withSBP()approximation types, e.g., on triangles (#3450).Auxiliary variables, i.e., spatially varying but time-independent fields stored at every node such as a prescribed background flow. Whether equations use auxiliary variables is a fixed property of their type given by
nauxvariables(equations); their values are given by the functionaux_fieldpassed toSemidiscretizationHyperbolic. The auxiliary variables are passed as additional arguments to fluxes, numerical fluxes, boundary conditions, and source terms. Currently, they are supported forDGSEMon (also statically refined and MPI-parallel)P4estMesh{3}es without AMR, also with volume fluxes wrapped inFluxTurbo. On GPUs, they are supported on conforming (also MPI-parallel)P4estMesh{3}es for equations without nonconservative terms, also withFluxTurbo. The new equationsConservativeLinearScalarAdvectionEquation3DandNonconservativeLinearScalarAdvectionEquation3Duse them for a spatially varying advection velocity (#3239, #3396, #3436, #3437, #3441).Contour plotting using Makie.jl is now supported for
PlotData2DTriangulateddata (#3253).Makie.plot,Makie.contour, andMakie.contourfof 2D and 3D solutions pass the keyword arguments ofPlotData2Dsuch assliceandpointtoPlotData2D. Similarly,Makie.plotof 1D solutions passesnvisnodes,reinterpolate, andvariable_namestoPlotData1D. All other keyword arguments ofMakie.plotof solutions andPlotData1D/PlotData2Dobjects, e.g.,colorrange, are passed to Makie, andtrixiheatmapaccepts the attributes ofMakie.mesh. Plots of slices of 3DDGMultiMeshsolutions and plots of 1DDGMultiMeshsolutions now show the correct axis labels (#3405).Added multi-GPU support for 2D and 3D
P4estMeshes, i.e., GPU computations with MPI (#3240, #3364). A local CUDA/ROCm-aware MPI installation is required. For configuration, see Parallelization in the docs. Currently, only hyperbolic problems (noSemidiscretizationHyperbolicParabolic) on conforming meshes (no mortars, thus also no AMR) are supported. Trixi.jl now re-exports the moduleKernelAbstractions, e.g., to select the GPU of each MPI rank viaKernelAbstractions.device!.Experimental support for Apple GPUs via Metal.jl, e.g., using
trixi_adapt(semi; real_type = Float32, storage_type = MtlArray)(#2833). Metal supports onlyFloat32(notFloat64). Because of upstream bugs in Metal.jl, some setups, in particular in 3D, currently crash, hang, or silently produce wrong results on Apple M1/M2 GPUs.The new method
trixi_adapt(semi; storage_type, real_type, flux_differencing_kernel)adapts a semidiscretization, e.g., toFloat32or GPU arrays. Use it before callingsemidiscretizeand use the adaptedsemiafterwards, e.g., to create callbacks. Previously,semidiscretizeadapted the semidiscretization internally, so the originalsemiwas still used for callbacks and could share outdated data with the adapted one, e.g., after AMR. The GPU kernel forVolumeIntegralFluxDifferencingis now part of thecachefrom the construction of the semidiscretization, and the warnings about the shared memory and workgroup sizes are only shown for GPU arrays.The new type
Tuningbundles performance settings of the GPU and KernelAbstractions.jl kernels on aP4estMeshorT8codeMesh, which can be passed totrixi_adapt(semi; tuning), e.g.,tuning = Tuning(flux_differencing_kernel = FullSweep()). The settings are stored assemi.cache.tuningfor all volume integrals. Settings that are not set explicitly use the defaults of the backend, e.g.,HalfSweep()on GPUs andFullSweep()on the KernelAbstractions.jl CPU backend (#3370).The
SummaryCallbackwarns if the time type of the time integrator differs from the real type of the semidiscretization, e.g., when passingdt = 1.0instead ofdt = 1tosolvefor aFloat32semidiscretization.The parabolic right-hand side
rhs_parabolic!on conformingP4estMeshs can now be executed on GPUs and with the KernelAbstractions.jl CPU backend (#3314, #3328).The hyperbolic right-hand side
rhs_hyperbolic!on non-conforming 2D and 3DP4estMeshs, i.e., with mortars, can now be executed on GPUs and with the KernelAbstractions.jl CPU backend (#3251, #3381).semidiscretizeof aSemidiscretizationHyperbolicParabolicsupports the keyword argumentsstorage_type,real_type, andflux_differencing_kernelfor theP4estMesh(#3313).boundary_condition_slip_walland the less diffusive wave speed estimatemax_abs_speedare now available forPassiveTracerEquations(#3319).New entropy-stable surface flux
FluxTracerEquationsUpwindforPassiveTracerEquations, which upwinds the tracers with the mass flux of an entropy-stable flow flux (#3320).Contour plotting using Makie.jl is now supported for
PlotData2DCartesiandata (#3238).TimerOutputs.jl v1 is now supported in addition to v0.5 (#3172). When TimerOutputs.jl v1 is used, the new preference
Trixi.set_timer_bars!toggles the bars visualizing the fraction of time and allocations spent in each section of the timer output of theSummaryCallback. The bars are disabled by default.TreeMeshandUnstructuredMesh2Dnow support flux-differencing volume kernel with FDSBP operators for conservative hyperbolic systems (#3187).The low-order FV scheme of
VolumeIntegralSubcellLimitingcan now be customized viavolume_integral_low_order. It defaults to the first-order subcell finite volume scheme, whileVolumeIntegralPureLGLFiniteVolumeO2enables a second-order alternative (#3185).PlotData2Dnow visualizes finite volume data on aTreeMesh(polydeg = 0DGSEM, orBlockFV) as distinct cells instead of interpolating between neighboring cell values, for bothPlots.jlandMakie.jl(#3150).The GPU kernel of
VolumeIntegralFluxDifferencingonP4estMesh{3}/T8codeMesh{3}can now be chosen via the new keyword argumentflux_differencing_kernelofsemidiscretize, eitherHalfSweep()(default),FullSweep(), orFullSweepGlobal(#3206).Add
@inboundsstatements and their correct propagation throughBase.@propagate_inbounds, which substitutes@inlineto correctly propagate inbounds access forTreeMesh1D(#3267, #3268)TreeMesh2D(#3262, #3266)TreeMesh3D(#3208, #3263)StructuredMesh1D(#3283)StructuredMesh2D(#3274)StructuredMesh3D(#3272)UnstructuredMesh2D(#3282)P4estMesh2DandT8codeMesh2D(#3276, #3281)P4estMesh3DandT8codeMesh3D(#3273, #3279)- MPI interfaces and mortars of
TreeMesh2D,P4estMesh2D,P4estMesh3D,T8codeMesh2D, andT8codeMesh3D, including the parabolic terms ofP4estMesh2D(#3289) - the KernelAbstractions.jl kernels of
P4estMesh2D,P4estMesh3D,T8codeMesh2D, andT8codeMesh3D(#3321) - the subcell finite volume methods
VolumeIntegralPureLGLFiniteVolumeandVolumeIntegralPureLGLFiniteVolumeO2and the shock-capturing volume integralsVolumeIntegralShockCapturingHG,VolumeIntegralShockCapturingRRG, andVolumeIntegralAdaptivewithIndicatorHennemannGassneron all mesh types supporting them (#3428) - the volume integrals
VolumeIntegralAdaptivewithIndicatorEntropyChange,IndicatorEntropyCorrection, andIndicatorEntropyCorrectionShockCapturingCombinedon all mesh types supporting them (#3432) - the indicators
IndicatorHennemannGassner,IndicatorMax, andIndicatorNodalFunctionon all mesh types andIndicatorLöhneron three-dimensional meshes (#3447)
Moreover, explicit bounds checks are added before assuming inbounds access. This improves the performance in common cases; developers are encouraged to start Julia with
julia --check-bounds=yesduring development in case of issues.The parabolic terms on
P4estMesh3Ds now support MPI parallelization, on conforming (#3291) and nonconforming meshes (#2894).PlotData2Dcan now slice three-dimensionalDGMultiMeshsolutions on affine tetrahedral elements (#3296).For the
CompressibleNavierStokesDiffusionequations, a specific gas constantRdifferent from unity is now supported, which then results in a different temperatureT = p / (R * rho)(#3165, #3383).Trixi.jl now supports KernelAbstractions.jl v0.10 (and AcceleratedKernels.jl v0.5) in addition to v0.9. Note that the
CPUbackend of KernelAbstractions.jl v0.10 compiles kernels like the GPU backends and runs them with PoCL, so the performance of the threading backend:kernelabstractionscan differ from v0.9 (#3390).
Changed
IndicatorHennemannGassnerforDGMultisolvers withSBP()approximation types on triangles now sorts the modal coefficients by their total degree. Previously, the energies of the highest modes were computed from the wrong modal coefficients, e.g., resulting in nonzero energies of the highest modes for polynomials of lower degree. This changes the blending factors and thus the results of shock capturing simulations on triangles.IndicatorHennemannGassner,IndicatorLöhner(on three-dimensional meshes), andIndicatorMaxthrow aDimensionMismatchif their basis has a different number of nodes than the one of the solver. Previously,IndicatorMaxsilently returned wrong values if the basis of the indicator had more nodes (#3447).energy_internal,energy_total, andentropyof theLinearElasticityEquations1Dnow use the P-wave moduluslambda + 2 * muinstead of Young's modulus, so that they are conserved by the equations, andcons2entropyreturns the gradient ofentropy.initial_condition_convergence_testis now an exact solution for all material parameters; previously, it agreed with the solution only at integer times forc1 = 1(#3409).- Fixed boundary conditions and source terms of the parabolic terms for
DGMultisolvers.BoundaryConditionNeumannnow leaves the solution at the boundary unchanged when computing the gradient (previously, it imposed a homogeneous Dirichlet condition there). Normal fluxes prescribed by boundary conditions (e.g.,BoundaryConditionNeumannand the heat flux of adiabaticBoundaryConditionNavierStokesWalls) are now scaled by the face Jacobian.source_terms_parabolicare now evaluated at the quadrature points and projected onto the polynomial space, which changes results forPolynomial()approximations (#3407). - A state-dependent viscosity
mu(u, equations)of theCompressibleNavierStokesDiffusionequations is now always called with the transformed variables (seegradient_variable_transformation), i.e., primitive variables with temperature or entropy variables. Previously, the conservative variables were passed when computing the parabolic time step restriction of theStepsizeCallbackand the viscous stresses in theAnalysisSurfaceIntegral(#3383). - The shear stress coefficients
DragCoefficientShearStress2DandLiftCoefficientShearStress2Dnow support theCompressibleNavierStokesDiffusion2Dequations withgradient_variables = GradientVariablesEntropy()(#3387). Previously, they silently returned wrong values in this case. - Fixed crashes of the
AnalysisCallbackin MPI-parallel simulations onP4estMeshes andT8codeMeshes if an MPI rank has no elements, e.g., after coarsening with AMR (#3418). - Fixed unbalanced 3D
P4estMeshes created withtrees_per_dimensionorP4estMeshCubedSphere: thep4estconnectivity now contains all edges and corners connecting trees, as required byp4estfor 2:1 balancing. Previously, the mesh could violate the 2:1 balance after deep local refinement, which could crash AMR simulations during coarsening. The 2D connectivity now contains all corners connecting trees, which fixes assertion failures with debug builds ofp4est. Thus,balance!for 2DP4estMeshes now callsp4est_balanceonly once instead of twice if the connectivity contains corners. Connectivities without corners, e.g., from restart files written by older versions of Trixi.jl, are still balanced twice. Custom connectivities passed to aP4estMeshmust be complete in the sense ofp4est, i.e., contain all corners (and edges in 3D) connecting trees, to be balanced correctly (#3427, #3429). - Fixed reading uninitialized memory when refining and coarsening elements with AMR in 1D and 2D. For non-
isbitselement types such asBigFloat, this threw anUndefRefError. The interpolation and projection are now applied dimension by dimension as in 3D, which is faster and changes results only up to round-off (#3361). - Fixed stochastic memory errors and crashes when the solution has a non-
isbitselement type (e.g.,BigFloator tracer types of SparseConnectivityTracer.jl):wrap_arrayand the containers created withunsafe_wrap_or_allocnow usereshapeinstead ofunsafe_wrapfor such element types, so that the garbage collector keeps the stored objects alive. On Julia v1.10, AMR (resize!of the solution and the containers) is not supported for non-isbitselement types anymore.isbitselement types such asFloat64are not affected (#3306). - Fixed memory errors and crashes of the
AnalysisCallbackwhen the solution has a non-isbitselement type (e.g.,Measurementfrom Measurements.jl orBigFloat) (#3417). - The diffusive eigenvalue estimate (
max_diffusivity) for the Navier-Stokes equations has changed (#3192). The new estimate for the heat conduction eigenvalue does not involve the term 1/(gamma - 1). Thus, thecfl_parabolicmight need to be reduced by this factor, which is forgamma = 1.4a reduction factor of2.5. - Fixes a bug in the parabolic terms on nonconforming
P4estMesh3Ds: The parabolic fluxes of the large elements at mortars were computed with the wrong normal direction and scaling. Thus, results of parabolic simulations with mortars onP4estMesh3Ds (e.g., with AMR) change. - Fixes two bugs in the MPI-parallel parabolic terms of
P4estMesh2Ds (#3344): The gradient fluxes at MPI interfaces were computed with the normal direction of the local instead of the primary element. Thus, results of MPI-parallel simulations withParabolicFormulationLocalDGchange and now agree with serial simulations. Moreover, the parabolic time step restriction (cfl_parabolicof theStepsizeCallback) is now reduced across all MPI ranks. Previously, MPI ranks could use different time steps. - Fixes bugs in the wave speed estimates of the
IdealGlmMhdEquations2D:min_max_speed_davisused the x-velocity of the right state instead of the y-velocity in the y-direction (orientation = 2), andmin_max_speed_naivewith anormal_directionused both states instead of only the left state for the minimum wave speed estimate (inconsistent withmin_max_speed_naivewith anorientation). Thus, results of simulations using HLL-type fluxes with these wave speed estimates, e.g.,flux_hllon aTreeMesh2DorFluxHLL(min_max_speed_naive)on curvilinear meshes, change. - Fixes a bug in
max_abs_speed_naivewith anormal_directionfor theCompressibleEulerMulticomponentEquations2D: The sound speed was not scaled by the length of thenormal_direction. Moreover, the less diffusive wave speed estimatemax_abs_speedis now also implemented with anormal_directionfor theCompressibleEulerMulticomponentEquations2Dand theIdealGlmMhdMultiIonEquations2D, consistent with the versions with anorientation. Previously, it fell back tomax_abs_speed_naive. Thus, results of simulations with these equations on curvilinear meshes (e.g.,StructuredMesh,UnstructuredMesh2D,P4estMesh) and the defaultflux_lax_friedrichschange. - Fixes a bug in
pressureof theIdealGlmMhdMultiIonEquations2DandIdealGlmMhdMultiIonEquations3D: the energypsi^2 / 2of the GLM divergence cleaning field was not subtracted, inconsistent withcons2prim. Thus, the ion pressures (and quantities derived from them) change ifpsi != 0. - Fixes a bug in the boundary flux computation of the GPU/KernelAbstractions.jl backends on
P4estMeshes andT8codeMeshes: if a boundary condition type had no boundaries, the boundary fluxes of all subsequent boundary condition types were not computed (#3346). - Fixes a bug in the
GlmSpeedCallbackon curvilinear meshes (StructuredMesh,UnstructuredMesh2D,P4estMesh,T8codeMesh) and forDGMultisolvers in multiple space dimensions: the divergence cleaning speedc_hwas computed from the Jacobian determinant and thus decreased with mesh refinement (likeΔx^(ndims - 1)). Now, it takes the metric terms into account and agrees with the value on aTreeMeshfor Cartesian elements. Thus, results of MHD simulations using theGlmSpeedCallbackon these meshes change (#3360). - Fixes a bug in
flux_godunovwith anormal_directionfor theHyperbolicDiffusionEquations2D: The upwind dissipation of the gradient variablesq1, q2was applied componentwise instead of to the normal component of their jump. This was wrong for normal directions that are not aligned with the coordinate axes and anti-dissipative for normal directions with negative components. Thus, results of simulations usingflux_godunovwith these equations change, e.g., onUnstructuredMesh2D,P4estMesh,T8codeMesh,DGMultiMesh, or curvedStructuredMeshes. Results onTreeMeshes and CartesianStructuredMeshes are unchanged (#3406). semidiscretizeconverts the time spantspanto the real typereal(semi)of the semidiscretization. Thus,tspan = (0.0, 1.0)results inFloat32time values for aFloat32semidiscretization. Previously, the time was only converted when passingreal_typetosemidiscretize.- The storage of nested volume integrals (e.g., a
VolumeIntegralAdaptiveorVolumeIntegralEntropyCorrectionused asvolume_integral_defaultof aVolumeIntegralShockCapturingHGType) is now created, resized, and reinitialized in the same way for all nesting levels, both when the semidiscretization is constructed and after mesh adaptation. This fixes the blending factors of a nestedVolumeIntegralEntropyCorrection, which were not sized when the cache was created. Unsupported combinations withVolumeIntegralSubcellLimitingnow throw an error when the semidiscretization is constructed. Developers of new volume integrals only implement methods for the volume integral itself (e.g., the internal methodscreate_cache,resize_volume_integral_cache!, andvolume_integral_children), not for nested ones; see the description of the interface insrc/solvers/dg.jl(#3378). - Fixes a bug in the nonconservative surface terms at mortars of
TreeMesh2Ds andTreeMesh3Ds: The nonconservative fluxes of the small and the large elements were swapped, i.e., each element received the nonconservative term of its neighbor. Thus, results of simulations with nonconservative terms (e.g., ideal GLM-MHD withflux_nonconservative_powell) on nonconformingTreeMeshes (e.g., with AMR) change (#3293). - Fixed the pressure coefficients
LiftCoefficientPressure3DandDragCoefficientPressure3Don boundary faces that are not affine, where wrong surface nodes were used. With MPI, these coefficients are now summed over all ranks (#3408). - The analysis quantities
l2_divbandlinf_divbofDGMultisolvers now compute the divergence of the magnetic field instead of its product with the Jacobian of the elements, andl2_divbis normalized by the volume of the domain as for the DGSEM solvers.linf_divbno longer fails with multiple threads (#3408). linf_divbof a 2DTreeMeshis now the maximum over all MPI ranks (#3408).- With MPI, the
SteadyStateCallbacknow terminates the simulation only if the steady state is reached on all MPI ranks, not on any of them (#3408). - Fixes a bug in parabolic boundary conditions prescribing a normal flux on
P4estMeshes: the normal flux ofBoundaryConditionNeumannand the normal heat flux ofAdiabaticwalls were not scaled by the surface Jacobian. Thus, results with nonzero prescribed normal fluxes change. User-defined parabolic boundary conditions for theDivergence()operator must scale prescribed normal fluxes by the norm of thenormal_directionin the same way;flux_inneralready includes this scaling (#3412). - Fixes a bug in the AMR of
T8codeMeshes: a family of elements was coarsened if its first element was marked for coarsening, even if other elements of the family were not. Now, a family is coarsened only if all of its elements are marked for coarsening, as forP4estMeshes. Thus, results of simulations with AMR onT8codeMeshes change and now agree with the corresponding simulations onP4estMeshes (#3421). - The smoothing of the blending factors of the
IndicatorHennemannGassner(alpha_smooth = true, the default) now also takes MPI interfaces and MPI mortars into account on MPI-parallelTreeMeshes,P4estMeshes, andT8codeMeshes. Previously, neighboring elements on other MPI ranks were ignored, so that results of MPI-parallel simulations with shock capturing differed from serial ones (#3416).
Deprecated
- The keyword arguments
storage_type,real_type, andflux_differencing_kernelofsemidiscretizeare deprecated. Usesemi = trixi_adapt(semi; storage_type, real_type, tuning = Tuning(; flux_differencing_kernel))before callingsemidiscretize(semi, tspan)instead. - The keyword argument
flux_differencing_kerneloftrixi_adaptis deprecated. Usetrixi_adapt(semi; tuning = Tuning(; flux_differencing_kernel))instead (#3370).
Changes when updating to v0.17 from v0.16.x
Changed
- The
NonConservativeJumpterms now requirenormal_direction_llandnormal_direction_rras function arguments instead of the previous averagednormal_direction(#2890). This is necessary because the averagednormal_directiondid not yield a consistent jump term. - Renamed the hyperbolic right-hand side function
rhs!torhs_hyperbolic!at the semidiscretization and solver levels for consistency withrhs_parabolic!(#2921). The internaldefault_rhshelper now rejectsSemidiscretizationHyperbolicParabolic, which has separate hyperbolic and parabolic right-hand sides and thus lacks a single default right-hand side function. - The internal ODE right-hand side functions such as
rhs_hyperbolic!andrhs_parabolic!now dispatch additionally on the backend type (#3113). The public interfacerhs_hyperbolic!(du_ode, u_ode, semi, t)is unchanged. - Trixi.jl now uses t8code v4 through T8code.jl v0.9 (#2706). This results in some changes to the t8code API in examples and internally in Trixi.jl. Moreover, the
T8codeMeshconstructors gained the keyword argumentpartition_allow_for_coarsening, which keeps same-level sibling elements together during mesh partitioning to allow later coarsening. - The function
cons2primforCompressibleNavierStokesDiffusionhas been changed (#3125). It now returns the primitive variables(rho, v1, v2, v3, p)(identical to theCompressibleEulerEquations) instead of(rho, v1, v2, v3, T). The latter functionality is now provided bycons2prim_temperatureinstead (although it may change in future releases since it is labeled as experimental for now).
Deprecated
Removed
- The unnecessary method of
flux_nonconservative_chan_etalaccepting two normal directions was removed (#3147). The other methods are still there and unchanged. - The keyword argument
n_cells_maxhas been removed from theTreeMeshconstructor and fromload_mesh(#3021). Previously it set the initial capacity of the internal tree data structure; sinceTreeMeshnow auto-resizes as needed, the argument is no longer necessary. To migrate, simply remove anyn_cells_max = ...argument from existing code.TreeMeshmesh files no longer store the internalcapacityHDF5 attribute; new versions derive storage fromn_cellswhen loading, while older files that still containcapacityremain readable.
Changes in the v0.16 lifecycle
Added
- Extended
PositivityPreservingLimiterLiuZhangtoP4estMesh, and added an example usingCompressibleNavierStokesDiffusion(#3100). - Extended
PositivityPreservingLimiterLiuZhangtoCompressibleEulerEquations1DandCompressibleEulerEquations2D(#3066). When combined withPositivityPreservingLimiterZhangShu, the density and pressure are guaranteed to be positive at nodal points. The limiter is currently implemented forTreeMeshand supports lower bounds on both density and internal energy (or both density and pressure). - Added
PositivityPreservingLimiterLiuZhangforTreeMesh, which enforces global positivity of cell averages through an iterative algorithm (#3063). Currently only implemented forLinearScalarAdvectionEquation. - Added experimental support for block-structured finite volume methods on 1D and 2D
TreeMeshes via the newBlockFVsolver,UniformFiniteVolumeBasis, andVolumeIntegralFiniteVolume, together with example elixirs (#3067). Check the progress in https://github.com/trixi-framework/Trixi.jl/issues/3068. - The
BlockFVsolver now supports mortars on theTreeMeshin 2D (#3104). - The
BlockFVsolver now supports conformingP4estMeshes in 2D (#3128). - Added support for plotting 1D solutions with Makie.jl, matching the existing Plots.jl interface (#3035).
VolumeIntegralAdaptiveis now also available withVolumeIntegralSubcellLimitingforTreeMeshin 2D and 3D using the heuristic a-priori indicatorIndicatorHennemannGassner(#2924, #2986).- A new EOS type
AbstractHelmholtzEOS, with concrete implementationHelmholtzIdealGas. This implementation roughly follows Klein et al.'s approach in (arXiv:2603.15112). - A new semidiscretization type
SemidiscretizationParabolichas been added to support purely parabolic equations with no hyperbolic part. The new equation typesLinearDiffusionEquation1DandLinearDiffusionEquation2Dhave been implemented to demonstrate this functionality (#2874). - A new AMR indicator
IndicatorNodalFunctionis introduced, which allows AMR depending on the solution, space, and time. This can be useful, for example, for testing AMR implementations, but also when the solution behavior is known a priori (#2881). - GPU support extended to include AMD GPU with a buildkite workflow using
TRIXI_TEST=AMDGPU(#2834). - Support for 3D subcell limiting was extended by local limiting for nonperiodic
TreeMeshes (#2878). - Support for user-defined RHS splitting for IMEX methods via SemidiscretizationHyperbolicSplit (#2518). The splitting follows the form
y_t = f_1(y) + f_2(y), allowing users to define separate solvers for the stiff (f_1) and non-stiff (f_2) parts of the right-hand side. Boundary conditions and source terms can be specified independently for the stiff and non-stiff parts. - Added postprocessing for kinetic energy spectral analysis via
compute_kinetic_energy_spectrumforAbstractCompressibleEulerEquationsonTreeMesh/DGSEMand onDGMultiMesh/DGMultiSBPin 2D and 3D; the routine returns matching integer wavenumber shells and the isotropic 1D spectrumE(k). - Added the wrapper
FluxTurbothat enables SIMD optimized implementations for conservative systems. Precomputation of primitive variables or other more efficient sets of variables can be enabled by specifying the number of precomputed variables,nturbovars; the transformation from conservative to precomputed variables,cons2turbo; and thevolume_flux_turbo, which computes the numerical flux in terms of the precomputed variables. (#3090) FluxTurbosupport was extended to nonconservative systems (mainly for theP4estMeshin 3D). (#3094)- For the
NonIdealCompressibleEulerEquationswith a non-ideal equation of state a new Newton solver interface for the temperature has been added. This is required for nonideal equations of state, where one cannot explicitly solve for temperature given two other thermodynamic variables. The new functiontemperature_given_Vpcomputes temperature given the specific volumeVand pressurepusing Newton's method, analogous to the existingtemperaturefunction forAbstractEquationOfStatewhich takes inVand specific internal energye_internal(#3093). - Added support to apply the positivity-preserving limiter after coarsening and refinement steps in AMR via the keyword argument
limiter!inAMRCallback(#2396). - To model a calorically imperfect but thermally perfect gas, a new equation of state
ThermallyPerfectGas9PolyFithas been added. This is a concrete implementation forAbstractThermallyPerfectGasthat uses a 9th order polynomial fit to the NASA polynomials for specific heat capacities, as described in the corresponding NASA Technical Publication. This EOS allows for temperature-dependent specific heat capacities (c_p(T),c_v(T)) and ratio of specific heats (\gamma(T)), while obeying the ideal gas law to relate pressure, density, and temperature (#3079). This equation of state needs to be supplied toNonIdealCompressibleEulerEquations. - Added support for one-block periodic SBP operators (finite differences, CGSEM, etc.) on
DGMultiMeshes with nonconservative terms (#3144).
Changed
- Fixes a bug in
IndicatorEntropyCorrectionShockCapturingCombinedwhere blending was only applied when the entropy residual was positive. The intended behavior is to apply blending when either entropy correction or shock capturing are activate (#3131). - For performance,
LaplaceDiffusionEntropyVariablesparabolic fluxes forCompressibleEulerEquations1D,CompressibleEulerEquations2D, andCompressibleEulerEquations3Dnow use explicit Jacobian formulas from Barth 1999 instead of AD (#3028). Other equation types continue to use an automatic differentiation fallback. - Removed the requirement to pass
uEltype = real(dg)to theAnalysisCallbackforDGMultisolvers (#3143).
Changes when updating to v0.16 from v0.15.x
Changed
- The implementation of the local DG (
ViscousFormulationLocalDG)solver_parabolichas been changed for theP4estMesh.
In particular, instead of computing the ldg_switch as the dot product of the normal direction with ones, i.e., summing up the normal components, the ldg_switch is now selected as the sign of the maximum (in absolute value sense) normal direction component, which corresponds to the dominant direction of the interface normal. This might change results slightly for some meshes where the sum of the normal might be close to zero, thus introducing some spurious switch assignments (#2871).
- The word "viscous" is now used only where it refers specifically to fluid viscosity.
The word "parabolic" is used in more general contexts. In particular, viscosity is no longer used as a proxy for any parabolic/diffusive process such as heat conduction. For example, ViscousFormulationLocalDG is now ParabolicFormulationLocalDG and ViscousFormulationBassiRebay1 is now ParabolicFormulationBassiRebay1. For consistency, cfl_advective and cfl_diffusive have also been renamed cfl_hyperbolic and cfl_parabolic (#2868). Moreover, some internal functions have been renamed accordingly, including the results shown by the timer outputs after running a simulation.
Added
- Introducing GPU support: Based on work by Jan Kraus and Lars Christmann, Trixi.jl can now partly be executed on GPUs. This includes simulations with flux differencing on
P4estMeshin 2D and 3D. Adaptive mesh refinement, multi-GPU, source terms, and callbacks are not available, yet. Offloading is achieved via KernelAbstractions.jl kernels, which, at the moment, execute the same code as usually run on CPUs. A backend is selected by passing an appropriate data type as keyword argumentstorage_typetosemidiscretize. See the heterogeneous section for some instructions on how to port kernels. This is however still preliminaray and will change. GPU kernels are currently CI-tested on NVIDIA GPUs in a buildkite workflow usingTRIXI_TEST=CUDA(#2590).
Changes in the v0.15 lifecycle
Added
- Added shock capturing support for
DGMultisolvers withSBP()approximation types on triangular (Tri), tetrahedral (Tet), quadrilateral (Quad), and hexahedral (Hex) elements.GaussSBP()approximation types are also supported onQuadandHexelements. - It is now possible to use
ViscousFormulationLocalDG()as thesolver_parabolicfor non-conformingP4estMeshes.
This is useful for (locally) diffusion-dominated problems. This enables in particular adaptive mesh refinement for that solver-mesh combination (#2712).
- Added functionality to
ScalarPlotData2Dallowing visualization a field provided by a user-defined scalar function (#2796). - Added
NonIdealCompressibleEuler2D(#2768). - Generalization of
VolumeIntegralShockCapturingHGandVolumeIntegralShockCapturingRRGto support different volume integrals on the non-stabilized and stabilized elements/cells. The generalized volume integral is calledVolumeIntegralShockCapturingHGTypeand takes the three keyword argumentsvolume_integral_default,volume_integral_blend_high_order, andvolume_integral_blend_low_orderbesides the usualindicatorargument. In particular,volume_integral_defaultmay be e.g.VolumeIntegralWeakFormorVolumeIntegralAdaptive, i.e., the non-stabilized elements/cells are no longer restricted toVolumeIntegralFluxDifferencingonly (#2802). - Added
IndicatorEntropyCorrection. When combined withVolumeIntegralAdaptive, this blends together a stabilized and non-stabilized volume integral based on the violation of a volume entropy condition.IndicatorEntropyCorrectionShockCapturingCombinedadditionally guides the blending by taking the maximum of the entropy correction indicator and a shock capturing indicator (#2764). - The second-order subcell volume integral is no longer limited to reconstruction in primitive variables. Instead, it is possible to reconstruct in custom variables, if functions
cons2reconandrecon2consare provided toVolumeIntegralPureLGLFiniteVolumeO2andVolumeIntegralShockCapturingRRG(#2817). - Add Legendre-Gauss basis for DGSEM and implement solver (
VolumeIntegralWeakFormandSurfaceIntegralWeakFormonly) support for conforming 1D & 2DTreeMeshes (#1965). - Extended 3D support for subcell limiting was added (#2763, #2846, #2844, #2848). In the new version, local (minimum and maximum) limiting for conservative variables (using the keyword
local_twosided_variables_consinSubcellLimiterIDP()) withP4estMeshis supported. The support was extended to nonperiodicP4estMesh{3}es. Moreover, initial support forTreeMesh{3}including positivity limiting and local limiting on periodic meshes was added.
Changes when updating to v0.15 from v0.14.x
Changed
- Boundary conditions are now passed as a
NamedTupleconsistently across all mesh types, i.e., boundary conditions, which were previously passed as aDictfor theP4estMesh,T8codeMesh, andUnstructuredMesh2Dmesh types have to be converted toNamedTuples. Also passing boundary conditions as aTupleis no longer supported. This change also makesboundary_condition_defaultobsolete, which is why it was removed (#2761). - The
TreeMesh,StructuredMeshas well as the hypercube constructors ofP4estMeshandT8codeMeshare now non-periodic by default, i.e., you need to explicitly set theperiodicitykeyword argument totrueto obtain periodic meshes. This change was made to be consistent with other mesh types and to avoid confusion (#2770). - There are no default boundary conditions anymore in
SemidiscretizationHyperbolicandSemidiscretizationHyperbolicParabolic. Users now have to explicitly provide boundary conditions via theboundary_conditionskeyword argument, which were periodic by default before (#2770). - Renamed
energy_internalforNonIdealCompressibleEulerEquations1Dtoenergy_internal_specific(#2762). This makesenergy_internalforNonIdealCompressibleEulerEquations1Dconsistent with the rest of Trixi.jl, whereenergy_internalrefers to the specific internal energy scaled by density. - Changed
cons2prim(u, ::NonIdealCompressibleEulerEquations1D)so that it returnsrho, v1, p. Previously,cons2primreturnedV, v1, T; this functionality is now provided by the non-exported functioncons2thermo(#2769). - The variable name (printed to the screen and files) of the total energy in the compressible Euler equations has been changed from
rho_etorho_e_totalto avoid confusion with the internal energyrho_e_internal(#2778). convergence_testnow returns the complete convergence orders and the full errors matrix. To obtain the mean convergence rates, useTrixi.calc_mean_convergenceon the convergence orders (#2753).- The serial and parallel mesh types have been renamed from
SerialTreeMesh,ParallelTreeMesh,SerialP4estMesh,ParallelP4estMesh,SerialT8codeMesh, andParallelT8codeMeshtoTreeMeshSerial,TreeMeshParallel,P4estMeshSerial,P4estMeshParallel,T8codeMeshSerial, andT8codeMeshParallel, respectively (#2787).
Added
- Added
PengRobinsonequation of state (#2769).
Changes in the v0.14 lifecycle
Added
- Added
NonIdealCompressibleEulerEquations1D, which allows users to specify a non-ideal equation of state. CurrentlyIdealGasandVanDerWaalsare supported (#2739). - Added the APEC (approximate pressure equilibrium preserving with conservation) fluxes of
flux_terashima_etalandflux_central_terashima_etalfrom Terashima, Ly, Ihme (2025) (#2756). - Support for second-order finite volume subcell volume integral (
VolumeIntegralPureLGLFiniteVolumeO2) and stabilized DG-FV blending volume integral (VolumeIntegralShockCapturingRRG) on 3D meshes for conservative systems (#2734, #2755). - Extended 3D support for subcell limiting with
P4estMeshwas added (#2733). In the new version, local (minimum or maximum) limiting for nonlinear variables (using the keywordlocal_onesided_variables_nonlinearinSubcellLimiterIDP()) is supported.
Changed
Changes when updating to v0.14 from v0.13.x
Changed
- van Leer's limiters changed to snake case:
vanLeer=>vanleer(#2744) - A couple
structs have been made completely immutable, or only a couple fields thereof (#2640). Most notably,save_solution.condition.save_initial_solutionwheresave_solution isa SavesolutionCallbackcan no longer be directly changed. Instead, the@resetmacro from Accessors.jl is used in the elixirs.
Changes in the v0.13 lifecycle
Added
- Initial 3D support for subcell limiting with
P4estMeshwas added (#2582, #2647, #2688, #2722). In the new version, IDP positivity limiting for conservative variables (using the keywordpositivity_variables_consinSubcellLimiterIDP()) and nonlinear variables (usingpositivity_variables_nonlinear) is supported. - Optimized 2D and 3D kernels for nonconservative fluxes with
P4estMeshwere added (#2653, #2663). The optimized kernel can be enabled via the traitTrixi.combine_conservative_and_nonconservative_fluxes(flux, equations). When the trait is set toTrixi.True(), a single method has to be defined, that computes and returns the tupleflux_cons(u_ll, u_rr) + 0.5f0 * flux_noncons(u_ll, u_rr)andflux_cons(u_ll, u_rr) + 0.5f0 * flux_noncons(u_rr, u_ll). - Added support for
source_terms_parabolic, which allows users to specify gradient-dependent source terms when solving parabolic equations (#2721). - Support for second-order finite volume subcell volume integral (
VolumeIntegralPureLGLFiniteVolumeO2) and stabilized DG-FV blending volume integral (VolumeIntegralShockCapturingRRG) on 1D & 2D meshes for conservative systems (#2022, #2695, #2718).
Changes when updating to v0.13 from v0.12.x
Changed
- The
polyesterpreference got merged with thenative_threadingpreference and theTrixi.set_polyester!function got renamed toTrixi.set_threading_backend!(#2476). - Default wave-speed estimate used within
flux_lax_friedrichschanged frommax_abs_speed_naivetomax_abs_speedwhich is less diffusive. In v0.13,flux_lax_friedrichs = FluxLaxFriedrichs(max_abs_speed = max_abs_speed)instead of the previous defaultFluxLaxFriedrichs(max_abs_speed = max_abs_speed_naive)(#2458). - The signature of the
VisualizationCallbackconstructor changed. In the new version, it is mandatory to pass the semidiscretizationsemito determine the default plotting type (1D for 1D simulations, 2D for 2D and 3D simulations). This can further be customized via the keyword argumentplot_data_creator, which had the default valueplot_data_creator = PlotData2Dbefore the change (#2468).
Removed
- Deprecations introduced in earlier versions of Trixi.jl have been removed.
Changes in the v0.12 lifecycle
Added
- Initial support for adapting data-structures between different storage arrays was added. This enables future work to support GPU with Trixi (#2212).
Deprecated
Changes when updating to v0.12 from v0.11.x
Added
- Arbitrary solution-dependent quantities can now be saved in the
SaveSolutionCallback(and thus later on visualized) (#2298). - Added support for nonconservative terms with "local * jump" formulation in
VolumeIntegralSubcellLimiting(#2429).
Changed
- When using the
VolumeIntegralSubcellLimitingwith theSubcellLimiterIDPthe:limiting_coefficientmust be explicitly provided to theSaveSolutionCallbackvia
i.e., is no longer automatically saved (#2298).save_sol_cb = SaveSolutionCallback(interval = 42, extra_node_variables = (:limiting_coefficient,))
Deprecated
Removed
- The shallow-water equation types
ShallowWaterEquations1D,ShallowWaterEquations2D, andShallowWaterEquationsQuasi1Dhave been removed from Trixi.jl and are now available via TrixiShallowWater.jl. This also affects the related functionshydrostatic_reconstruction_audusse_etal,flux_nonconservative_audusse_etal, andFluxHydrostaticReconstruction. (#2379) - The additional
ìnitial_cacheentries in the caches ofSemidiscretizationHyperbolicandSemidiscretizationHyperbolicParabolic, and the corresponding keyword arguments of their constructors have been removed. (#2399)
Changes in the v0.11 lifecycle
Added
- Added symmetry plane/reflective wall velocity+stress boundary conditions for the compressible Navier-Stokes equations in 2D and 3D. Currently available only for the
P4estMeshmesh type,GradientVariablesPrimitive, andAdiabaticheat boundary condition (#2416). - Added
LaplaceDiffusionEntropyVariables1D,LaplaceDiffusionEntropyVariables2D, andLaplaceDiffusionEntropyVariables3D. These add scalar diffusion to each equation of a system, but apply diffusion in terms of the entropy variables, which symmetrizes the viscous formulation and ensures semi-discrete entropy dissipation (#2406). - Added the three-dimensional multi-ion magneto-hydrodynamics (MHD) equations with a generalized Lagrange multipliers (GLM) divergence cleaning technique (#2215).
- New time integrator
PairedExplicitRK4, implementing the fourth-order paired explicit Runge-Kutta method with Convex.jl and ECOS.jl (#2147) - Passive tracers for arbitrary equations with density and flow variables (#2364)
Deprecated
- The (2D) aerodynamic coefficients
DragCoefficientPressure, LiftCoefficientPressure, DragCoefficientShearStress, LiftCoefficientShearStresshave been renamed toDragCoefficientPressure2D, LiftCoefficientPressure2D, DragCoefficientShearStress2D, LiftCoefficientShearStress2D. (#2375)
Changes when updating to v0.11 from v0.10.x
Added
Changed
- The
CallbackSetfrom the OrdinaryDiffEq.jl ecosystem isexported from Trixi.jl (@2266). - The examples switched from OrdinaryDiffEq.jl to its sub-packages such as OrdinaryDiffEqLowStorageRK.jl and OrdinaryDiffEqSSPRK.jl (@2266). The installation instructions for Trixi.jl have been updated accordingly.
- The output of the
SummaryCallbackwill automatically be printed after the simulation is finished. Therefore, manually callingsummary_callback()is not necessary anymore (#2275). - The two performance numbers (local
time/DOF/rhs!and performance indexPID) are now computed taking into account the number of threads (#2292). This allows for a better comparison of shared memory (threads) and hybrid (MPI + threads) simulations with serial simulations.
Deprecated
Removed
Changes when updating to v0.10 from v0.9.x
Added
Changed
- The numerical solution is wrapped in a
VectorOfArraysfrom RecursiveArrayTools.jl forDGMultisolvers (#2150). You can useBase.parentto unwrap the original data. - The
PairedExplicitRK2constructor with second argumentbase_path_monomial_coeffs::AbstractStringrequires nowdt_opt,bS,cSto be given as keyword arguments (#2184). Previously, those where standard function parameters, in the same order as listed above. - The
AnalysisCallbackoutput generated with thesave_analysis = trueoption now prints floating point numbers in their respective (full) precision. Previously, only the first 8 digits were printed to file. Furthermore, the names of the printed fields are now only separated by a single white space, in contrast to before where this were multiple, depending on the actual name of the printed data. - The boundary conditions for non-conservative equations can now be defined separately from the conservative part. The
surface_flux_functionstuple is now passed directly to the boundary condition call, returning a tuple with boundary condition values for both the conservative and non-conservative parts (#2200).
Deprecated
Removed
Changes in the v0.9 lifecycle
Added
- New time integrator
PairedExplicitRK3, implementing the third-order paired explicit Runge-Kutta method with Convex.jl, ECOS.jl, and NLsolve.jl (#2008) LobattoLegendreBasisand related datastructures made fully floating-type general, enabling calculations with higher than double (Float64) precision (#2128)- In 2D, quadratic elements, i.e., 8-node (quadratic) quadrilaterals are now supported in standard Abaqus
inpformat (#2217) - The
cflvalue supplied in theStepsizeCallbackandGlmStepsizeCallbackcan now be a function of simulation timetto enable e.g. a ramp-up of the CFL value. This is useful for simulations that are initialized with an "unphysical" initial condition, but do not permit the usage of adaptive, error-based timestepping. Examples for this are simulations involving the MHD equations which require in general theGlmStepsizeCallback(#2248)
Changed
- The required Julia version is updated to v1.10.
Changes when updating to v0.9 from v0.8.x
Added
- Boundary conditions are now supported on nonconservative terms (#2062).
Changed
- We removed the first argument
semicorresponding to aSemidiscretizationfrom theAnalysisSurfaceIntegralconstructor, as it is no longer needed (see #1959). TheAnalysisSurfaceIntegralnow only takes the argumentsboundary_symbolsandvariable. (#2069) - In functions
rhs!,rhs_parabolic!we removed the unused argumentinitial_condition. (#2037) Users should not be affected by this. - Nonconservative terms depend only on
normal_direction_averageinstead of bothnormal_direction_averageandnormal_direction_ll, such that the function signature is now identical with conservative fluxes. This required a change of thenormal_directioninflux_nonconservative_powell(#2062).
Deprecated
Removed
Changes in the v0.8 lifecycle
Changed
- The AMR routines for
P4estMeshandT8codeMeshwere changed to work on the product of the Jacobian and the conserved variables instead of the conserved variables only to make AMR fully conservative (#2028). This may change AMR results slightly. - Subcell (IDP) limiting is now officially supported and not marked as experimental anymore (see
VolumeIntegralSubcellLimiting).
Changes when updating to v0.8 from v0.7.x
Added
Changed
- The specification of boundary names on which
AnalysisSurfaceIntegrals are computed (such as drag and lift coefficients) has changed fromSymbolandVector{Symbol}toNTuple{Symbol}. Thus, for one boundary the syntax changes from:boundaryto(:boundary,)and forVectors[:boundary1, :boundary2]to(:boundary1, :boundary2)(#1959). - The names of output files like the one created from the
SaveSolutionCallbackhave changed from%06dto%09dto allow longer-running simulations (#1996).
Deprecated
Removed
Changes in the v0.7 lifecycle
Added
- Implementation of
TimeSeriesCallbackfor curvilinear meshes onUnstructuredMesh2Dand extension to 1D and 3D onTreeMesh(#1855, #1873). - Implementation of 1D Linearized Euler Equations (#1867).
- New analysis callback for 2D
P4estMeshto compute integrated quantities along a boundary surface, e.g., pressure lift and drag coefficients (#1812). - Optional tuple parameter for
GlmSpeedCallbackcalledsemi_indicesto specify for which semidiscretization of aSemidiscretizationCoupledwe need to update the GLM speed (#1835). - Subcell local one-sided limiting support for nonlinear variables in 2D for
TreeMesh(#1792). - New time integrator
PairedExplicitRK2, implementing the second-order paired explicit Runge-Kutta method with Convex.jl and ECOS.jl (#1908) - Add subcell limiting support for
StructuredMesh(#1946).
Changes when updating to v0.7 from v0.6.x
Added
Changed
- The default wave speed estimate used within
flux_hllis nowmin_max_speed_davisinstead ofmin_max_speed_naive.
Deprecated
Removed
- Some specialized shallow water specific features are no longer available directly in Trixi.jl, but are moved to a dedicated repository: TrixiShallowWater.jl. This includes all features related to wetting and drying, as well as the
ShallowWaterTwoLayerEquations1DandShallowWaterTwoLayerEquations2D. However, the basic shallow water equations are still part of Trixi.jl. We'll also be updating the TrixiShallowWater.jl documentation with instructions on how to use these relocated features in the future.
Changes in the v0.6 lifecycle
Added
- AMR for hyperbolic-parabolic equations on 3D
P4estMesh flux_hllcon non-cartesian meshes forCompressibleEulerEquations{2,3}D- Different boundary conditions for quad/hex meshes in Abaqus format, even if not generated by HOHQMesh, can now be digested by Trixi in 2D and 3D.
- Subcell (positivity) limiting support for nonlinear variables in 2D for
TreeMesh - Added Lighthill-Whitham-Richards (LWR) traffic model
Changes when updating to v0.6 from v0.5.x
Added
- AMR for hyperbolic-parabolic equations on 2D
P4estMesh
Changed
- The wave speed estimates for
flux_hll,FluxHLL()are now consistent across equations. In particular, the functionsmin_max_speed_naive,min_max_speed_einfeldtare now conceptually identical across equations. Users, who have been usingflux_hllfor MHD have now to useflux_hllein order to use the Einfeldt wave speed estimate. - Parabolic diffusion terms are now officially supported and not marked as experimental anymore.
Deprecated
Removed
- The neural network-based shock indicators have been migrated to a new repository TrixiSmartShockFinder.jl. To continue using the indicators, you will need to use both Trixi.jl and TrixiSmartShockFinder.jl, as explained in the latter packages'
README.md.
Changes in the v0.5 lifecycle
Added
- Experimental support for 3D parabolic diffusion terms has been added.
- Non-uniform
TreeMeshavailable for hyperbolic-parabolic equations. - Capability to set truly discontinuous initial conditions in 1D.
- Wetting and drying feature and examples for 1D and 2D shallow water equations
- Implementation of the polytropic Euler equations in 2D
- Implementation of the quasi-1D shallow water and compressible Euler equations
- Subcell (positivity and local min/max) limiting support for conservative variables in 2D for
TreeMesh - AMR for hyperbolic-parabolic equations on 2D/3D
TreeMesh - Added
GradientVariablestype parameter toAbstractEquationsParabolic
Changed
- The required Julia version is updated to v1.8 in Trixi.jl v0.5.13.
Deprecated
- The macro
@unpack(re-exported originally from UnPack.jl) is deprecated and will be removed. Consider using Julia's standard destructuring syntax(; a, b) = stuffinstead of@unpack a, b = stuff. - The constructor
DGMultiMesh(dg; cells_per_dimension, kwargs...)is deprecated and will be removed. The new constructorDGMultiMesh(dg, cells_per_dimension; kwargs...)does not havecells_per_dimensionas a keyword argument.
Removed
- Migrate neural network-based shock indicators to a new repository TrixiSmartShockFinder.jl.
Changes when updating to v0.5 from v0.4.x
Added
Changed
- Compile-time boolean indicators have been changed from
Val{true}/Val{false}toTrixi.True/Trixi.False. This affects user code only if new equations with nonconservative terms are created. ChangeTrixi.has_nonconservative_terms(::YourEquations) = Val{true}()toTrixi.has_nonconservative_terms(::YourEquations) = Trixi.True(). - The (non-exported) DGSEM function
split_form_kernel!has been renamed toflux_differencing_kernel! - Trixi.jl updated its dependency P4est.jl from v0.3 to v0.4. The new bindings of the C library
p4esthave been generated using Clang.jl instead of CBinding.jl v0.9. This affects only user code that is interacting directly withp4est, e.g., because custom refinement functions have been passed top4est. Please consult the NEWS.md of P4est.jl for further information.
Deprecated
- The signature of the
DGMultiMeshconstructors has changed - thedg::DGMultiargument now comes first. - The undocumented and unused
DGMultiMesh(triangulateIO, rd::RefElemData{2, Tri}, boundary_dict::Dict{Symbol, Int})constructor was removed.
Removed
- Everything deprecated in Trixi.jl v0.4.x has been removed.
Changes in the v0.4 lifecycle
Added
- Implementation of linearized Euler equations in 2D
- Experimental support for upwind finite difference summation by parts (FDSBP) has been added in Trixi.jl v0.4.55. The first implementation requires a
TreeMeshand comes with several examples in theexamples_dir()of Trixi.jl. - Experimental support for 2D parabolic diffusion terms has been added.
LaplaceDiffusion2DandCompressibleNavierStokesDiffusion2Dcan be used to add
LaplaceDiffusion2Dcan be used to add scalar diffusion to each equation of a system, whileCompressibleNavierStokesDiffusion2Dcan be used to add Navier-Stokes diffusion toCompressibleEulerEquations2D.- Parabolic boundary conditions can be imposed as well. For
LaplaceDiffusion2D, both
DirichletandNeumannconditions are supported. ForCompressibleNavierStokesDiffusion2D, viscous no-slip velocity boundary conditions are supported, along with adiabatic and isothermal temperature boundary conditions. See the boundary condition containerBoundaryConditionNavierStokesWalland boundary condition typesNoSlip,Adiabatic, andIsothermalfor more information.CompressibleNavierStokesDiffusion2Dcan utilize both primitive variables (which are not
- Please check the
examplesdirectory for further information about the supported setups. Further documentation will be added later.
- Numerical fluxes
flux_shima_etal_turboandflux_ranocha_turbothat are equivalent to their non-_turbocounterparts but may enable specialized methods making use of SIMD instructions to increase runtime efficiency - Support for (periodic and non-periodic) SBP operators of SummationByPartsOperators.jl as approximation type in
DGMultisolvers - Initial support for MPI-based parallel simulations using non-conforming meshes of type
P4estMeshin 2D and 3D including adaptive mesh refinement
Removed
- The
VertexMappedMeshtype is removed in favor of theDGMultiMeshtype. TheVertexMappedMeshconstructor is deprecated.
Changed
- The required Julia version is updated to v1.7.
- The isentropic vortex setups contained a bug that was fixed in Trixi.jl v0.4.54. Moreover, the setup was made a bit more challenging. See https://github.com/trixi-framework/Trixi.jl/issues/1269 for further information.
Deprecated
- The
DGMultiMeshconstructor which uses ard::RefElemDataargument is deprecated in favor of the constructor which uses adg::DGMultiargument instead.
Changes when updating to v0.4 from v0.3.x
Added
- Experimental support for artificial neural network-based indicators for shock capturing and adaptive mesh refinement (#632)
- Experimental support for direct-hybrid aeroacoustics simulations (#712)
- Implementation of shallow water equations in 2D
- Experimental support for interactive visualization with Makie.jl
Changed
- Implementation of acoustic perturbation equations now uses the conservative form, i.e. the perturbed pressure
p_primehas been replaced withp_prime_scaled = p_prime / c_mean^2. - Removed the experimental
BoundaryConditionWalland instead directly compute slip wall boundary condition flux term using the functionboundary_condition_slip_wall. - Renamed
advectionvelocityinLinearScalarAdvectionEquationtoadvection_velocity. - The signature of indicators used for adaptive mesh refinement (AMR) and shock capturing changed to generalize them to curved meshes.
Deprecated
Removed
- Many initial/boundary conditions and source terms for typical setups were moved from
Trixi/srcto the example elixirsTrixi/examples. Thus, they are no longer available whenusing Trixi, e.g., the initial condition for the Kelvin Helmholtz instability. - Features deprecated in v0.3 were removed.
Changes in the v0.3 lifecycle
Added
- Support for automatic differentiation, e.g.
jacobian_ad_forward - In-situ visualization and post hoc visualization with Plots.jl
- New systems of equations
- multicomponent compressible Euler and MHD equations
- acoustic perturbation equations
- Lattice-Boltzmann equations
- Composable
FluxPlusDissipationandFluxLaxFriedrichs(),FluxHLL()with adaptable wave speed estimates were added in #493 - New structured, curvilinear, conforming mesh type
StructuredMesh - New unstructured, curvilinear, conforming mesh type
UnstructuredMesh2Din 2D - New unstructured, curvilinear, adaptive (non-conforming) mesh type
P4estMeshin 2D and 3D - Experimental support for finite difference (FD) summation-by-parts (SBP) methods via SummationByPartsOperators.jl
- New support for modal DG and SBP-DG methods on triangular and tetrahedral meshes via StartUpDG.jl
Changed
flux_lax_friedrichs(u_ll, u_rr, orientation, equations::LatticeBoltzmannEquations2D)andflux_lax_friedrichs(u_ll, u_rr, orientation, equations::LatticeBoltzmannEquations3D)were actually using the logic offlux_godunov. Thus, they were renamed accordingly in #493. This is considered a bugfix (released in Trixi.jl v0.3.22).- The required Julia version is updated to v1.6.
Deprecated
calcflux→flux(#463)flux_upwind→flux_godunovflux_hindenlang→flux_hindenlang_gassner- Providing the keyword argument
solution_variablesofSaveSolutionCallbackasSymbolis deprecated in favor of using functions likecons2consandcons2prim varnames_cons(equations)→varnames(cons2cons, equations)varnames_prim(equations)→varnames(cons2prim, equations)- The old interface for nonconservative terms is deprecated. In particular, passing only a single two-point numerical flux for nonconservative is deprecated. The new interface is described in a tutorial. Now, a tuple of two numerical fluxes of the form
(conservative_flux, nonconservative_flux)needs to be passed for nonconservative equations, see #657.