Verifiation, Validation, and Iteration Flashcards
Working, Suitable, Improve
Describe the concept of verification in computer modelling.
We need to be confident that the model is not wrong. Watch out for silent bugs. Use unit testing, benchmarking, and Davids Gold Secret
What is a silent bug?
The code is running incorrectly and you don’t realise there is an error (e.g mathematical implementation).
What is unit testing?
A function that checks another function within the code is implemented correctly. Hand calculate a value and assert an error if the difference is above the threshold.
What is benchmarking?
Solve the ODE analytically under simplified conditions. Verify that the analytical and numerical solutions are similar for the same parameters. Error analysis and time step convergence.
What is David’s Gold Secret?
Blow up one parameter so the physics dominates, or reduce a parameter so the physics disappears. What do you expect to happen? Does is happen?
What is validation?
Does my model represent reality? Assume the model is technically correct.
What do we have to accept to undertake validation?
That all model are flawed, imperfect representations of reality. We accept that it is not possible to prove a model is suitable under all possible scenarios. Use validation experiment or calibration.
What is a validation experiment?
Devise and conduct an experiment that the model should be able to replicate. Predict outcome by running model with the experimental parameters and compare the results. The real world is an example of a v.e that we can not control.
What is calibration?
Can we choose parameters that the model can accurately replicate the available data? If a model can describe the future reality, it ought to be able to describe the past data.
Model Iteration: What are the errors that can be changed relevant to the how and assume parts?
Model not correctly scoped or conceptualised, need more/different physics, wrong BCs, ICs, parameters.
Model Iteration: What are the errors that can be changed relevant to the given part?
Don’t have enough data to constrain the model.
Model Iteration: What are the errors that can be changed relevant to the formulate part?
Model takes too long to run (try a different method), model can’t resolve correct time/space scales.
What is model iteration?
Making changes to a model in response to identified shortcomings in verification and validation.
Describe why both verification and validation can be considered forms of quality assurance
They both ensure that the model is correct.
Describe how physical intuition can be used to verify model behaviour
If the trend of the solution is negative when it should be positive (e.g adding mass and increasing temperature actually is decreasing) we can conclude that it is wrong.