Stress with temperature expansion - Code Answer Flashcards

1
Q

What line comes after ‘strain = [0.0015; 0.0011; 0.0003];’?

A

beta = [alpha * (tempr - temp0); alpha * (tempr - temp0; 0];

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the last 3 lines required to form the D-matrix? (Just look at the D-matrix given it makes sense)

A

dmatx(1, 2) = const * poiss;
dmatx(2, 1) = const * poiss;
dmatx(3, 3) = (1.0 - poiss) * const / 2.0;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What ‘for loops’ cone after ‘% Compute stress vector (stress)’?

A
for i = 1 : 3
     stres(i) = 0.0;
     for = j : 3;
            stres(i) = stres(i) + dmatx(i, j) * (strain(j) - beta(j));
     end
end
How well did you know this?
1
Not at all
2
3
4
5
Perfectly