Patent ID: 8255194

Claim:
A non-transitory computer-readable medium encoded with instructions for a processor to perform a method for simulating a droplet of a fluid on a substrate in a simulation domain, comprising: instructions for dividing the simulation domain into a first sub-domain and a gap region with a retreated boundary, wherein the gap region defines a region of a specified width between a contact line of the droplet and the first sub-domain; instructions for generating a mesh that represents the first sub-domain as a plurality of elements, wherein the specification of each element includes an integer element number that represents a sequence order of that element relative to the other elements; wherein the specified width of the gap region is between 0.3 and 0.7 times the width of an element in the first sub-domain adjoining the gap region divided by the integer element number of the element in the first sub-domain adjoining the gap region; instructions for using a finite element method and the mesh to calculate a plurality of system variables indicative of a state of the droplet at a first point in time; and instructions for using a plurality of evolution equations that represent how the system variables vary over time to calculate system variables indicative of the state of the droplet at a second point in time.