Konstantine Kourbatski
Ansys Employee
the next step in the testing is to check what C_max and other factors in your calculations are:
allocate user-define memory
save C_max into this C_UDMI inside the UDF, but keep it constant when calculating rates so the code doesn't crash
check C_UDMI values in post-processing (use node values off). Do they make sense? Are the any zeros? You are dividing by C_max so if it's a zero anywhere , it's give you a floating point
You can allocate additional UDMIs and save other factors you are using in your calculations, like B, r_max etc.