TUFLOW Version Backward Compatibility: Difference between revisions

Content deleted Content added
No edit summary
 
(89 intermediate revisions by 7 users not shown)
Line 1:
 
=Backward Compatibility Change Register=
 
For a list of new features and changes for each TUFLOW release, refer to the <u>[https://docs.tuflow.com/classic-hpc/changelog/ TUFLOW Classic/HPC Changelog]</u> (for versions since 2023-03-AF). For versions 2023-03-AF and prior, see the relevant release notes in the <u>[https://www.tuflow.com/downloads/tuflow-classichpc-archive/ TUFLOW Downloads Archive]</u>.
{|class="wikitable"
|-
|colspan="3"| '''2013-12-XX Builds'''
|-
 
For backward compatibility and default changes, please see Chapter 18 (Default Changes) of the <u>[https://docs.tuflow.com/classic-hpc/manual/latest TUFLOW Manual]</u>.
| rowspan=1|2013-12-AA
| New default settings – see <font color="blue"><u>Defaults == PRE 2013-12</u></font> for a list of the commands that have changed in their default setting.
| Set <font color="blue"><u>Defaults == PRE 2013-12</u></font> if similar results are required to the 2012-05 release.
|-
 
=Frequently Asked Questions (FAQ)=
| rowspan=1|2013-12-AC
== Why are model results developed in an older release different to a newer release? ==
| The default setting for <font color="blue"><u>Link 2D2D Approach</u></font> has changed.
If comparing a Classic model with HPC, also check the <u>[[HPC_FAQ#Will_TUFLOW_HPC_and_TUFLOW_Classic_results_match.3F | Will TUFLOW HPC and TUFLOW Classic results match?]]</u> page in addition to this answer. <br>
| Set <font color="blue"><u>Link 2D2D Approach == METHOD B</u></font> to achieve the same results as Builds 2013-12-AA and 2013-12-AB. See Link 2D2D Approach for more information.
In addition to the above, there are reasons why model results would be different between different TUFLOW releases, whether it is the Classic or HPC solver, as follows:
* General improvements and fine-tuning of the solution scheme, especially for the more complex hydraulic physical terms and situations such as: sub-grid turbulence representation; treatment of shocks (e.g. hydraulic jumps); and transitioning between sub-critical and super-critical flow on steep slopes.
* Some new functionality can cause a significant change in results. For example:
** Sub-Grid Sampling (SGS) applied to an existing model that used a too coarse cell resolution in high flow areas of highly variable topography (relative to the 2D cell size). SGS will greatly improve the model's ability to convey water accurately in these situations with vastly improved results.
** New default sub-grid turbulence scheme in the 2020 release of TUFLOW HPC that is cell size independent and allows modellers to use cell sizes much smaller than the flow depth across all scales from flume to large rivers. For more information on differences between Smagorinsky scheme (HPC releases up to 2020) and the Wu turbulence scheme (2020 onwards) see <u>[[HPC_FAQ#With_Wu_turbulence_scheme_being_the_new_default.2C_are_old_models_using_Smagorinsky_wrong.3F | here]]</u>.
* Changes to the default settings and values, e.g.:
**different default eddy viscosity formulation and/or coefficients,
**improved data pre-processing approaches such as sampling materials on cell mid-sides instead of cell centres,
** and many others.
** For backward compatibility the <font color="blue"><tt>Defaults</tt></font> <font color="red"><tt>== </tt></font> command is available to run old models on new releases to replicate past results (note, sometimes full backward compatibility cannot be catered for due to different code compiler and updates that can't be reverted, especially for several releases earlier).
* New features that use GIS attributes previously reserved (i.e. unused). If these attributes were not populated with the recommended “reserved” value (usually 0 or blank), then they can cause unpredictable results in later releases.
* Bug fixes noting that most bug fixes are input/output related and rarely affect the model's hydraulic calculations.
* Change in timestepping can also produce a small change in results. HPC uses the Runge-Kutta 4th order integrator, which is usually fairly insensitive to time step provided the model is running stably. However when a region is filled by flow that only just overtops an embankment, a 10 mm difference in water levels upstream of the embankment can create a much larger difference in levels downstream. Hence, small differences in time-stepping (along with many other aspects of model setup) can trigger local differences in model results.
* Model orientation (if changed) could also mean slight change in results. This is mostly given by interpolating values from different calculation points. Every cell has nine calculation points. Based on the model origin, all or most of the calculation points would have different topography elevation sampled, which translates to slightly different results.
* If using 1D channel, possibly different cells have been selected as HX boundary and might have different elevations. This can be reviewed in <u>[[Check_Files_1d_to_2d_bc | 1d_to_2d check file]]</u>.
 
Generally, there should not be substantial differences as the fundamental equations being solved are unchanged and TUFLOW Classic and HPC solvers have always solved all the physical terms using a 2nd order spatial approach. The one exception is the turbulence (eddy viscosity) representation, which is the most complex and challenging to solve of all the physical terms (many 2D schemes simply omit this term). If significant differences (>10% of depth change across the whole model) are observed then it’s most likely due to the first four dot points above. To identify in which release(s) the significant changes occurred, the model can be run with the latest build and for past releases. The changes for each release are documented in their release notes. Past releases and release notes are all available [https://www.tuflow.com/downloads/tuflow-classichpc-archive/. here]. Once the exact release where the changes occurred is tracked down, individual features can be turned off to narrow down the cause.<br>
|-
|colspan="3"| '''2011-09-XX and 2012-05-XX Builds'''
|-
 
The recommendation is usually for new or reworked models to use the newest build to take advantage of the latest features and enhancements, some level of calibration might be required for reworked models. The new TUFLOW executable is not different from the previous ones in the meaning that any existing model should be re-calibrated if there are available calibration data. However, particularly if a model is already calibrated, using prior builds of TUFLOW or winding back default settings using <font color="blue"><tt>Defaults</tt></font> <font color="red"><tt>== </tt></font> command is considered reasonable for established models that are to be used for minor tasks where an update of the model would not be cost effective.<br>
| rowspan=2| 2012-05-AA
| New default settings – see <font color="blue"><u>Defaults == PRE 2012-05</u></font> for a list of the commands that have changed in their default setting.
| Set <font color="blue"><u>Defaults == PRE 2012-05</u></font> if similar results are required to the 2011-09 or 2010-10 releases.
|-
| The approach to the sizing of automatic manholes and the application of losses has been enhanced.
| Set <font color="blue"><u>Manhole Approach == Method A</u></font> to achieve the same results as Build 2011-09-AA.
|-
 
== How can differences in model results between TUFLOW builds be investigated? ==
| rowspan=1| 2011-09-AA
Running TUFLOW on a later build from which it was originally calibrated will not necessarily produce the same results, as discussed in <u>[[TUFLOW_Version_Backward_Compatibility#Why_are_model_results_developed_in_an_older_release_different_to_a_newer_release.3F | Why are model results developed in an older release different to a newer release?]]</u>.
| The optimised compiler code is treated differently for Single Precision builds producing slightly different results (fractions of a mm) for some models.
| No workaround.
|-
 
The following is an example of steps that can be taken when upgrading a TUFLOW model’s executable build, checking for consistency to original results each time.
|-
<ol>
|colspan="3"| '''2010-10-XX Builds'''
<li> Confirm you are able to run the original model with the original build that would have been used to initially produce results.
|-
* This may be particularly relevant when a model has been externally supplied, for example from a government body.
* Confirm if reproduced results are consistent with supplied results.
| rowspan=4| 2010-10-AA
<li> Run the original model with the newer build, along with a relevant <font color="blue"><tt>Defaults</tt></font> <font color="red"><tt>== </tt></font> command (e.g. <font color="blue"><tt>Defaults</tt></font> <font color="red"><tt>== </tt></font> Pre 2011 when the original build was 2010-10).
| New Intel Fortran Compiler version produces slightly different results (usually fractions of a mm).
* Any differences in results compared to the original results may highlight if there are any changes over time where no backward compatibility had been provided for.
| No workaround.
<li> Run the original model with the newer build, and without the <font color="blue"><tt>Defaults</tt></font> <font color="red"><tt>== </tt></font> command.
|-
* This is more likely to see changes in results compared to the original results, which may require justification to the client or resolution by investigating, isolating and remedying the causes, especially if recalibration is not intended as a subsequent step.
| w32 and w64 versions will give slightly different results for the same simulation.
|<li> NoIteratively run the workaround.original model Usewith the samenewer platformbuild, (w32stepping orthrough w64)the fordifferent allrelease simulations.version options Usefor <font color="blue"><utt>Model PlatformDefaults</utt></font> to<font forcecolor="red"><tt>== which platform should be</tt></font> usedcommand.
* This will allow the modeller to investigate and isolate what changes to TUFLOW builds may be affecting results, and when changes appear.
|-
* Then, individually reverting settings that make up a Default group (see Chapter 18 of the <u>[https://docs.tuflow.com/classic-hpc/manual/latest/ TUFLOW Manual]</u>).
| New default settings – see <font color="blue"><u>Defaults == PRE 2010-10</u></font> for a list of the commands that have changed in their default setting.
* This can help isolate the primary drivers for any differences in results.
| Set Defaults == PRE 2010-10 if similar results are required to the 2008-08 or 2009 07 releases.
* The <u>[https://docs.tuflow.com/classic-hpc/changelog// TUFLOW Classic/HPC Changelog]</u> accompanying build releases are also a key reference.
|-
<li> Develop new improved or updated model version, with the newer build (and any grouped or individual defaults that are deemed necessary to retain from the iterative testing in the prior step).
| Generation of TINs for polygons in Read GIS Shape layers is more robust and uses an improved approach. In rare cases, the TIN would fail and TUFLOW would abort the start-up.
*Continue to verify results against the original results as you then iteratively add in or update to any newer functionality or formats that may be available in the later build, a good quality assurance check that changes are behaving as expected.
| No workaround.
</ol>
|-
<br>
 
{{Tips Navigation
 
|uplink=[[TUFLOW_Modelling_Guidance | Back to TUFLOW Modelling Guidance]]
|-
}}
|colspan="3"| '''2008-08-XX and 2009-07-XX Builds'''
|-
 
| rowspan=1| 2008-08-AC
| The default setting for <font color="blue"><u>Shallow Depth Stability Factor</u></font> has changed.
| Set <font color="blue"><u>Shallow Depth Stability Factor == 3</u></font> for models without direct rainfall to achieve the same results as Builds 2008-08-AA and 2008-08-AB. See <font color="blue"><u>Shallow Depth Stability Factor</u></font> for more information.
|-
 
| rowspan=8| 2008-08-AA
|-
| Uses a new set of defaults for a number of commands (see <font color="blue"><u>Defaults</u></font> ).
| The new defaults produce slightly different results, and very slight differences also occur between the three versions offered. For established models run using the 2007-07-XX builds, use <font color="blue"><u>Defaults == PRE 2008-08</u></font> to use the default settings used by the 2007-07-XX builds. Testing of a range of models has shown zero change in results if <font color="blue"><u>Defaults == PRE 2008-08</u></font> switch is set, and the Compaq Fortran compiled version (cSP) is used. Each of the new default settings and their effects are discussed in the rows below.
|-
| The method for interpolating n values where the 2D Manning’s n varies with depth has been enhanced from a linear interpolation of the M (1/n) value to a spline interpolation of the n value. See <font color="blue"><u>Bed Resistance Depth Interpolation</u></font>.
| Generally has little effect other than when the flow is predominantly in the depth range that the n value is varying. The new approach offers a smoother transition in n values from one depth to the other.
|-
| The default viscosity coefficient is now a combination of a 0.2 Smagorinsky and 0.1 constant coefficient, and there are some enhancements to the application of the viscosity term. See <font color="blue"><u>Viscosity Coefficient</u></font>.
| This has slight effect for the majority of models. For fine grid models (<2m cell size) with low bed resistance and significant variations in velocity vectors the effect is more pronounced but is still slight.
|-
| Inertia and viscosity terms are now not transferred across dry cell sides when constructing the coefficients for the solution arrays. This was having the effect of generating a circulation on the other side of the wall (albeit a very weak one), which of course shouldn’t happen!
| Generally little effect, but can have some minor influence for urban models where buildings and fences are modelled as solid thin Z lines.
|-
| 1D weir flow has been improved as the water level difference across the weir approaches zero. The new method is more stable. See <font color="blue"><u>Weir Flow.
| Very little difference other than improved stability.
|-
| Incorporates minor improvements for transitioning between Regimes A and B, and between inlet and outlet controlled regimes, for circular culverts.
| Very little difference other than improved stability.
|-
| The new automatic selection of cells for 2D SX connections using the 1d_nwk Conn_1D_2D attribute may choose more than one 2D cell.
| Very little difference other than improved stability at the pit 2D connections.
|-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
|}