easiest way to access young's modulus values

Submitted by mschramm on
Daniel Queteschiner

style (i.e. the fix style name) is not really important here. It is just used in case of an error to notify the user which class was calling the find_fix_property method.
You could for example also use the ID of the calling fix instance ...

Mon, 7 Oct 2019 - 14:41 Permalink

Hello.
I would like to use the young's modulus that is imported by the user when describing a particle.
What would be the easiest way to access this value?
From looking at fix_check_timestep, I know I want to use
Y = static_cast(modify->find_fix_property("youngsModulus","property/global","peratomtype",max_type,0,style));
but I do not know what style is in this sense.