You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've encountered 3 issues trying to run gen_ns_incomp.py.
There are incorrect keyword variables in ns_incomp.yaml: force_smoothness, force_scale, domain_size and enable_gravity. When I run python gen_ns_incomp.py it says those keyword arguments are not recognizable. Also, with scale=0.4, the particles field seem to be all nan, which leads to Phiflow error saying that the solver cannot converge. I tried setting it to 1 and that seemed to a least generate some output.
Phiflow 2.2 has changed how a Box is defined. I got an error on line 93 of sim_ns_incomp_2d.py with the newest version of PhiFlow. I got around this issue by changing it to return Box['x,y', :, 0:y]
The image generation seems broken. When I set save_images=true and save_gif=true in ns_incomp.yaml, I got an error from line 186 of sim_ns_incomp_2d.py which is particles_images.append() which appends nothing to the particles_image. Similar thing happens in line 187. I'm not sure how to get around this issue yet.
The text was updated successfully, but these errors were encountered:
Here is the gist:
Those are the only two files I edited.
With these changes I was able to run python gen_ns_incomp.py, but the results are not what the downloadable dataset "ns_incom_inhom_2d_512-0.h5" looked like at all, which I believe is what this script should generate? More specifically, my result seems like they are not really changing from time step to time step.
And I'm using PhiFlow 2.3.4.
I've encountered 3 issues trying to run
gen_ns_incomp.py.
ns_incomp.yaml
:force_smoothness
,force_scale
,domain_size
andenable_gravity
. When I runpython gen_ns_incomp.py
it says those keyword arguments are not recognizable. Also, withscale=0.4
, the particles field seem to be all nan, which leads to Phiflow error saying that the solver cannot converge. I tried setting it to 1 and that seemed to a least generate some output.sim_ns_incomp_2d.py
with the newest version of PhiFlow. I got around this issue by changing it toreturn Box['x,y', :, 0:y]
save_images=true
andsave_gif=true
inns_incomp.yaml
, I got an error from line 186 ofsim_ns_incomp_2d.py
which isparticles_images.append()
which appends nothing to theparticles_image
. Similar thing happens in line 187. I'm not sure how to get around this issue yet.The text was updated successfully, but these errors were encountered: