I am working on my project on the production, in particular, on fluid dynamics, and I have a system of nonlinear equations to solve, I choose Newton's method, so I have to go through the Jacobian matix (actually a 12x12 matrix). Each element in this matrix is ββa derivative of a function evaluated at some point; it is very difficult to write all this data manually and calculate each derivative; the system looks like this:
f
1 (x
1 , x
2 , x
3 , ..., x
12 ) = 0
f
2 (x
1 , x
2 , x
3 , ..., x
12 ) = 0
,
,
,
f
12 (x
1 , x
2 , x
3 , ..., x
12 ) = 0
Where x 1 , x 2 , x 3 are variables (temperature, pressure ... etc.)
Can I automate this operation? If this is not possible in Fortran, is it possible to use other scripting languages ββlike Python (sympy module)?
source share