OpenCMISS / iron

Source code repository for OpenCMISS-Iron
9 stars 62 forks source link

Finite elasticity element constant hydrostatic pressure fields exnode export issue #146

Open PrasadBabarendaGamage opened 6 years ago

PrasadBabarendaGamage commented 6 years ago

Values for element constant hydrostatic pressure fields are all 1.2345678806304932E+00 in the exported exnode files. E.g. see uniaxial extension example (https://github.com/OpenCMISS-Examples/uniaxial_extension). The real hydrostatic pressure values are stored in the field parameter sets (confirmed with totalview), they are just exported incorrectly.

chrispbradley commented 6 years ago

Is the correct value 1.4954269972451784E+00? If so, this is the value in the .exelem file (as it is a element constant). I'm not sure why the .exnode file has a value for the 4th dependent field variable component? Maybe it is a .ex file format thing? I would have though cmgui should read the value from the .exelem file for an element constant field?

PrasadBabarendaGamage commented 6 years ago

Ah, yes you are right. I was only looking at the exnode file. The exnode/exelem code is likely not that robust. The visualisation code in cmgui is displaying the correct hydrostatic pressure values so think it must be reading from the exelem file.