Showing results for 
Search instead for 
Do you mean 

spatial varying pressure

I am trying to give spatial varying pressure(i.e 4.1233*(y-50)) on edge of plane stress element. But when I am giving this varying pressure it shows the error Dimensioned not matched. So can anyone tell how should we give this pressure.


Re: spatial varying pressure

You are applying a pressure, so your expression needs to evaluate to either a unitless value (in which case the system assumes pressure units) or to pressure units. The only variable in the expression that has units is 'y', which has length units, so 4.1233*(y-50) evaluates to length units.


To fix this, divide the y value by 1 length unit. If you are working in mm , the expression would be:





Re: spatial varying pressure

Still getting the same error. Please have a look at the attached snippet.

Re: spatial varying pressure

You forgot the key part - the units designation on the 1.


ug_var("y") returns a length unit. Dividing it by a unitless 1 still leaves a length unit. You need to divide by 1[mm] to have the units cancel:


the expression should be entered exactly as follows: