CN104809319A - Cloth simulation algorithm based on simplified implicit Euler numerical integration - Google Patents

Cloth simulation algorithm based on simplified implicit Euler numerical integration Download PDF

Info

Publication number
CN104809319A
CN104809319A CN201510271008.6A CN201510271008A CN104809319A CN 104809319 A CN104809319 A CN 104809319A CN 201510271008 A CN201510271008 A CN 201510271008A CN 104809319 A CN104809319 A CN 104809319A
Authority
CN
China
Prior art keywords
particle
difference
speed
cloth
follows
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510271008.6A
Other languages
Chinese (zh)
Inventor
宋雪桦
万根顺
王维
于宗洁
化瑞
刘委
卜晓晓
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangsu University
Original Assignee
Jiangsu University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jiangsu University filed Critical Jiangsu University
Priority to CN201510271008.6A priority Critical patent/CN104809319A/en
Publication of CN104809319A publication Critical patent/CN104809319A/en
Pending legal-status Critical Current

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Complex Calculations (AREA)

Abstract

The invention relates to a cloth simulation algorithm based on simplified implicit Euler numerical integration. According to the algorithm, each mass point in the cloth is subjected to force analysis, the resultant force applied to each mass point is calculated, and the speed and position of a target mass point are calculated by utilizing a simplified implicit Euler numerical integration algorithm and are updated in real time, and thus the simulation of the cloth is realized. The cloth simulation algorithm disclosed by the invention has the advantages of solving the problem of stability of a traditional algorithm and a small time slice in explicit Euler integration and also preventing complex calculation in implicit integration.

Description

