Update setFields to get U field
This commit is contained in:
parent
e49eda3d04
commit
b6985ced0f
2 changed files with 1 additions and 2 deletions
|
@ -35,7 +35,7 @@ regions
|
||||||
}
|
}
|
||||||
boxToCell
|
boxToCell
|
||||||
{
|
{
|
||||||
box (-100 0 0) (-100 1 1);
|
box (-110 -100 0) (-100 100 1);
|
||||||
|
|
||||||
fieldValues
|
fieldValues
|
||||||
(
|
(
|
||||||
|
|
|
@ -61,4 +61,3 @@ for zk_l, velk_l, vz_l in zip(zk_tl, velk_t, vz_t):
|
||||||
|
|
||||||
model.write_field("alpha.water", alpha_water)
|
model.write_field("alpha.water", alpha_water)
|
||||||
model.write_vector_field("U", np.stack((ux, uy, uz)).T)
|
model.write_vector_field("U", np.stack((ux, uy, uz)).T)
|
||||||
plt.savefig("test.pdf")
|
|
||||||
|
|
Loading…
Reference in a new issue