The invention relates to the technical field of
dynamic simulation, and discloses an electric
fireplace three-dimensional dynamic
flame simulation generation method and
system, and the method comprises the steps: obtaining a
flame base region, carrying out
temperature gradient solution and heat source intensity mapping, obtaining
temperature gradient distribution and heat source intensity distribution, and carrying out
heat flow direction vector screening, and obtaining an initial thermal driving vector; according to the initial thermal driving vector, acceleration weighting calculation is carried out to obtain a final acceleration, and
spatial displacement calculation is carried out to obtain an actual track sequence; according to the actual track sequence, displacement correction is carried out, a coherent path sequence is generated, abnormity recognition is carried out, and an abnormal path is obtained; calculating the variance of the initial speed sequence according to the coherent path sequence to obtain an inter-frame continuity result, and performing trajectory
smoothing according to the abnormal path to obtain an optimized trajectory sequence; and performing three-dimensional texture generation according to the optimized track sequence to obtain
flame texture output. The method can realize dynamic high-precision
simulation of flame.