A kind of Cloth simulation algorithm based on simplifying Implicit Euler numerical integration
Technical field
The invention belongs to Cloth simulation field, being specifically related to a kind of Cloth simulation algorithm based on simplifying Implicit Euler numerical integration.
Background technology
Real-life a lot of behavior can be described with infinitesimal analysis, and textile simulating is also like this.This process is generally first set up the differential equation, is then solved and then realized the emulation of cloth by integral method.
In Cloth simulation, conventional integration method mainly contains: explicit Euler numerical integration method and Implicit Euler numerical integration method.What explicit integration was focused on is the authenticity of simulation result, and its time needed for emulation is not long, and workload is less, but also because this increasing the number of times of iteration.Implicit integration is contrary with dominant integration, and its iterations is fewer than dominant integration, ensure that stability, can produce good simulated effect.But equally also there is shortcoming in implicit integration: because the complexity calculated is higher, cause the calculating scale of this algorithm and amount of calculation to be promoted, and the performance requirement of implicit integration to hardware is higher.Mixed method is after the advantage combining above two kinds of methods, and its performance is improved, and but, its scope that can apply is very limited, is only limitted to the system that the differential equation can be divided into linear processes.
Explicit integral algorithm has a variety of, such as Euler method, mid-point method, fourth-order Runge-Kutta method.Wherein, explicit Euler numerical integration method is the simplest integration method, and it has lower solving precision, and the method has good concurrency and speed faster, and the method calculated amount is little and be easy to realize.But the method can produce very large error, this is also one of major reason of not being widely adopted of explicit Euler algorithm.
Implicit integration algorithm is when differential equation discretize, replaces a kind of integration method of derivative with Backward divided difference.Implicit integration method has unconditional stability, and the most frequently used implicit method is exactly Implicit Euler numerical integration method.Implicit integration, while keeping system stability, can converge on equilibrium state fast, but such implicit method is when particle number is larger, and namely when fabric model is large time, its complexity calculated is quite large.Want to reach real-time effect by the method for implicit integration, need higher computer hardware demand.
Explicit Euler's integral method is one simply and fast integration method.But in the method, if want to obtain good stability, then selected time step must very little.Implicit integration is generally used for the Rigidity solving equation.It avoids the situation of time step larger in simulation calculation, meanwhile, which overcome the problem of stability, but the method also exists the problems such as inefficiency.
Pure explicit Euler numerical integration method or Implicit Euler numerical integration method can not meet the demand of reality.Reason is: explicit Euler numerical integration method can only guarantee calculates fast under the prerequisite of little step-length stability.Although and Implicit Euler integration method avoids the calculating of large step-length, overcoming stability problem, still there is the low problem of counting yield in it.
Summary of the invention
For traditional cloths emulation mode Problems existing, the present invention proposes a kind of Cloth simulation algorithm based on simplifying Implicit Euler numerical integration, by solving the speed of the next time step of each particle and corresponding position, finally the position of particle is dynamically updated, thus realize the emulation of cloth, solve the problem of minor time slice in algorithm stability and explicit Euler's integral, also avoid calculating complicated in implicit integration simultaneously.
For achieving the above object, the concrete technical scheme of the present invention is as follows: a kind of Cloth simulation algorithm based on simplifying Implicit Euler numerical integration, comprises the steps:
1) force analysis: carry out force analysis to particle each in t cloth, stressedly comprises spring force damping force gravity and wind-force wherein, described spring force computing formula is as follows:
F si t = Σ ∀ j | ( i , j ) ∈ E k i , j ( | x j - x i | - l i , j 0 ) x j - x i | x j - x i |
from the spring force of particle j suffered by t particle i, k i,jthe spring constant between particle i and particle j, x iwith x jrepresent the position of particle i and particle j respectively, l i,jfor the initial length of spring between particle i and particle j;
Described damping force computing formula is as follows:
F di t = Σ j = 0 n d ij ( v i - v j )
D ijthe elasticity coefficient between particle i and particle j, v iwith v jthe particle i speed corresponding with particle j;
Described gravity computing formula is as follows:
F gi t = m i g
M ifor the quality of particle i, g is acceleration of gravity;
Described wind-force computing formula is as follows:
F wi t = k w ( v w - v i )
K wfor wind factor, v wfor wind speed, v ifor the speed of particle i;
2) particle is calculated with joint efforts suffered: calculate making a concerted effort suffered by particle according to the stressing conditions of particle, make a concerted effort computing formula is as follows:
F i t = F si t + F di t + F gi t + F wi t
3) target particle velocity difference is calculated: utilize and simplify the speed difference that Implicit Euler numerical integration algorithm calculates particle, particle i is at t and the speed difference in t+h moment computing formula as follows:
Δ v i t + h = F i t h + h 2 k Σ ( i , j ) ∈ E F j t h / ( m j + h 2 kn j ) m i + h 2 kn i
In formula, h represents the time difference of adjacent states, n iand n jrepresent the particle number be connected with particle j with particle i respectively;
4) target particle postition difference is calculated: the position difference calculating particle according to the speed difference of particle, particle i is at t and the position difference DELTA x in t+h moment t+hcomputing formula is as follows:
Δx t+h=(v t+Δv t+h)h
In formula, v trepresent the speed of particle in t, Δ v t+hfor the difference of t and t+h hourly velocity;
5) speed and the position of each particle is upgraded: according to speed difference and position difference, real-time update is carried out to particle velocities all in cloth and position, complete the motion simulation of cloth.
A kind of Cloth simulation algorithm based on simplifying Implicit Euler numerical integration that the present invention proposes, solves the problem of minor time slice in the stability problem of traditional algorithm and explicit Euler's integral, also avoids calculating complicated in implicit integration simultaneously.
Accompanying drawing explanation
Fig. 1 is based on the Cloth simulation algorithm flow chart simplifying Implicit Euler numerical integration.
Embodiment
Below in conjunction with accompanying drawing, the invention will be further described.
Figure 1 shows that the Cloth simulation algorithm flow chart based on simplifying Implicit Euler numerical integration, comprising the following steps:
1) force analysis: carry out force analysis to particle each in t cloth, stressedly comprises spring force damping force gravity and wind-force wherein, described spring force computing formula is as follows:
F si t = Σ ∀ j | ( i , j ) ∈ E k i , j ( | x j - x i | - l i , j 0 ) x j - x i | x j - x i |
from the spring force of particle j suffered by t particle i, k i,jthe spring constant between particle i and particle j, x iwith x jrepresent the position of particle i and particle j respectively, l i,jfor the initial length of spring between particle i and particle j;
Described damping force computing formula is as follows:
F di t = Σ j = 0 n d ij ( v i - v j )
D ijthe elasticity coefficient between particle i and particle j, v iwith v jthe particle i speed corresponding with particle j;
Described gravity computing formula is as follows:
F gi t = m i g
M ifor the quality of particle i, g is acceleration of gravity;
Described wind-force computing formula is as follows:
F wi t = k w ( v w - v i )
K wfor wind factor, v wfor wind speed, v ifor the speed of particle i;
2) particle is calculated with joint efforts suffered: calculate making a concerted effort suffered by particle according to the stressing conditions of particle, make a concerted effort computing formula is as follows:
F i t = F si t + F di t + F gi t + F wi t
3) target particle velocity difference is calculated: utilize and simplify the speed difference that Implicit Euler numerical integration algorithm calculates particle, particle i is at t and the speed difference in t+h moment computing formula as follows:
Δ v i t + h = F i t h + h 2 k Σ ( i , j ) ∈ E F j t h / ( m j + h 2 kn j ) m i + h 2 kn i
In formula, h represents the time difference of adjacent states, n iand n jrepresent the particle number be connected with particle j with particle i respectively;
4) target particle postition difference is calculated: the position difference calculating particle according to the speed difference of particle, particle i is at t and the position difference DELTA x in t+h moment t+hcomputing formula is as follows:
Δx t+h=(v t+Δv t+h)h
In formula, v trepresent the speed of particle in t, Δ v t+hfor the difference of t and t+h hourly velocity;
5) speed and the position of each particle is upgraded: according to speed difference and position difference, real-time update is carried out to particle velocities all in cloth and position, complete the motion simulation of cloth.

