So from what I learned in Julia so far, constants make everything faster. So if I have a script that calculates a value that is dependent on the input of the script but then stays constant throughout the script (e.g. a Diffusion coefficient dependent on the chemical species I want to run the script for), I could implement something like this:
fizz = 4 #dependent on input, the "constant" for the rest of the script has another value function foo(bar) return bar*3 end const buzz = foo(fizz) #do all calculations with a constant value of buzz
Now I want to implement this to in a module, but it’s not clear to me how to do it. Does anybody have some suggestions or examples?