Font Size: a A A

Ink Diffusion Algorithm Based On Logic Data Petri Net

Posted on:2021-01-25Degree:MasterType:Thesis
Country:ChinaCandidate:T T TanFull Text:PDF
GTID:2518306032959189Subject:Software engineering
Abstract/Summary:PDF Full Text Request
In order to improve the authenticity of computer simulation ink diffusion,this paper proposes an ink diffusion algorithm based on logical data Petri net,establishes an ink diffusion simulation model,and simulates the dynamic effect of ink diffusion on rice paper model.Firstly,this paper starts from the research background of computer simulation of ink diffusion,and introduces the research status of computer simulation of ink diffusion at home and abroad.Secondly,the related theories of Petri nets used in this paper are introduced,including logical Petri nets and logical data Petri nets.Then analyze the methods and conditions of ink diffusion,establish rice paper model according to the ink diffusion conditions,and establish a coordinate system on the rice paper model to record the diffusion position of ink particles.After that,this paper also established a priority sequence,adding attributes to each token in the paper,and judging its priority sequence according to token’s attributes.Mapping to the ink diffusion model is the priority sequence of ink particle diffusion.After knowing the conditions and priority sequence of ink and wash diffusion,this paper introduces Petri net theory into the computer simulation of ink and wash diffusion,and establishes the ink and wash diffusion model based on logical data Petri net.The specific modeling and Petri net operation process are as follows.On the basis of a single ink particle diffusion Petri net model,circulation conditions are added to establish a complete ink droplet diffusion Petri net model,so that during the ink droplet diffusion process,the Petri net system can circulate until all ink particles are diffused and the Petri net system stops running.Record the path of mark movement in Petri net,which is the path of ink particle diffusion.The recorded running result of logical data Petri net,that is,the diffusion path of each diffusible ink particle in the ink drop,is drawn into the rice paper model,and the effect diagram of ink diffusion is realized on the rice paper model.The experimental results show that,according to the ink diffusion algorithm studied in this paper,in the ink diffusion model based on logical data Petri net,the path of logo movement is drawn into the rice paper model,which can realize the vignetting effect of real ink on rice paper.
Keywords/Search Tags:Ink diffusion, Priority function, Modeling rice paper, Logic data Petri net, Petri net modeling
PDF Full Text Request
Related items