Claims (1)

1., based on the Cloth simulation algorithm simplifying Implicit Euler numerical integration, it is characterized in that comprising the steps:
1) force analysis: carry out force analysis to particle each in t cloth, stressedly comprises spring force damping force gravity and wind-force wherein, described spring force computing formula is as follows:
F si t = Σ ∀ j | ( i , j ) ∈ E k i , j ( | x j - x i | - l i , j 0 ) x j - x i | x j - x i |
from the spring force of particle j suffered by t particle i, k i,jthe spring constant between particle i and particle j, x iwith x jrepresent the position of particle i and particle j respectively, l i,jfor the initial length of spring between particle i and particle j;
Described damping force computing formula is as follows:
F di t = Σ j = 0 n d ij ( v i - v j )
D ijthe elasticity coefficient between particle i and particle j, v iwith v jthe particle i speed corresponding with particle j;
Described gravity computing formula is as follows:
F gi t = m i g
M ifor the quality of particle i, g is acceleration of gravity;
Described wind-force computing formula is as follows:
F wi t = k w ( v w - v i )
K wfor wind factor, v wfor wind speed, v ifor the speed of particle i;
2) particle is calculated with joint efforts suffered: calculate making a concerted effort suffered by particle according to the stressing conditions of particle, make a concerted effort computing formula is as follows:
F i t = F si t + F di t + F gi t + F wi t ;
3) target particle velocity difference is calculated: utilize and simplify the speed difference that Implicit Euler numerical integration algorithm calculates particle, particle i is at t and the speed difference in t+h moment computing formula as follows:
Δv i t + h = F i t h + h 2 k Σ ( i , j ) ∈ E F j t h / ( m j + h 2 kn j ) m i + h 2 kn i
H represents the time difference of adjacent states, n iand n jrepresent the particle number be connected with particle j with particle i respectively;
4) target particle postition difference is calculated: the position difference calculating particle according to the speed difference of particle, particle i is at t and the position difference DELTA x in t+h moment t+hcomputing formula is as follows:
Δx t+h=(v t+Δv t+h)h
V trepresent the speed of particle in t, Δ v t+hfor the difference of t and t+h hourly velocity;
5) speed and the position of each particle is upgraded: according to speed difference and position difference, real-time update is carried out to particle velocities all in cloth and position, complete the motion simulation of cloth.
CN201510271008.6A 2015-05-25 2015-05-25 Cloth simulation algorithm based on simplified implicit Euler numerical integration Pending CN104809319A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510271008.6A CN104809319A (en) 2015-05-25 2015-05-25 Cloth simulation algorithm based on simplified implicit Euler numerical integration

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510271008.6A CN104809319A (en) 2015-05-25 2015-05-25 Cloth simulation algorithm based on simplified implicit Euler numerical integration

