Yihao-Shi / GeoTaichi

A Taichi-powered high-performance numerical simulator for multiscale and multifield geophysical problems
GNU General Public License v3.0
78 stars 9 forks source link

APIC Issue #19

Closed MZKmazikun closed 1 week ago

MZKmazikun commented 2 weeks ago

Hello, thank you for sharing your valuable code.

I am encountering some issues while using APIC. First, on line 147 of Simulation.py, the term "APIC" might need to be changed to "MLSMPM" (to match the term "MLSMPM" on line 49 of ULExplicitEngine.py). After making the necessary modifications to the source code, I am still encountering the following error:

Traceback (most recent call last): File "F:\PycharmProjects\pythonProjects\geotaichi\test_small.py", line 147, in mpm.run() File "F:\anaconda3\envs\geotaichi\lib\site-packages\src\mpm\mainMPM.py", line 265, in run self.solver.Solver(self.scene, self.neighbor) File "F:\anaconda3\envs\geotaichi\lib\site-packages\src\mpm\MPMBase.py", line 55, in Solver self.core(scene, neighbor) File "F:\anaconda3\envs\geotaichi\lib\site-packages\src\mpm\MPMBase.py", line 152, in core self.engine.compute(self.sims, scene) File "F:\anaconda3\envs\geotaichi\lib\site-packages\src\mpm\engines\ULExplicitEngine.py", line 340, in mls_updating self.compute_nodal_kinematic(sims, scene) File "F:\anaconda3\envs\geotaichi\lib\site-packages\src\mpm\engines\ULExplicitEngine.py", line 150, in compute_nodal_kinematics_apic kernel_momentum_apic_p2g(scene.element.grid_nodes, int(scene.particleNum[0]), scene.node, scene.particle, scene.element.LnID, scene.element.shape_fn, scene.element.node_size) File "F:\anaconda3\envs\geotaichi\lib\site-packages\taichi\lang\kernel_impl.py", line 976, in wrapped raise type(e)("\n" + str(e)) from None taichi.lang.exception.TaichiSyntaxError: Parameter 'node_size' missing.

Yihao-Shi commented 1 week ago

Yes, MLSMPM are not available at the moment, and we will have all the reported bugs fixed within the next two months.