This application is based upon and claims the benefit of priority of the prior Japanese Patent Application No. 2016-145674, filed on Jul. 25, 2016, the entire contents of which are incorporated herein by reference.
The embodiments discussed herein are related to a computer-readable recording medium, a particle simulation method, and an information processing apparatus.
In recent years, various fluid analysis methods have been presented to numerically calculate a movement of fluid (also called “continuum”) such as water, the air, or the like by using a particle method.
Regarding the particle method, one of technologies is presented to generate or delete particles based on positions of boundary particles calculated based on an internal pressure of a mold, which represents a pressure change of an inflow port and is regarded as reaction of a repulsive force acting on the particles by a wall surface potential of the boundary particles, and on an external pressure of emitting the particles to the mold.
According to one aspect of the embodiments, there is provision for a non-transitory computer-readable recording medium storing therein a particle simulation program that causes a computer to execute a process including: forming a particle generation surface in a vicinity of an inflow port; forming a particle disappearance surface representing a boundary to eliminate particles depending on the particle generation surface; performing a particle simulation, in which the particles of fluid filled in a vessel are flowed out from the inflow port; periodically generating the particles from the particle generation surface; and eliminating a particle crossing out of the particle disappearance surface.
The object and advantages of the invention will be realized and attained by means of the elements and combinations particularly pointed out in the claims.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory and are not restrictive of the invention, as claimed.
In the particle method, it is easy to inflow the particles at a constant flow velocity (by a constant inflow amount). However, it is difficult to set an inflow condition by a constant pressure value on an inflow surface. That is, there is a problem, in which the pressure in the vicinity of the inflow port (an inflow surface) becomes higher than in an actual pressure due to the particles in counterflow with respect to a particle simulation representing a phenomenon in which the fluid filling the vessel inflows downward from an opening of a bottom surface.
A preferred embodiment of the present invention will be described with reference to the accompanying drawings. First, a fluid analysis method will be described. As the fluid analysis method, a Smoothed Particle Hydrodynamics (SPH) method, a Moving Particle Semi-implicit, and a Moving Particle Simulation (MPS) method have been known to discretize continuums as particles (also called “fluid particles”) and to represent the continuums by distribution.
In these methods for representing an analysis subject by using a particle distribution, a particle within a distance h, which is called an influence radius, from another particle is defined as a neighbor particle, and information of the neighbor particle is used.
As an example, a formula is presented to discretize an equation of motion by the SPH method as follows:
In the above formula (1), a subscript character represents each of the particles. That is, ra, Va, ρa, Pa, and ma indicates a position vector, a velocity vector, a density, a pressure, and a mass of a particle “a”, respectively. Πab indicates an amount calculated by dividing the viscous stress tensor by the density. W is a Kernel function, and is used to form a continuous field from a distribution of the particles. The following cubic spline function or the like is frequently used.
An inflow condition of liquid for a calculation is given by generation of the particles at a specific location. In this case, the inflow condition is given by applying specific velocity, pressure, density, mass, and the like to each of the particles. In the particle method, it is easy to inflow the particles at a constant flow velocity (the constant inflow amount). It is difficult to set the inflow condition at a constant pressure value on the inflow surface.
Accordingly, a case is considered whereby the particle simulation of the phenomenon, in which the fluid filling the vessel inflows downward from the opening of the bottom surface, is conducted. In the particle simulation, the liquid in the vessel positioned at a specific location depicted in
The model depicted in
A case of generating the particles at a constant flow velocity (constant inflow amount), with the assumption that the fluid accumulated at an upper location as described above is caused to free-fall due to gravity 6, is described.
As depicted in
As an outflow condition at this time, a velocity on the inflow surface is defined as constant. In a case in which the velocity in a vicinity of the particle generation surface is similar to the inflow velocity, the particles are flowed without any problem. However, in a case in which the inflow of the particles is proceeded with a condition as depicted in
In such a calculation, a density becomes high due to inflowing particles and counter-flowing particles, and the pressure increases around a boundary of the inflow. In order to retain a condition of a constant velocity, the fluid particles in counterflow are pushed against. The pressure becomes higher around the inflow surface. A behavior whereby a pushback that is stronger than necessary is represented. Hence, a behavior of the fluid is not properly reproduced.
It is considered that it is possible to avoid this problem by using an inflow condition based on a pressure value at the inflow surface. In order to use an inflow condition of a constant pressure with respect to the inflow surface, a pressure calculation of the inflow surface in the particle method becomes complicated and is not easily performed.
In the embodiment, the fluid particles inflows at a constant velocity, and a particle disappearance boundary is set depending on the inflow surface. The fluid particles in the counterflow are eliminated, and an increase of the pressure of the inflow surface is avoided.
The fluid particles 51 are accelerated in a run-up area 8, which is defined, and approximately advance straightly to enter the inflow port 3. In the following, a plurality of the fluid particles 51, which are collectively and successively generated on the particle generation surface 7 by the particle simulation, are illustrated as continuous particles 50. The continuous particles 50 are regarded as a model to represent fluid, and have data of center coordinates, velocity, an influence radius, density, mass, temperature, and the like.
A counterflow particle 52 depicted in
In the embodiment, by setting a particle disappearance surface 9 with respect to the counterflow particle 52, it is possible to rectify the phenomenon represented by the pressure increasing more than the actual pressure due to the counterflow particle 52 in the vicinity of the inflow port 3 of the runner 4.
A particle simulation apparatus 100 according to the embodiment includes a hardware configuration as depicted in
The CPU 11 corresponds to a processor to control the particle simulation apparatus 100 in accordance with a program stored in the main storage device 12. The main storage device 12, in which a Random Access Memory (RAM), a Read Only Memory (ROM), or the like are used, stores or temporarily stores the program executed by the CPU 11, data for a process by the CPU 11, or data acquired for the process by the CPU 11.
As the auxiliary storage device 13, a Hard Disk Drive (HDD) or the like is used, and stores data such as the program to perform various processes and the like. A part of the program stored in the auxiliary storage device 13 is loaded in the main storage device 12, and the various processes are realized. A storage part 130 corresponds to the main storage device 12 and/or the auxiliary storage device 13.
The input device 14 includes a mouse, a keyboard, and the like, and is used for a user to input various information items for the process conducted by the particle simulation apparatus 100. The display device 15 displays various information items as controlled by the CPU 11. The input device 14 and the display device 15 may be integrated as a user interface such as a touch panel. The communication I/F 17 conducts wireless or wired communications through a network. The communications by the communication I/F 17 are not limited to the wireless or wired communications.
The program for realizing the process conducted by the particle simulation apparatus 100 may be provided by a recording medium 19 such as a Compact Disc Read-Only Memory (CD-ROM) to the particle simulation apparatus 100.
The drive device 18 interfaces between the recording medium 19 (such as the CD-ROM or the like) and the particle simulation apparatus 100.
Also, the program, which realizes the various processes according to the embodiment, is stored in the recording medium 19. The program stored in the recording medium 19 is installed into the particle simulation apparatus 100 through the drive device 18, and becomes executable by the particle simulation apparatus 100.
The recording medium 19 storing the program is not limited to the CD-ROM. The recording medium 19 may be any type of a recording medium, which is a non-transitory tangible computer-readable medium including a data structure. The recording medium 19 may be a portable recording medium such as a Digital Versatile Disc (DVD), a Universal Serial Bus (USB) memory, or the like, or a semiconductor memory such as a flash memory.
The input data acquisition part 41 corresponds to a process for generating data to input to the simulation execution part 45, and further includes a generation surface determination part 41a, a run-up area setting part 41b, and a particle disappearance surface setting part 41c.
The generation surface determination part 41a determines the particle generation surface 7 based on a shape of the inflow port 3 indicated by the model 1. The particle generation surface 7 is generated immediately above the inflow port 3 and in the vicinity thereof parallel to the inflow surface of the inflow port 3. The particle generation surface information 31 for representing the particle generation surface 7 is stored in the storage part 130
Also, virtual particles are defined on the particle generation surface 7 in order to conduct a generation determination of the continuous particles 50. The virtual particles are regarded as particle data similar to the continuous particles 50. The center coordinates, the inflow velocity, the inflow surface of the particles, and the like are represented by the particle data.
The run-up area setting part 41b sets the run-up area 8 having approximately the same length as the influence radius, perpendicular to the particle generation surface 7. The run-up area 8 is formed between the particle generation surface 7 and the particle disappearance surface 9. The run-up area information 32 for representing the run-up area 8 is stored in the storage part 130.
The particle disappearance surface setting part 41c refers to the model 1, and forms the particle disappearance surface 9 ranging from the run-up area 8 to the inflow port 3 based on the inflow port 3 and the inflow direction 6f. The particle disappearance surface information 33 representing the particle disappearance surface 9 in the two dimensions or three dimensions is stored in the storage part 130.
The fluid particles 51 flow through an inside surrounded by the particle disappearance surface 9 toward the inflow port 3. A shape of the particle disappearance surface 9 may correspond to that of the inflow port 3. Alternatively, a margin may be defined outside the inflow port 3 for the shape of the particle disappearance surface 9 to be wider. A size of a tubular cross-section formed by the particle disappearance surface 9 may be defined to be wider than the size of the inflow port 3.
The input data acquisition part 41 creates the input data 35 to be input to the simulation execution part 45 from the acquired information and the like. The input data 35 includes information of the continuous particles 50, the virtual particles, the run-up area 8, the particle disappearance surface 9, and the like.
The simulation execution part 45 is regarded as a process part that reads the input data 35 and executes the particle simulation, and further includes a particle generation part 45a, a flow velocity setting part 45b, a motion analysis part 45c, a physical quantity acquisition part 45d, and a particle elimination part 45e.
The particle generation part 45a determines a generation of the fluid particles 51 to flow into the mold 5 and generates the fluid particles 51. The flow velocity setting part 45b sets the flow velocity of the fluid particles 51. The motion analysis part 45c determines the motion of the continuous particles 50 in accordance with a physical model set to the continuous particles 50. The physical quantity acquisition part 45d acquires a physical quantity of the continuous particles 50. The particle elimination part 45e refers to information of the physical model or the like of the particle data 37, determines disappearance of the counterflow particle 52 in the vicinity of the particle disappearance surface 9, and deletes the counterflow particle 52.
The particle data 37 are updated as time progresses by the particle generation part 45a executing the particle simulation. The particle data 37 indicate information of the physical model, the physical quantity, and the like for each of the fluid particles 51 as the continuous particles 50.
The disappearance surface formation part 42a, referring to the model 1, and based on the inflow port 3 and the inflow direction 6f, forms the particle disappearance surface 9 ranging from the run-up area 8 to the inflow port 3, to be along the shape of the inflow port 3.
The margin setting part 42b sets the margin to make the tubular cross-section formed by the particle disappearance surface 9 wider from the inflow port 3 to an outside. Any margin may be defined. As an example, the margin may be set to be less than or equal to a diameter of the fluid particle 51 (the counterflow particle 52). Alternatively, the margin may be appropriately set by the user.
The disappearance area setting part 42c sets a partial area in the particle disappearance surface 9 where the disappearance surface formation part 42a is generated, as an area to eliminate the counterflow particle 52 or an area not to eliminate the counterflow particle 52. In a case in which the particle disappearance surface 9 is represented by four side surfaces of a rectangle, one of the four side surfaces may be indicated as a disappearance area. In a case in which the particle disappearance surface 9 is represented by a side surface of a cylinder, a direction from a center of a circle and a range are indicated as the disappearance area. A part of the particle disappearance surface 9 may be appropriately set by the user. Alternatively, for an area other than the disappearance area in the particle disappearance surface 9, the wall surface may be set.
The surface arrangement part 42d arranges the particle disappearance surface 9 along the inflow port 3. By the particle disappearance surface setting part 41c, the particle disappearance surface information 33 is output. By the particle disappearance surface information 33, at the least a disappearance surface shape and a length of the particle disappearance surface 9 in the inflow direction 6f are indicated, and surface indication information of a margin value, the disappearance area, the wall surface and the like may be indicated if necessary.
In a case in which the shape of the disappearance surface is represented, instead of indicating the disappearance area and the wall surface, a surface direction may be simply indicated. The run-up area 8 is defined on the particle disappearance surface 9 toward an upstream side of the inflow direction 6f from the inflow port 3, and the particle generation surface 7 is further defined above the run-up area 8.
Next, a process conducted by the particle simulation apparatus 100 will be described.
In the simulation execution part 45, the particle generation part 45a conducts a generation determination of the inflow particles (the fluid particles 51 of the particle generation surface 7), and generates the inflow particles based on a generation determination result (step S72). The particle generation part 45a refers to information of the virtual particles from the input data 35. When a product of elapsed times from a previous generation of the inflow velocity, the inflow area, and the fluid exceeds a certain value, the inflow particles are generated on the virtual particles. That is, in the particle generation surface 7, the fluid particles 51 are generated.
Next, the flow velocity setting part 45b sets the flow velocity of the generated fluid particles 51 (step S73). The flow velocity setting part 45b may apply the constant velocity to the generated fluid particles 51. In order to accurately conduct a proximity computation by the particle method, the flow velocity setting part 45b may apply the same velocity as the inflow velocity to the fluid particles 51 in the run-up area 8, which is defined by the length of approximately the influence radius.
Then, the motion analysis part 45c solves a motion of the continuous particles 50 in accordance with the physical model of the particle data 37 (step S74). For the continuous particles 50 modeling the fluid, Navier-Stokes equations may be solved and an acceleration is acquired.
Next, the physical quantity acquisition part 45d conducts a time integration of the physical quantity of the continuous particles 50 by using a time differentiation term including the acceleration acquired by the motion analysis part 45c, and advances the time by a predetermined time span corresponding to one step (step S75). By using results of step S74 and step S75, the particle data 37 are updated.
Next, the particle elimination part 45e conducts a particle disappearance determination due to the particle disappearance surface 9 indicated by the input data 35, and deletes the counterflow particle 52 based on a particle disappearance determination result (step S76). The particles, which position outside the particle disappearance surface 9, are determined as the counterflow particle 52 and are deleted. A state, in which the velocity flowing counter to the inflow direction 6f (or the gravity 6), may be added as a requirement for determining the counterflow particle 52.
In response to an end of a time development calculation for one step, the simulation execution part 45 outputs a calculation result based on the particle data 37 (step S77), and determines whether a predetermined process for one step ends (step S78).
When the predetermined process has not ended (NO of step S78), the simulation execution part 45 goes back to step S72, and repeats the above described process in the same manner. Conversely, when the predetermined process ends (YES of step S78), the simulation execution part 45 terminates the particle simulation.
Next, the input data acquisition process conducted by the input data acquisition part 41 will be described.
In the input data acquisition part 41, the generation surface determination part 41a acquires the position and the shape of the inflow port 3 of the mold 5 based on the model 1 (step S81). The generation surface determination part 41a generates and sets the particle generation surface 7 having the same shape as the inflow port 3 in a vicinity of an upstream side from the position of the inflow port 3 (step S82). In order to conduct the generation determination of the continuous particles 50, the virtual particles are set on the particle generation surface 7, and the particle generation surface information 31 representing the particle generation surface 7 is stored in the storage part 130.
The run-up area setting part 41b sets the run-up area 8 having the length of approximately the influence radius, perpendicular to the particle generation surface 7 (step S83). A bottom surface of the run-up area 8 has the same shape as that of the particle generation surface 7. The run-up area information 32 representing the run-up area 8 is stored in the storage part 130.
The steps S84 through S87 correspond to processes conducted by the particle disappearance surface setting part 41c. First, in the particle disappearance surface setting part 41c, the disappearance surface formation part 42a generates the particle disappearance surface 9 of a predetermined width perpendicular to the bottom surface of the run-up area 8 along the inflow direction 6f to correspond to the shape of the particle generation surface 7 (step S84). The disappearance surface shape indicating the shape of the tubular cross-section formed by the particle disappearance surface 9 and the length of the particle disappearance surface 9 are set in the particle disappearance surface information 33.
The margin setting part 42b sets the margin so that the size of the tubular cross-section formed by the particle disappearance surface 9 becomes wider than the inflow port 3 (step S85). A margin value is added to the particle disappearance surface information 33.
The disappearance area setting part 42c sets a disappearance area to eliminate the counterflow particle 52 or the wall surface not to eliminate the counterflow particle 52 at the particle disappearance surface 9 (step S86). The surface indication information indicating the disappearance area of the wall surface is added. Depending on the shape of the particle disappearance surface 9, the surface direction corresponding to the disappearance area or the wall surface may be indicated in the particle disappearance surface information 33.
Next, the surface arrangement part 42d arranges the particle disappearance surface 9 at the position of the inflow port 3 based on the particle disappearance surface information 33 with respect to the model 1 (step S87). The particle disappearance surface 9 is arranged between the run-up area 8 and the inflow port 3. After the particle disappearance surface 9 is arranged, the input data acquisition part 41 terminates the input data acquisition process.
In the above first functional configuration, by corresponding to the position and the shape of the inflow port 3, the particle generation surface 7, the run-up area 8, and the particle disappearance surface 9 are formed in this order. Next, a second functional configuration will be described. In the second functional configuration, after the particle disappearance surface 9 is generated perpendicularly to the inflow surface from the inflow port 3, the particle generation surface 7 is set, and the run-up area 8 is set.
Similar to the first functional configuration, the storage part 130 stores the model 1, the particle generation surface information 31, the run-up area information 32, the particle disappearance surface information 33, the input data 35, the particle data 37, and the like.
The input data acquisition part 43 is regarded as the process part that generates data to input to the simulation execution part 45, similarly to the first functional configuration. However, as illustrated in a flowchart below, a procedure of processes is different from that in the first functional configuration. In the second functional configuration, the input data acquisition part 43 includes a particle disappearance surface setting part 43a, a generation surface determination part 43b, and a run-up area setting part 43c.
The particle disappearance surface setting part 43a, referring to the model 1, and based on the inflow port 3 and the inflow direction 6f, forms the particle disappearance surface 9 having a predetermined length, perpendicular to the inflow surface and from the inflow port 3, along the shape of the inflow port 3. The particle disappearance surface information 33 representing the particle disappearance surface 9 in the two dimensions or three dimensions is stored in the storage part 130.
The generation surface determination part 43b determines the particle generation surface 7 based on the shape (the inflow surface) of the inflow port 3 indicated by the model 1. The particle generation surface 7 is generated immediately above the inflow port 3 and in the vicinity thereof in parallel to the inflow surface of the inflow port 3, and at a location distanced by a height of the run-up area 8 from the particle disappearance surface 9. The particle generation surface information 31 representing the particle generation surface 7 is stored in the storage part 130. The height of the run-up area 8 corresponds to the length of approximately the influence radius. The virtual particles are defined in the same manner as the second functional configuration, and the explanation thereof will be omitted.
The run-up area setting part 43c sets the run-up area 8 having approximately the same length as the influence radius perpendicular to the particle generation surface 7. The run-up area 8 is formed between the particle generation surface 7 and the particle disappearance surface 9. The run-up area information 32 representing the run-up area 8 is stored in the storage part 130.
The input data acquisition part 43 acquires the input data 35 by the particle disappearance surface setting part 43a, the generation surface determination part 43b, and the run-up area setting part 43c. The simulation execution part 45 reads the input data 35 at a time of the particle simulation. The functional configuration and the process flow of the particle simulation conducted by the simulation execution part 45 are the same as those in the first embodiment. Hence, parts that are the same as those in the first embodiment are designated by the same reference numerals, and the explanation thereof will be omitted.
Also, the functional configuration of the input data acquisition part 43 includes the disappearance surface formation part 42a, the margin setting part 42b, the disappearance area setting part 42c, and the surface arrangement part 42d, similar to that illustrated in
The input data acquisition process of the input data acquisition part 43 will be described in the second functional configuration illustrated in
In
The particle disappearance surface setting part 43a acquires the position and the shape of the inflow port 3 of the vessel 5 based on the model 1 (step S91), and generates the particle disappearance surface 9 having a predetermined length parallel to the inflow direction 6f from the inflow port 3 (step S92). The particle disappearance surface 9 is generated within a range, in which the particle generation surface 7 is set near the inflow port 3. The disappearance surface shape indicating the tubular cross-section formed by the particle disappearance surface 9 and the width of the particle disappearance surface 9 are set to the particle disappearance surface information 33.
The margin setting part 42b sets the margin for the tubular cross-section formed by the particle disappearance surface 9 to be wider than the inflow port 3 (step S93). The margin value is added to the particle disappearance surface information 33.
The disappearance area setting part 42c sets the disappearance area to eliminate the counterflow particle 52 or sets the wall surface not to eliminate the counterflow particle 52 with respect to the particle disappearance surface 9 (step S94). The surface indication information indicating the disappearance area or the wall surface is added to the particle disappearance surface information 33. Depending on the particle disappearance surface 9, the surface direction corresponding to the disappearance area or the wall surface may be indicated by the particle disappearance surface information 33.
The surface arrangement part 42d arranges the particle disappearance surface 9 at the position of the inflow port 3 based on the particle disappearance surface information 33 with respect to the model 1 (step S95).
Next, the generation surface determination part 43b generates and sets the particle generation surface 7 having the same shape as the inflow port 3 at a location upstream from the particle disappearance surface 9 set at the inflow port 3, based on the position and the shape of the inflow port 3 of the vessel 5 (step S96). The particle generation surface 7 is set near the inflow port 3. The virtual particles are set on the particle generation surface 7 in order to conduct the generation determination of the continuous particles 50, and the particle generation surface information 31 representing the particle generation surface 7 is stored in the storage part 130.
Moreover, the run-up area setting part 43c sets the run-up area 8 having the length of approximately the influence radius, perpendicular to the particle generation surface 7 toward the inflow port 3 from the position of the particle generation surface 7 (step S97). The bottom surface of the run-up area 8 has the same shape as the particle generation surface 7. The run-up area information 32 representing the run-up area 8 is stored in the storage part 130. The particle disappearance surface setting part 43a terminates the particle disappearance surface setting process.
Setting examples of the particle generation surface 7, the run-up area 8, the particle disappearance surface 9, and the like corresponding to the shape of the inflow port 3 will be illustrated below. The setting examples described with reference to
The particle generation surface 7 having the same circular form as the inflow port 3 is defined at the upstream side of the inflow direction 6f with respect to the inflow port 3. The run-up area 8, which is cylindrical and for which the particle generation surface 7 is an upper surface, is defined. The particle disappearance surface 9 is formed from the bottom surface of the run-up area 8 to the inflow port 3.
In the existing particle simulation, the particles (the fluid particles 51) generated at the particle generation surface 7 and multiple counterflow particles 52 adversely flowing are densely crowded in the vicinity of the inflow port 3. Then, the pressure becomes higher than the actual pressure in the vicinity of the inflow surface formed at the inflow port 3. As described above, according to the embodiment, it is possible to rectify a phenomenon represented by the pressure increasing more than the actual pressure in the vicinity of the inflow surface formed at the inflow port 3.
All examples and conditional language recited herein are intended for pedagogical purposes to aid the reader in understanding the invention and the concepts contributed by the inventor to furthering the art, and are to be construed as being without limitation to such specifically recited examples and conditions, nor does the organization of such examples in the specification relate to a showing of the superiority and inferiority of the invention. Although the embodiments of the present invention have been described in detail, it should be understood that the various changes, substitutions, and alterations could be made hereto without departing from the spirit and scope of the invention.
Number | Date | Country | Kind |
---|---|---|---|
2016-145674 | Jul 2016 | JP | national |