I need to calculate the local displacement vector for my deformed material and use that to calculate some other variables. I need to know when we say local, should I use the Spatial or the Material coordinate and also I need the syntax to write it mathematically and later calculate the divergence of that.