Publications (1)

Publication Number Publication Date
CN104809319A true CN104809319A (en) 2015-07-29

Family

ID=53694136

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510271008.6A Pending CN104809319A (en) 2015-05-25 2015-05-25 Cloth simulation algorithm based on simplified implicit Euler numerical integration

Country Status (1)

Country Link
CN (1) CN104809319A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111651894A (en) * 2020-06-16 2020-09-11 北京中科深智科技有限公司 Cloth deformation real-time simulation method

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102156785A (en) * 2011-04-18 2011-08-17 浙江工业职业技术学院 Dynamic cloth simulation method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102156785A (en) * 2011-04-18 2011-08-17 浙江工业职业技术学院 Dynamic cloth simulation method

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
孔川,罗大庸: "《利用弹簧质点模型和隐式方法的布料模拟研究》", 《计算机工程与应用》 *
沈照功,潘振宽: "《基于弹簧质点模型的布料仿真及碰撞处理方法》", 《计算机仿真》 *
蔡洪斌,靳碧鹏,何明耘: "《实时布料运动仿真技术》", 《电子科技大学学报》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111651894A (en) * 2020-06-16 2020-09-11 北京中科深智科技有限公司 Cloth deformation real-time simulation method

Similar Documents

Publication Publication Date Title
CN104443427B (en) Aircraft tremor prognoses system and method
CN102591207B (en) Sliding form control method of flexible joint mechanical arm based on disturbance observer
CN106778012B (en) A kind of small feature loss attachment detection descending trajectory optimization method
CN101908088B (en) Time domain bidirectional iteration-based turbine vane flutter stress forecasting method
WO2017031718A1 (en) Modeling method of deformation motions of elastic object
CN105069826B (en) The modeling method of elastomeric objects amoeboid movement
CN102567575B (en) Virtual sinusoidal vibration testing method for spacecrafts
CN103400023A (en) Soft tissue deformation simulation method
CN111695309B (en) High-performance large-scale fluid-solid coupling fluid simulation method based on statistical dynamics
CN101496028A (en) Method of simulating deformable object using geometrically motivated model
CN103699715A (en) Fluid-solid coupling method based on smoothed-particle hydrodynamics (SPH) and nonlinear finite elements
CN103776449B (en) A kind of initial alignment on moving base method that improves robustness
CN109141911A (en) The acquisition methods and device of the control amount of unmanned vehicle performance test
CN107976908B (en) Aircraft coupling dynamic stability characteristic analysis method
CN105955031A (en) Non-linear-model-predictive-control FPGA hardware acceleration controller and acceleration realization method
CN105258906A (en) Method for pre-estimating flight path of wind tunnel free flight test model
CN103994698A (en) Guided missile pitching channel simple sliding-mode control method based on overload and angular velocity measurement
CN110116409A (en) A kind of four-way remote operating bilateral control method based on disturbance observer
CN102566446B (en) Method for establishing full-envelope mathematical model of unmanned helicopter based on linear model group
CN103679484A (en) Novel method for analyzing E-commerce consistency based on behavior Petri network
CN103914872A (en) Tree animation simulation method based on simplification modal analytical method
CN103353910A (en) Circuit partitioning method for parallel circuit simulation
CN104809319A (en) Cloth simulation algorithm based on simplified implicit Euler numerical integration
CN105825239A (en) Multi-sensor track fusion method based on sparse expression
CN109724598A (en) A kind of estimation and compensation method of the time delay error of GNSS/INS pine combination

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150729

RJ01 Rejection of invention patent application after publication