원시데이터 수집 시스템
선정목록으로

Fast Numerical Coarsening with Local Factorizations

간접 관련 엔지니어링 플라스틱 · (23) 컴파운드 (21) 에폭시수지(22) POM(폴리아세탈)

기본 정보

저자
  1. Zhongyun He — Universidad Rey Juan Carlos, Madrid, Spain
  2. Jesús Pérez — Universidad Rey Juan Carlos, Madrid, Spain
  3. Miguel Á. Otaduy — Universidad Rey Juan Carlos, Madrid, Spain
DOI
10.1111/cgf.14619
저널
Computer Graphics Forum
발행년도
2022
발행기관
Wiley
피인용수
1
라이선스
cc-by-nc-nd
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1111/cgf.14619
토픽
Composite Material Mechanics
OpenAlex ID
W4328028283

평가 내용

관련도
간접 관련
사업분야
엔지니어링 플라스틱 · (23) 컴파운드
부 분야
(21) 에폭시수지, (22) POM(폴리아세탈)
R&D 측면
분석·모델링
확신도
0.70
근거 용어
Numerical coarsening, fast simulation, local material updates, domain-decomposition solver, optimization
판단 근거
이 논문은 이질적인 물성을 가진 물체의 빠른 시뮬레이션을 위한 수치적 거칠기(coarsening) 및 최적화 기법을 다루고 있습니다. 이는 복합소재(컴파운드)나 고분자 혼합물의 국부적 물성 변화를 예측하는 해석 모델링에 응용될 수 있습니다.
R&D 활용 포인트
복합소재(컴파운드)나 엔지니어링 플라스틱의 미세 구조 변화 및 국부적 물성 불균일성에 따른 구조적 거동을 빠르게 시뮬레이션하는 해석 기술로 활용 가능합니다.
평가 입력
초록 1,102자

초록

Abstract Numerical coarsening methods offer an attractive methodology for fast simulation of objects with high‐resolution heterogeneity. However, they rely heavily on preprocessing, and are not suitable when objects undergo dynamic material or topology updates. We present methods that largely accelerate the two main processes of numerical coarsening, namely training data generation and the optimization of coarsening shape functions, and as a result we manage to leverage runtime numerical coarsening under local material updates. To accelerate the generation of training data, we propose a domain‐decomposition solver based on substructuring that leverages local factorizations. To accelerate the computation of coarsening shape functions, we propose a decoupled optimization of smoothness and data fitting. We evaluate quantitatively the accuracy and performance of our proposed methods, and we show that they achieve accuracy comparable to the baseline, albeit with speed‐ups of orders of magnitude. We also demonstrate our methods on example simulations with local material and topology updates.

본문 36,876자

본문 펼치기
Figure 1: On the left, we compare a fine-mesh simulation of a heterogeneous material (green is soft, magenta is stiff) vs. the state-of-the-art numerical coarsening method of Chen et al. [CBW * 18]. This method is accurate, but it relies heavily on preprocessing. On the right, we update the material dynamically, erasing some stiff cells. State-of-the-art numerical coarsening cannot afford an update of the coarse shape functions, and the simulation is very inaccurate. Our method, on the other hand, allows fast update of the shape functions on-the-fly, and retains the accuracy of state-of-the-art numerical coarsening.AbstractNumerical coarsening methods offer an attractive methodology for fast simulation of objects with high-resolution heterogeneity. However, they rely heavily on preprocessing, and are not suitable when objects undergo dynamic material or topology updates. We present methods that largely accelerate the two main processes of numerical coarsening, namely training data generation and the optimization of coarsening shape functions, and as a result we manage to leverage runtime numerical coarsening under local material updates. To accelerate the generation of training data, we propose a domain-decomposition solver based on substructuring that leverages local factorizations. To accelerate the computation of coarsening shape functions, we propose a decoupled optimization of smoothness and data fitting. We evaluate quantitatively the accuracy and performance of our proposed methods, and we show that they achieve accuracy comparable to the baseline, albeit with speed-ups of orders of magnitude. We also demonstrate our methods on example simulations with local material and topology updates. Introduction In the simulation of heterogeneous objects, the standard approach is to make the resolution of the discretization higher than the resolution of the material heterogeneity, to correctly resolve differences in local deformations. However, when global deformations are the subject of study, and not local deformation details, numerical coarsening offers computational tools to decouple the resolution of the discretization from the resolution of the material heterogeneity. Numerical coarsening uses potentially few degrees of freedom, and in-terpolates those degrees of freedom in complex nonlinear ways that capture the distribution of deformation of the underlying heterogeneous material. In the context of finite-element elasticity, this is done by estimating rich nonlinear shape functions based on deformation examples [KMOD09, NKJF09, TREO16, CBW * 18]. These rich shape functions are evaluated at dense integration points that sample the material heterogeneity, and provide accurate approximation of the integrated elastic response. Introduction Numerical coarsening is a computationally expensive method- ology; therefore, it is formulated as a preprocess, and at runtime it assumes fixed shape functions. Numerical coarsening loses its charm when material properties change over time, or when objects undergo topology changes, due to the unbearable cost of recomputing shape functions. Introduction In our work, we look at the processes that make numerical coarsening computationally expensive, and we design fast methods for these processes. In particular, we take the state-of-the-art method of Chen et al. [CBW * 18] as baseline, which provides the best known accuracy in numerical coarsening in computer graphics. This method decomposes numerical coarsening in two processes: the computation of training data using harmonic displacements [KMOD09], and the estimation of matrix shape functions as a smoothness optimization constrained by the training data. Introduction Our first contribution, described in Section 3, is a fast method for the generation of representative data for numerical coarsening. When a deformable object suffers a local change at runtime, we update only a local factorization of the elasticity problem. Then, we compute deformation examples using a substructuring domaindecomposition method that leverages local factorizations. Introduction Our second contribution, described in Section 4, is a fast method for the optimization of numerical-coarsening shape functions. We decouple optimizing the smoothness of shape functions and matching the training data into two separate optimizations. As a result, we solve multiple decoupled small problems instead of one coupled large problem. Introduction In the paper, we show examples where numerical coarsening becomes practical as a runtime methodology, when material properties change (e.g., due to user actions, strong nonlinearities, topology changes, or activation of smart materials), such as Fig. 1. We also validate quantitatively the accuracy and performance gain of both technical contributions. Numerical Coarsening The problem of numerical coarsening was first formulated in the context of material homogenization. Given a material with microscale heterogeneity, material homogenization aims to find a mesoscale material model that retains the mesoscale deformation response [ZKO94,PS08]. Coarsening and/or homogenization have been used in the context of various applications in computer graphics, such as design of 3D microstructures for computational fabrication [SBR * 15, PZM * 15], characterization of 2D microstructures [SMGT18], or thin-shell approximation of yarn-level cloth simulation [SNW20]. While most coarsening methods look at elastostatic deformation response, Chen et al. [CLMK17] propose dynamics-aware coarsening for accurate simulation of dynamic deformations at low resolution. Numerical Coarsening Kharevych et al. [KMOD09] and Nesme et al. [NKJF09] showed concurrently that, for linear material models, homogenization can be achieved in an optimal way by designing nonlinear shape functions and integrating the material model according to these shape functions. Numerical Coarsening Then, numerical coarsening can be viewed as the computation of shape functions that capture the distribution of microscale deformation. Regular shape functions produce artificial stiffening of the simulation, as they do not allow the microscale material to deform naturally. Coarsening shape functions, on the other hand, map the coarse displacement field to the fine domain in a complex nonlinear way, and they reproduce effects such as volume preservation or nonlinear deformations induced by heterogeneous material distributions. Numerical Coarsening One of the research questions in numerical coarsening is to identify coarse deformations that elicit representative microscale deformations to then estimate accurate coarsening functions. The possibilities include Dirichlet boundary conditions on coarse nodes [TREO16], boundary conditions applied on an oversampling region around the coarse element under study [HW97,AB05], or uniform tractions applied on the object's boundary [KMOD09]. Numerical Coarsening An interesting extension of numerical coarsening is to admit matrix shape functions [TREO16], which are key for reproducing volume preservation effects. Chen et al. [CBW * 18] decoupled numerical coarsening from material homogenization, and considered arbitrary microscale materials evaluated at dense quadrature points. Due to its generality and demonstrated quality, we use the method of Chen et al. as baseline for our shape function estimation. Numerical Coarsening The design of rich and expressive shape functions is also addressed from other angles. One is the simulation of arbitrary highresolution geometry in an accurate way within coarse high-order elements [LLK * 20]. Another one is to refine the discretization in a way that is optimal according to the underlying heterogeneity [CBO * 19]. Subspace Simulation Numerical coarsening can be regarded within the larger family of methods for model order reduction or subspace simulation. These methods search a small number of degrees of freedom and basis functions that accurately represent high-resolution deformations. Some methods build the subspace model from the high-resolution mechanics equations [PW89], but most methods require extensive training data [KLM01]. Recent methods seek nonlinear models synthesize with neural networks, which enable more compact subspaces [FMD * 19]. Subspace Simulation A problem in subspace simulation is to identify integration points, i.e., cubature points, where the material model should be evaluated for accurate results [AKJ08,vTSSH13]. This also reminds the evaluation of the heterogeneous material at high resolution as done by Chen et al. [CBW * 18] in numerical coarsening. However, cubature requires very smooth basis functions, whereas coarsening shape functions must be of high frequency. Subspace Simulation Another similarity between subspace methods and numerical coarsening is that they rely on computationally expensive preprocessing. Kim and James [KJ09] designed a method to train subspace models at runtime during simulation, in a way to save costly preprocessing, while Yang et al. [YLX * 15] introduced fast methods for the generation of training data, the creation of reduced basis functions, and the training of cubature points. Table 1 for the accuracy evaluation). We have used a beam with three different heterogeneity patterns (oblique, horizontal, vertical), and coarsening degrees ranging from 2 to 7. The stiffness ratio between the stiff material (magenta) and the soft material (green) is 50. Local Factorizations In our methods, we leverage local Cholesky factorizations within a larger linear solve for the computation of training data. Local factorizations or updates to prefactorizations have often been used to accelerate simulation problems in computer graphics, but we did not find previous methods useful for our target problem. Local Factorizations Hecht et al. [HLSO12] performed local updates to Cholesky factorizations in the context of corotational simulation. By performing these updates only when the error of previous terms was above a threshold, they achieved large net speed-up on the overall simulation. Factorizations can also be updated efficiently under changes to bounday conditions, as demonstrated to produce fast mesh parameterizations [HSH20]. Li et al. [LLKC21] performed local factorization updates in the context of tearing and cutting problems. They used Cholesky factorization in the global pass of a projective dynamics solver, hence the fast factorization updates allowed them to handle simulations with topology changes. On a different direction, Liu et al. [LMAS16] developed a domain-decomposition solver based on Schur complements and local factorizations. Our solver follows a similar approach, but we found no speed-up with standard Schur complement methods, and we tailored a substructuring method to further leverage local factorizations. Finally, Herholz and Alexa [HA18] solved a different but related problem. They factorized the complete mesh of an object, and then they obtained in a fast way factorizations for local submeshes. Training Data with Local Factorizations The baseline coarsening method uses global deformations as training data. With high-resolution heterogeneous objects, it becomes intractable to compute such global deformations at runtime, when the material or topology of an object changes. We start this section investigating the balance between accuracy and computational speed as a function of the support of training deformations. Training Data with Local Factorizations Then, we introduce a domain-decomposition solver based on substructuring that leverages local factorizations when material or topology changes are local. Our substructuring solver uses representative subspace constraints between local submeshes, which allows fast solution of the full problem. Local Oversampling In numerical coarsening, nonlinear shape functions approximate the deformation response within each coarse element. Then, the simplest approach to generating training data for each coarse element would only deform the fine submesh overlapping with the coarse element under study. This is actually the approach followed by several numerical coarsening methods [NKJF09, TREO16]. However, this approach is known to produce artifacts [HW97], as the deformations do not account for behaviors induced by material outside the coarse element. Local Oversampling Oversampling [HW97,AB05] refers to the creation of training deformations by applying boundary conditions on a domain larger than the coarse element under study. The question is what size of oversampling region is necessary for the generation of representative training data, without incurring in excessive cost. As a trade-off between accuracy and computational cost, we propose to compute harmonic displacements with one-ring oversampling, i.e., oversampling with a domain given by the one-ring of the coarse element under study (i.e., 27 coarse hexahedra for interior elements). We have quantified the difference between global harmonic displacements and our one-ring oversampling approach, and we conclude that the difference is minimal. In contrast, single-cell training may suffer excessive deviations. Fig. 2 shows the examples used in our comparisons, which include 3 different heterogeneity patterns (oblique, horizontal, and vertical), and 6 different coarsening degrees (from 2 to 7), for a hanging beam model with 16 × 4 × 4 elements. In Table 1 we report the RMS error (in percentage) of the resulting coarsening simulations with respect to a ground-truth fine simulation, under different conditions for training data generation. Both global harmonic displacements and one-ring oversampling produce accurate results, with harmonic displacements only marginally better. Single-cell training, on the other hand, suffers large errors. Substructuring Under local material updates, we can leverage one-ring oversampling and avoid the large computational cost of global harmonic displacements. However, note that, with coarsening degree d, the number of fine nodes in the one-ring submesh is (3 d + 1) 3 . Then, the factorization of the linear system corresponding to the one-ring submesh soon becomes a bottleneck. Substructuring We further leverage local updates, and we design a domaindecomposition approach based on substructuring, which reuses local factorizations. Without loss of generaility, we assume that the coarse cell under study is an interior cell, i.e., it has a full one ring Table 2: Comparison of timings (in milliseconds) for the generation of training data under different methods and coarsening degrees. The timings measure the data generation for one hexahedral cell fully surrounded by 26 cells. Our substructuring method takes about 3.5× as long as the single-cell method, but with far superior accuracy as shown in Table 1. The accuracy is close to the oversampling method, but with a speed-up of two orders of magnitude after coarsening degree 4. Substructuring with 26 neighboring coarse cells. Substructuring implies formulating an elasticity problem per coarse cell, and using constraints to connect per-cell solutions. We follow a Schur complement approach to first solve Lagrange multipliers for the constraints, and then the actual displacements. Substructuring We denote as u i a vector collecting all fine-node displacements within each of the 27 coarse cells. Harmonic displacements imply solving linear elasticity problems with Neumann boundary conditions, and we denote as H i the local Hessian of each coarse cell, and f i its applied external force. Furthermore, we denote each coupling constraint j between pairs of adjacent coarse cells as ∑ i S j,i u i = 0. In practice, only two matrices S j,i are non-zero for each coupling constraint j. For an exact elasticity problem, the S j,i are selection matrices, with some blocks ±I and the rest zero, but in our substructuring approach we approximate the constraints as we will discuss later. Substructuring The solution to the one-ring oversampling problem can be expressed as a constrained optimization. With a Lagrange multiplier formulation, this can be written as: Substructuring Following the Schur complement, we first solve for the Lagrange multipliers as: Substructuring And then we solve for fine displacements as: Substructuring The substructuring solver requires solving many linear systems per coarse cell, with local Hessians H i , both in (2) and (3). Here, we leverage local factorizations. Without loss of generality, we assume that one coarse cell is modified at a time (i.e., its material is modified, or the cell suffers a topology change). This implies that training data should be updated for this cell and all its 26 neighbors, which requires solving the substructuring problem described above 27 times. However, it is sufficient to update the factorization of the Hessian H i of the modified coarse cell. All other Hessians, and hence their factorizations, remain fixed. Then, it is sufficient to update six linear solves in (2) We use Cholesky factorizations to obtain factorizations for the per-cell Hessians H i . As the Hessians are indefinite, we add a small diagonal regularizer, which does not affect the solution in practice. Substructuring In our substructuring solver, assuming full coupling constraints between coarse cells, the bottleneck is the computation of the Lagrange multipliers in (2). There are 54 cell coupling constraints. With coarsening degree d, the number of fine nodes per face of coarse cell is (d + 1) 2 . Then, (2) boils down to a linear system of size 3 × (d + 1) 2 × 54, with all Lagrange multipliers. Substructuring We propose a drastic reduction of the cost of (2), by choosing a small set of constraints S i, j between neighboring coarse cells. We choose two types of constraints: Substructuring • Rigid translation constraints. These are formulated by setting the centers of mass of two adjacent cell faces to remain coupled. Substructuring With two neighboring cells of displacements u i and u j , and centers of mass computed through matrices s i and s j , rigid translation constraints are expressed as s i u i − s j u j = 0. Rigid constraints in substructuring have been used before, e.g., to couple substructuring reduced deformable models [BZ11]. • Harmonic displacement constraints. We wish the substructuring solver to be able to match exactly the global harmonic displacements under the initial material distribution. This ensures that shape function updates converge to the exact solution as dynamic material updates approach zero. To do this, we look at the forces between adjacent cells for each harmonic displacement, and we ensure that a constraint direction is exactly aligned with each of the forces. Given the boundary face forces for all 6 harmonic displacements grouped in a matrix h (filled with zeros for the rest of the nodes), we express the constraints h T (u i − u j ) = 0. Substructuring With rigid translation constraints and harmonic displacement constraints, the linear system in (2) is trimmed to a size of 9 × 54. Substructuring Using the same experiment for comparing oversampling methods discussed in Section 3.1 (see also Fig. 2), we have quantified the accuracy and performance of our efficient substructuring method. As shown in Table 1 and Table 2, the cost of our substructuring solver is just about 3.5× the cost of single-cell data generation, but the accuracy is only slightly worse than for exact one-ring oversampling, albeit more than two orders of magnitude faster. Substructuring In all our tests, we have used Eigen [GJ * 10] for Cholesky factorizations. We have also investigated the use of iterative solvers, i.e., conjugate gradient. Conjugate gradient is sometimes faster than the Cholesky solver on the one-ring oversampling method, but it becomes slower as the heterogeneity (i.e., ratio of stiffness values) grows, because the system's conditioning becomes worse. Therefore, we chose Cholesky factorization as the robust baseline for comparisons. Local Coarsening Optimization Given training data for each coarse cell, in this section we describe how we estimate shape functions. Previous work requires solving a large and complex optimization to ensure that shape functions are smooth while fitting the training data. Instead, we decouple these two objectives, and we solve multiple small problems. The resulting shape functions are almost equivalent to the baseline. We start discussing the desiderata of coarsening shape functions, and then we introduce our fast decoupled optimization. Shape Functions and their Properties Let us define notation to walk through the formal definition of coarsening shape functions and their properties. We consider a coarse discretization H and a fine discretization h that overlap on an undeformed domain parameterized by X. In this section, we use subindices i and j to index quantities referring to coarse and fine nodes respectively. Then, {X H i } and {X h j } denote, respectively, the positions of coarse and fine nodes in undeformed reference space. For the definition of the shape functions, we limit ourselves to one element of the coarse discretization; hence H represents a single coarse element. Within this element, we use matrix shape functions to interpolate the displacement field of coarse nodes. Shape Functions and their Properties We denote as {M i, j } the 3 × 3 matrix shape functions evaluated at fine nodes, for pairs X H i and X h j of coarse and fine nodes. Given displacements evaluated at coarse nodes, {u H i }, the displacements at fine nodes can be computed as: Shape Functions and their Properties These displacements can be interpolated onto the full fine domain using regular shape functions {N j (X)} on the fine elements, e.g., trilinear interpolation on hexahedral elements. This yields the following displacement field: Shape Functions and their Properties Substituting the expression for the displacements of fine nodes (4), we obtain the displacement field as a function of the displacements of coarse nodes: Shape Functions and their Properties As a conclusion, we obtain the coarsening shape functions {N i (X)}. Shape Functions and their Properties The estimation of shape function coefficients should fulfill several properties: a certain degree of smoothness, geometric invariants that guarantee properties of the deformation, and reproduction of target deformations. We borrow the definition of properties from the state-of-the-art method of Chen et al. Shape Functions and their Properties The smoothness metric S penalizes the gradient of the coarsening shape functions, and is defined as Shape Functions and their Properties Shape function coefficients should fulfill two geometry constraints: partition of unity and rotation invariance Shape Functions and their Properties skew (v) represents the cross product operation v× as a skew symmetric matrix. Shape Functions and their Properties Finally, the coarsening shape functions must match the training data, i.e., global harmonic displacements in the work of Chen et al., and one-ring oversampling with substructuring in our case. We denote asũ H i,k andũ h j,k coarse and fine node displacements for each training deformation k, computed in our case according to the method described in Section 3.2. Then, training data constraints can be expressed as: Shape Functions and their Properties Chen et al. optimize the smoothness S in (7) subject to geometric constraints (8) and (9) and data constraints (10). This is a large constrained optimization problem per coarse element. With coarsening degree d, (d + 1) 3 − 8 fine nodes per coarse element, 72 shape function coefficients per fine node, and 36 constraints per fine node (9 partition-of-unity + 9 rotation-invariance + 6 × 3 data), it amounts to a problem with 72 × ((d + 1) 3 − 8) degrees of freedom and 36 × ((d + 1) 3 − 8) constraints. Decoupled Optimization To describe our decoupled optimization of shape function coefficients, it is convenient to rewrite expressions (7)-(10) in matrixvector form. To this end, we vectorize all shape function coefficients {M i, j } into a large vector m. This vector includes the coefficients for all fine nodes in the fine discretization h overlapping a We achieve a speed-up of almost two orders of magnitude even on coarsening degree 2, and more than three orders of magnitude on degree 5. Decoupled Optimization coarse element, except for the corner nodes, for which the coefficients are trivially defined by the Kronecker delta. Decoupled Optimization The smoothness metric (7) is rewritten as Decoupled Optimization The geometry constraints (8)-(9) are grouped as Decoupled Optimization And the data constraints (10) are rewritten as Decoupled Optimization To decouple the optimization, we start by separating the effect of constant terms, i.e., the geometry constraints. With a QR decomposition G T = QQ R 0 , the shape function coefficients can be expressed in the null space of the geometry constraints as Decoupled Optimization where z are the projected shape function coefficients and m 0 is an arbitrary solution to the constraints (e.g., trilinear shape functions). Substituting (14) into (11), we express the smoothness metric subject to geometry constraints as Decoupled Optimization with Decoupled Optimization Note thatz defines optimally smooth shape functions, i.e., ignoring the data constraints. Decoupled Optimization Given the factorization of the shape functions based on geometry constraints (14), we also express the data constraints (13) subject to the geometry constraints, and we obtain: Decoupled Optimization A full optimization of the shape functions would require optimizing S G in (15) subject to the data constraints D G in (17). In contrast, we replace this optimization with a simpler metric but the same goal and constraints. In a nutshell, we minimize the L 2 deviation from the optimally smooth shape functions, subject to the data constraints. Then, we have shape functions defined by: Decoupled Optimization In this optimization, the shape function coefficients for each fine node can be solved completely independently, as the Hessian of the objective is simply identity, and the data constraints are independent for each fine node. We use a Lagrange multiplier method, and first we solve the 18 multipliers per fine node, and then we obtain the shape functions. With coarsening degree d, the cost of computing the shape functions boils down to solving (d + 1) 3 − 8 linear systems of size 18 each. In spite of solving decoupled optimizations per fine node, global consistency is provided by the globally consistent optimally smooth shape functions and the globally consistent target data. Decoupled Optimization We have validated the accuracy and performance of our decoupled optimization on the test examples shown in Fig. 3. For these tests, we used the same training data with our method and the method of Chen et al. [CBW * 18], computed with harmonic displacements. We have measured the L 2 norm of the difference of the vector of shape function coefficients m, and the error is smaller than 0.001% across all tests. The extreme accuracy of the results indicates that, despite the difference in the optimization metrics in (15) and (18), their gradients are practically aligned at the solution. We cannot prove that this is true for all training data, but we found it to be true for all our test cases. Table 3 summarizes the difference in computational cost per coarse element between our method and the method of Chen et al. [CBW * 18]. We achieve a speed-up ranging between almost two and over three orders of magnitude on coarsening degrees between 2 and 5. We did not leverage parallelization in this test, but the performance of our method could be further increased by running per-fine-node computations in parallel. Results In the examples shown in the paper, we have followed the stateof-the-art method of Chen et al. [CBW * 18] for most components except for the dynamic update of coarsening shape functions. At initialization, we compute global harmonic displacements on the full object as training data. This cost is acceptable, as it is executed only once. Using these training data, we optimize coarsening shape functions using our decoupled optimization, as its accuracy is practically comparable to full smoothness optimization. For runtime simulation, we apply the same methodology as Chen et al., which includes the evaluation of the energy, gradient and Hessian using quadrature points on the fine mesh, computation of displacements using a corotational method, and blending of displacements at the boundaries of coarse elements for visualization. Results The runtime difference with the state of the art is our dynamic update of coarsening shape functions when the material is modified, which makes the overall approach practical in this setting. The cost of updating numerical coarsening is linear in the number of updated coarse cells, and it includes data generation (Section 3) and optimization of shape functions (Section 4). The runtime update of shape functions can be parallelized in two ways. First, the generation of training data can be parallelized per coarse cell and harmonic displacement. Second, the optimization of shape-function coefficients can be parallelized per fine node. We show two examples of runtime update of the material, to demonstrate applicability of our method. All tests reported in the paper were executed on an Intel Core i7-10750H 2.60GHz x6 CPU with 32 GB of RAM. The timings reported in the paper do not leverage parallelization. Fig. 1 shows a hanging beam with layers of soft and stiff material. Initially, the response is dominated by the layers of stiff material that run across the beam, and this is well captured by the initial shape functions. During the simulation, we remove fine cells of stiff material, which disconnects the stiff layers, and now the response is dominated by the soft layers. Failing to update the coarsening shape functions leads to a large error of 55% in the final deformation configuration. With our dynamic update of coarsening shape functions, on the other hand, the error is 24%. The beam has a coarsening degree of 4, and we dynamically update the material on all 24 coarse cells. The cost of recomputing shape functions includes 204ms for data generation and 257ms for shape-function optimization. The materials in the beam use a Neo-Hookean model with Young modulus of 10 MPa for the stiff material, Young modulus of 0.1 MPa for the soft material, and Poisson's ratio of 0.45 for both. We compute dynamic simulation using optimization-based backward Euler integration [GSS * 15]; please see the video for the comparisons. Fig. 4 shows a CT volume image that is progressively cut. The volume is represented as a heterogeneous fine mesh with 48 × 48 × 36 elements, at a resolution of 1 element per centimeter. We simulate the deformation on a coarse mesh, then we compute the deformation of the fine mesh nodes, we resample the volume [TREO16], and we volume-render it using Inviwo [JSS * 19]. We use a coarsening degree of 2, to ensure that cuts are well represented, although it would be possible to handle coarser meshes with a method that accounts for the topology of both the fine and coarse meshes [NKJF09]. We distinguish two types of materials, soft (Young modulus of 0.1 MPa) and stiff (Young modulus of 100 MPa) based on the opacity of the CT data. Poisson's ratio is 0.45 for both. We advance a blade 1 coarse cell per step, and this requires updating 216 cells per step. The update cost includes 218ms for data generation and 605ms for shape-function optimization. As shown in Fig. 4, the updated coarse mesh matches closely the ground-truth fine simulation. At the final frame, the error is just 28%. Figure 5: Twisting a plate with embedded active material. The active material produces a different stiffening behavior of the central part of the plate depending on its regime, which is changed dynamically during the simulation. Our fast and dynamic update of numerical coarsening (top) provides a close match to the fine-mesh behavior (middle) as the active material changes its stiffness. Failing to update coarsening shape functions (bottom) leads to large error due to artificial stiffening of the model. Results As a final example, in Fig. 5 we show dynamic numerical coarsening for a plate filled with active/smart material. The plate is built with a soft substrate (Young modulus = 0.1MPa), in which we have embedded a grid of active material. This material is stiff at rest (Young modulus = 10MPa), producing a reinforcement of the central part of the plate. The active material exhibits two other states, of medium stiffness (Young modulus = 1MPa) and low stiffness (Young modulus = 0.1MPa). Our example motivates applications where these states could be achieved dynamically and progressively through external means, e.g., heating, electrical current, etc. Dynamic modeling of the material behavior is relevant in applications such as soft robot sensing [TKM * 20]. In the example, we mesh the plate with a coarse mesh of 6 × 6 × 2 hexahedra, and a fine mesh of 24 × 24 × 8 hexahedra, i.e., coarsening degree = 4. Fig. 5 compares the simulation with the fine mesh (middle row), the coarse mesh with our dynamic update of shape functions (top row), and the coarse mesh with no shape function updates (bottom row). We twist the plate by applying Dirichlet boundary conditions on two opposite sides, showing how our method works well for complex deformations. The coarsening shape functions are initialized with the embedded active material in its stiffest regime. Then, the active material is made progressively softer. Our approach represents accurately the deformations of the fine model, while the no-update approach fails to match the fine deformation when the embedded active material becomes softer. In this case, the inaccuracy of the precomputed shape functions artificially stiffens the plate. Discussion and Future Work Research in computer graphics keeps exploring different methodologies for building fast simulation models that represent rich, high-resolution detail. Numerical coarsening is one such methodology, and it carries differences with other model-reduction or subspace simulation methods. The major difference is that the basis functions in numerical coarsening remain local, and this has two potential advantages. One advantage is that local support typically allows for more degrees of freedom under the same cost, and hence the ability to resolve deformations of higher resolution. The other potential advantage is to allow for fast local updates. However, in state-of-the-art numerical coarsening methods, the heavy cost of preprocessing prevents local updates, and therefore numerical coarsening methods did not leverage one of their major potential advantages to date. Discussion and Future Work We have developed a method for accurate dynamic update of numerical coarsening, which allows us to fully leverage the locality of numerical coarsening. The runtime deformation methodology remains the same as in state-of-the-art methods, but shape functions can now be recomputed even at interactive rates under local material updates. We achieve this thanks to technical contributions at both major stages of preprocessing: the generation of training data and the optimization of shape functions. Discussion and Future Work Our method suffers limitations, which could set directions for future work. Some of the limitations are particular to our work, while others are general disadvantages of numerical coarsening. In particular, the locality of numerical coarsening brings some advantages, but it also limits the ability to represent high-resolution deformations. It might be interesting to increase the support of shape functions, following the oversampling approach, to strike the best balance between accuracy and performance. Another general limitation of numerical coarsening is that the shape functions are built based on a linearized material response, but do not account for nonlinear behaviors. Note that the nonlinear response of the heterogeneous material is well represented, but the shape functions degrade once the nonlinearities are high. Discussion and Future Work We see two additional extensions that could increase the accuracy of our method, but would also bring performance penalties. One is to use more training data. This implies computing more deformation examples, but possibly also turning the shape-function optimization into a least-squares data-fitting problem. The other one is to increase the number of constraints of the substructuring method, perhaps by adding high-order moments beyond the center of mass.

섹션 본문 69문단 · 35,290자

(제목 없음)

1Figure 1: On the left, we compare a fine-mesh simulation of a heterogeneous material (green is soft, magenta is stiff) vs. the state-of-the-art numerical coarsening method of Chen et al. [CBW * 18]. This method is accurate, but it relies heavily on preprocessing. On the right, we update the material dynamically, erasing some stiff cells. State-of-the-art numerical coarsening cannot afford an update of the coarse shape functions, and the simulation is very inaccurate. Our method, on the other hand, allows fast update of the shape functions on-the-fly, and retains the accuracy of state-of-the-art numerical coarsening.AbstractNumerical coarsening methods offer an attractive methodology for fast simulation of objects with high-resolution heterogeneity. However, they rely heavily on preprocessing, and are not suitable when objects undergo dynamic material or topology updates. We present methods that largely accelerate the two main processes of numerical coarsening, namely training data generation and the optimization of coarsening shape functions, and as a result we manage to leverage runtime numerical coarsening under local material updates. To accelerate the generation of training data, we propose a domain-decomposition solver based on substructuring that leverages local factorizations. To accelerate the computation of coarsening shape functions, we propose a decoupled optimization of smoothness and data fitting. We evaluate quantitatively the accuracy and performance of our proposed methods, and we show that they achieve accuracy comparable to the baseline, albeit with speed-ups of orders of magnitude. We also demonstrate our methods on example simulations with local material and topology updates.

Introduction

2In the simulation of heterogeneous objects, the standard approach is to make the resolution of the discretization higher than the resolution of the material heterogeneity, to correctly resolve differences in local deformations. However, when global deformations are the subject of study, and not local deformation details, numerical coarsening offers computational tools to decouple the resolution of the discretization from the resolution of the material heterogeneity. Numerical coarsening uses potentially few degrees of freedom, and in-terpolates those degrees of freedom in complex nonlinear ways that capture the distribution of deformation of the underlying heterogeneous material. In the context of finite-element elasticity, this is done by estimating rich nonlinear shape functions based on deformation examples [KMOD09, NKJF09, TREO16, CBW * 18]. These rich shape functions are evaluated at dense integration points that sample the material heterogeneity, and provide accurate approximation of the integrated elastic response.

3Numerical coarsening is a computationally expensive method- ology; therefore, it is formulated as a preprocess, and at runtime it assumes fixed shape functions. Numerical coarsening loses its charm when material properties change over time, or when objects undergo topology changes, due to the unbearable cost of recomputing shape functions.

4In our work, we look at the processes that make numerical coarsening computationally expensive, and we design fast methods for these processes. In particular, we take the state-of-the-art method of Chen et al. [CBW * 18] as baseline, which provides the best known accuracy in numerical coarsening in computer graphics. This method decomposes numerical coarsening in two processes: the computation of training data using harmonic displacements [KMOD09], and the estimation of matrix shape functions as a smoothness optimization constrained by the training data.

5Our first contribution, described in Section 3, is a fast method for the generation of representative data for numerical coarsening. When a deformable object suffers a local change at runtime, we update only a local factorization of the elasticity problem. Then, we compute deformation examples using a substructuring domaindecomposition method that leverages local factorizations.

6Our second contribution, described in Section 4, is a fast method for the optimization of numerical-coarsening shape functions. We decouple optimizing the smoothness of shape functions and matching the training data into two separate optimizations. As a result, we solve multiple decoupled small problems instead of one coupled large problem.

7In the paper, we show examples where numerical coarsening becomes practical as a runtime methodology, when material properties change (e.g., due to user actions, strong nonlinearities, topology changes, or activation of smart materials), such as Fig. 1. We also validate quantitatively the accuracy and performance gain of both technical contributions.

Numerical Coarsening

8The problem of numerical coarsening was first formulated in the context of material homogenization. Given a material with microscale heterogeneity, material homogenization aims to find a mesoscale material model that retains the mesoscale deformation response [ZKO94,PS08]. Coarsening and/or homogenization have been used in the context of various applications in computer graphics, such as design of 3D microstructures for computational fabrication [SBR * 15, PZM * 15], characterization of 2D microstructures [SMGT18], or thin-shell approximation of yarn-level cloth simulation [SNW20]. While most coarsening methods look at elastostatic deformation response, Chen et al. [CLMK17] propose dynamics-aware coarsening for accurate simulation of dynamic deformations at low resolution.

9Kharevych et al. [KMOD09] and Nesme et al. [NKJF09] showed concurrently that, for linear material models, homogenization can be achieved in an optimal way by designing nonlinear shape functions and integrating the material model according to these shape functions.

10Then, numerical coarsening can be viewed as the computation of shape functions that capture the distribution of microscale deformation. Regular shape functions produce artificial stiffening of the simulation, as they do not allow the microscale material to deform naturally. Coarsening shape functions, on the other hand, map the coarse displacement field to the fine domain in a complex nonlinear way, and they reproduce effects such as volume preservation or nonlinear deformations induced by heterogeneous material distributions.

11One of the research questions in numerical coarsening is to identify coarse deformations that elicit representative microscale deformations to then estimate accurate coarsening functions. The possibilities include Dirichlet boundary conditions on coarse nodes [TREO16], boundary conditions applied on an oversampling region around the coarse element under study [HW97,AB05], or uniform tractions applied on the object's boundary [KMOD09].

12An interesting extension of numerical coarsening is to admit matrix shape functions [TREO16], which are key for reproducing volume preservation effects. Chen et al. [CBW * 18] decoupled numerical coarsening from material homogenization, and considered arbitrary microscale materials evaluated at dense quadrature points. Due to its generality and demonstrated quality, we use the method of Chen et al. as baseline for our shape function estimation.

13The design of rich and expressive shape functions is also addressed from other angles. One is the simulation of arbitrary highresolution geometry in an accurate way within coarse high-order elements [LLK * 20]. Another one is to refine the discretization in a way that is optimal according to the underlying heterogeneity [CBO * 19].

Subspace Simulation

14Numerical coarsening can be regarded within the larger family of methods for model order reduction or subspace simulation. These methods search a small number of degrees of freedom and basis functions that accurately represent high-resolution deformations. Some methods build the subspace model from the high-resolution mechanics equations [PW89], but most methods require extensive training data [KLM01]. Recent methods seek nonlinear models synthesize with neural networks, which enable more compact subspaces [FMD * 19].

15A problem in subspace simulation is to identify integration points, i.e., cubature points, where the material model should be evaluated for accurate results [AKJ08,vTSSH13]. This also reminds the evaluation of the heterogeneous material at high resolution as done by Chen et al. [CBW * 18] in numerical coarsening. However, cubature requires very smooth basis functions, whereas coarsening shape functions must be of high frequency.

16Another similarity between subspace methods and numerical coarsening is that they rely on computationally expensive preprocessing. Kim and James [KJ09] designed a method to train subspace models at runtime during simulation, in a way to save costly preprocessing, while Yang et al. [YLX * 15] introduced fast methods for the generation of training data, the creation of reduced basis functions, and the training of cubature points. Table 1 for the accuracy evaluation). We have used a beam with three different heterogeneity patterns (oblique, horizontal, vertical), and coarsening degrees ranging from 2 to 7. The stiffness ratio between the stiff material (magenta) and the soft material (green) is 50.

Local Factorizations

17In our methods, we leverage local Cholesky factorizations within a larger linear solve for the computation of training data. Local factorizations or updates to prefactorizations have often been used to accelerate simulation problems in computer graphics, but we did not find previous methods useful for our target problem.

18Hecht et al. [HLSO12] performed local updates to Cholesky factorizations in the context of corotational simulation. By performing these updates only when the error of previous terms was above a threshold, they achieved large net speed-up on the overall simulation. Factorizations can also be updated efficiently under changes to bounday conditions, as demonstrated to produce fast mesh parameterizations [HSH20]. Li et al. [LLKC21] performed local factorization updates in the context of tearing and cutting problems. They used Cholesky factorization in the global pass of a projective dynamics solver, hence the fast factorization updates allowed them to handle simulations with topology changes. On a different direction, Liu et al. [LMAS16] developed a domain-decomposition solver based on Schur complements and local factorizations. Our solver follows a similar approach, but we found no speed-up with standard Schur complement methods, and we tailored a substructuring method to further leverage local factorizations. Finally, Herholz and Alexa [HA18] solved a different but related problem. They factorized the complete mesh of an object, and then they obtained in a fast way factorizations for local submeshes.

Training Data with Local Factorizations

19The baseline coarsening method uses global deformations as training data. With high-resolution heterogeneous objects, it becomes intractable to compute such global deformations at runtime, when the material or topology of an object changes. We start this section investigating the balance between accuracy and computational speed as a function of the support of training deformations.

20Then, we introduce a domain-decomposition solver based on substructuring that leverages local factorizations when material or topology changes are local. Our substructuring solver uses representative subspace constraints between local submeshes, which allows fast solution of the full problem.

Local Oversampling

21In numerical coarsening, nonlinear shape functions approximate the deformation response within each coarse element. Then, the simplest approach to generating training data for each coarse element would only deform the fine submesh overlapping with the coarse element under study. This is actually the approach followed by several numerical coarsening methods [NKJF09, TREO16]. However, this approach is known to produce artifacts [HW97], as the deformations do not account for behaviors induced by material outside the coarse element.

22Oversampling [HW97,AB05] refers to the creation of training deformations by applying boundary conditions on a domain larger than the coarse element under study. The question is what size of oversampling region is necessary for the generation of representative training data, without incurring in excessive cost. As a trade-off between accuracy and computational cost, we propose to compute harmonic displacements with one-ring oversampling, i.e., oversampling with a domain given by the one-ring of the coarse element under study (i.e., 27 coarse hexahedra for interior elements). We have quantified the difference between global harmonic displacements and our one-ring oversampling approach, and we conclude that the difference is minimal. In contrast, single-cell training may suffer excessive deviations. Fig. 2 shows the examples used in our comparisons, which include 3 different heterogeneity patterns (oblique, horizontal, and vertical), and 6 different coarsening degrees (from 2 to 7), for a hanging beam model with 16 × 4 × 4 elements. In Table 1 we report the RMS error (in percentage) of the resulting coarsening simulations with respect to a ground-truth fine simulation, under different conditions for training data generation. Both global harmonic displacements and one-ring oversampling produce accurate results, with harmonic displacements only marginally better. Single-cell training, on the other hand, suffers large errors.

Substructuring

23Under local material updates, we can leverage one-ring oversampling and avoid the large computational cost of global harmonic displacements. However, note that, with coarsening degree d, the number of fine nodes in the one-ring submesh is (3 d + 1) 3 . Then, the factorization of the linear system corresponding to the one-ring submesh soon becomes a bottleneck.

24We further leverage local updates, and we design a domaindecomposition approach based on substructuring, which reuses local factorizations. Without loss of generaility, we assume that the coarse cell under study is an interior cell, i.e., it has a full one ring Table 2: Comparison of timings (in milliseconds) for the generation of training data under different methods and coarsening degrees. The timings measure the data generation for one hexahedral cell fully surrounded by 26 cells. Our substructuring method takes about 3.5× as long as the single-cell method, but with far superior accuracy as shown in Table 1. The accuracy is close to the oversampling method, but with a speed-up of two orders of magnitude after coarsening degree 4.

25with 26 neighboring coarse cells. Substructuring implies formulating an elasticity problem per coarse cell, and using constraints to connect per-cell solutions. We follow a Schur complement approach to first solve Lagrange multipliers for the constraints, and then the actual displacements.

26We denote as u i a vector collecting all fine-node displacements within each of the 27 coarse cells. Harmonic displacements imply solving linear elasticity problems with Neumann boundary conditions, and we denote as H i the local Hessian of each coarse cell, and f i its applied external force. Furthermore, we denote each coupling constraint j between pairs of adjacent coarse cells as ∑ i S j,i u i = 0. In practice, only two matrices S j,i are non-zero for each coupling constraint j. For an exact elasticity problem, the S j,i are selection matrices, with some blocks ±I and the rest zero, but in our substructuring approach we approximate the constraints as we will discuss later.

27The solution to the one-ring oversampling problem can be expressed as a constrained optimization. With a Lagrange multiplier formulation, this can be written as:

28Following the Schur complement, we first solve for the Lagrange multipliers as:

29And then we solve for fine displacements as:

30The substructuring solver requires solving many linear systems per coarse cell, with local Hessians H i , both in (2) and (3). Here, we leverage local factorizations. Without loss of generality, we assume that one coarse cell is modified at a time (i.e., its material is modified, or the cell suffers a topology change). This implies that training data should be updated for this cell and all its 26 neighbors, which requires solving the substructuring problem described above 27 times. However, it is sufficient to update the factorization of the Hessian H i of the modified coarse cell. All other Hessians, and hence their factorizations, remain fixed. Then, it is sufficient to update six linear solves in (2) We use Cholesky factorizations to obtain factorizations for the per-cell Hessians H i . As the Hessians are indefinite, we add a small diagonal regularizer, which does not affect the solution in practice.

31In our substructuring solver, assuming full coupling constraints between coarse cells, the bottleneck is the computation of the Lagrange multipliers in (2). There are 54 cell coupling constraints. With coarsening degree d, the number of fine nodes per face of coarse cell is (d + 1) 2 . Then, (2) boils down to a linear system of size 3 × (d + 1) 2 × 54, with all Lagrange multipliers.

32We propose a drastic reduction of the cost of (2), by choosing a small set of constraints S i, j between neighboring coarse cells. We choose two types of constraints:

33• Rigid translation constraints. These are formulated by setting the centers of mass of two adjacent cell faces to remain coupled.

34With two neighboring cells of displacements u i and u j , and centers of mass computed through matrices s i and s j , rigid translation constraints are expressed as s i u i − s j u j = 0. Rigid constraints in substructuring have been used before, e.g., to couple substructuring reduced deformable models [BZ11]. • Harmonic displacement constraints. We wish the substructuring solver to be able to match exactly the global harmonic displacements under the initial material distribution. This ensures that shape function updates converge to the exact solution as dynamic material updates approach zero. To do this, we look at the forces between adjacent cells for each harmonic displacement, and we ensure that a constraint direction is exactly aligned with each of the forces. Given the boundary face forces for all 6 harmonic displacements grouped in a matrix h (filled with zeros for the rest of the nodes), we express the constraints h T (u i − u j ) = 0.

35With rigid translation constraints and harmonic displacement constraints, the linear system in (2) is trimmed to a size of 9 × 54.

36Using the same experiment for comparing oversampling methods discussed in Section 3.1 (see also Fig. 2), we have quantified the accuracy and performance of our efficient substructuring method. As shown in Table 1 and Table 2, the cost of our substructuring solver is just about 3.5× the cost of single-cell data generation, but the accuracy is only slightly worse than for exact one-ring oversampling, albeit more than two orders of magnitude faster.

37In all our tests, we have used Eigen [GJ * 10] for Cholesky factorizations. We have also investigated the use of iterative solvers, i.e., conjugate gradient. Conjugate gradient is sometimes faster than the Cholesky solver on the one-ring oversampling method, but it becomes slower as the heterogeneity (i.e., ratio of stiffness values) grows, because the system's conditioning becomes worse. Therefore, we chose Cholesky factorization as the robust baseline for comparisons.

Local Coarsening Optimization

38Given training data for each coarse cell, in this section we describe how we estimate shape functions. Previous work requires solving a large and complex optimization to ensure that shape functions are smooth while fitting the training data. Instead, we decouple these two objectives, and we solve multiple small problems. The resulting shape functions are almost equivalent to the baseline. We start discussing the desiderata of coarsening shape functions, and then we introduce our fast decoupled optimization.

Shape Functions and their Properties

39Let us define notation to walk through the formal definition of coarsening shape functions and their properties. We consider a coarse discretization H and a fine discretization h that overlap on an undeformed domain parameterized by X. In this section, we use subindices i and j to index quantities referring to coarse and fine nodes respectively. Then, {X H i } and {X h j } denote, respectively, the positions of coarse and fine nodes in undeformed reference space. For the definition of the shape functions, we limit ourselves to one element of the coarse discretization; hence H represents a single coarse element. Within this element, we use matrix shape functions to interpolate the displacement field of coarse nodes.

40We denote as {M i, j } the 3 × 3 matrix shape functions evaluated at fine nodes, for pairs X H i and X h j of coarse and fine nodes. Given displacements evaluated at coarse nodes, {u H i }, the displacements at fine nodes can be computed as:

41These displacements can be interpolated onto the full fine domain using regular shape functions {N j (X)} on the fine elements, e.g., trilinear interpolation on hexahedral elements. This yields the following displacement field:

42Substituting the expression for the displacements of fine nodes (4), we obtain the displacement field as a function of the displacements of coarse nodes:

43As a conclusion, we obtain the coarsening shape functions {N i (X)}.

44The estimation of shape function coefficients should fulfill several properties: a certain degree of smoothness, geometric invariants that guarantee properties of the deformation, and reproduction of target deformations. We borrow the definition of properties from the state-of-the-art method of Chen et al.

45The smoothness metric S penalizes the gradient of the coarsening shape functions, and is defined as

46Shape function coefficients should fulfill two geometry constraints: partition of unity and rotation invariance

47skew (v) represents the cross product operation v× as a skew symmetric matrix.

48Finally, the coarsening shape functions must match the training data, i.e., global harmonic displacements in the work of Chen et al., and one-ring oversampling with substructuring in our case. We denote asũ H i,k andũ h j,k coarse and fine node displacements for each training deformation k, computed in our case according to the method described in Section 3.2. Then, training data constraints can be expressed as:

49Chen et al. optimize the smoothness S in (7) subject to geometric constraints (8) and (9) and data constraints (10). This is a large constrained optimization problem per coarse element. With coarsening degree d, (d + 1) 3 − 8 fine nodes per coarse element, 72 shape function coefficients per fine node, and 36 constraints per fine node (9 partition-of-unity + 9 rotation-invariance + 6 × 3 data), it amounts to a problem with 72 × ((d + 1) 3 − 8) degrees of freedom and 36 × ((d + 1) 3 − 8) constraints.

Decoupled Optimization

50To describe our decoupled optimization of shape function coefficients, it is convenient to rewrite expressions (7)-(10) in matrixvector form. To this end, we vectorize all shape function coefficients {M i, j } into a large vector m. This vector includes the coefficients for all fine nodes in the fine discretization h overlapping a We achieve a speed-up of almost two orders of magnitude even on coarsening degree 2, and more than three orders of magnitude on degree 5.

51coarse element, except for the corner nodes, for which the coefficients are trivially defined by the Kronecker delta.

52The smoothness metric (7) is rewritten as

53The geometry constraints (8)-(9) are grouped as

54And the data constraints (10) are rewritten as

55To decouple the optimization, we start by separating the effect of constant terms, i.e., the geometry constraints. With a QR decomposition G T = QQ R 0 , the shape function coefficients can be expressed in the null space of the geometry constraints as

56where z are the projected shape function coefficients and m 0 is an arbitrary solution to the constraints (e.g., trilinear shape functions). Substituting (14) into (11), we express the smoothness metric subject to geometry constraints as

57with

58Note thatz defines optimally smooth shape functions, i.e., ignoring the data constraints.

59Given the factorization of the shape functions based on geometry constraints (14), we also express the data constraints (13) subject to the geometry constraints, and we obtain:

60A full optimization of the shape functions would require optimizing S G in (15) subject to the data constraints D G in (17). In contrast, we replace this optimization with a simpler metric but the same goal and constraints. In a nutshell, we minimize the L 2 deviation from the optimally smooth shape functions, subject to the data constraints. Then, we have shape functions defined by:

61In this optimization, the shape function coefficients for each fine node can be solved completely independently, as the Hessian of the objective is simply identity, and the data constraints are independent for each fine node. We use a Lagrange multiplier method, and first we solve the 18 multipliers per fine node, and then we obtain the shape functions. With coarsening degree d, the cost of computing the shape functions boils down to solving (d + 1) 3 − 8 linear systems of size 18 each. In spite of solving decoupled optimizations per fine node, global consistency is provided by the globally consistent optimally smooth shape functions and the globally consistent target data.

62We have validated the accuracy and performance of our decoupled optimization on the test examples shown in Fig. 3. For these tests, we used the same training data with our method and the method of Chen et al. [CBW * 18], computed with harmonic displacements. We have measured the L 2 norm of the difference of the vector of shape function coefficients m, and the error is smaller than 0.001% across all tests. The extreme accuracy of the results indicates that, despite the difference in the optimization metrics in (15) and (18), their gradients are practically aligned at the solution. We cannot prove that this is true for all training data, but we found it to be true for all our test cases. Table 3 summarizes the difference in computational cost per coarse element between our method and the method of Chen et al. [CBW * 18]. We achieve a speed-up ranging between almost two and over three orders of magnitude on coarsening degrees between 2 and 5. We did not leverage parallelization in this test, but the performance of our method could be further increased by running per-fine-node computations in parallel.

Results

63In the examples shown in the paper, we have followed the stateof-the-art method of Chen et al. [CBW * 18] for most components except for the dynamic update of coarsening shape functions. At initialization, we compute global harmonic displacements on the full object as training data. This cost is acceptable, as it is executed only once. Using these training data, we optimize coarsening shape functions using our decoupled optimization, as its accuracy is practically comparable to full smoothness optimization. For runtime simulation, we apply the same methodology as Chen et al., which includes the evaluation of the energy, gradient and Hessian using quadrature points on the fine mesh, computation of displacements using a corotational method, and blending of displacements at the boundaries of coarse elements for visualization.

64The runtime difference with the state of the art is our dynamic update of coarsening shape functions when the material is modified, which makes the overall approach practical in this setting. The cost of updating numerical coarsening is linear in the number of updated coarse cells, and it includes data generation (Section 3) and optimization of shape functions (Section 4). The runtime update of shape functions can be parallelized in two ways. First, the generation of training data can be parallelized per coarse cell and harmonic displacement. Second, the optimization of shape-function coefficients can be parallelized per fine node. We show two examples of runtime update of the material, to demonstrate applicability of our method. All tests reported in the paper were executed on an Intel Core i7-10750H 2.60GHz x6 CPU with 32 GB of RAM. The timings reported in the paper do not leverage parallelization. Fig. 1 shows a hanging beam with layers of soft and stiff material. Initially, the response is dominated by the layers of stiff material that run across the beam, and this is well captured by the initial shape functions. During the simulation, we remove fine cells of stiff material, which disconnects the stiff layers, and now the response is dominated by the soft layers. Failing to update the coarsening shape functions leads to a large error of 55% in the final deformation configuration. With our dynamic update of coarsening shape functions, on the other hand, the error is 24%. The beam has a coarsening degree of 4, and we dynamically update the material on all 24 coarse cells. The cost of recomputing shape functions includes 204ms for data generation and 257ms for shape-function optimization. The materials in the beam use a Neo-Hookean model with Young modulus of 10 MPa for the stiff material, Young modulus of 0.1 MPa for the soft material, and Poisson's ratio of 0.45 for both. We compute dynamic simulation using optimization-based backward Euler integration [GSS * 15]; please see the video for the comparisons. Fig. 4 shows a CT volume image that is progressively cut. The volume is represented as a heterogeneous fine mesh with 48 × 48 × 36 elements, at a resolution of 1 element per centimeter. We simulate the deformation on a coarse mesh, then we compute the deformation of the fine mesh nodes, we resample the volume [TREO16], and we volume-render it using Inviwo [JSS * 19]. We use a coarsening degree of 2, to ensure that cuts are well represented, although it would be possible to handle coarser meshes with a method that accounts for the topology of both the fine and coarse meshes [NKJF09]. We distinguish two types of materials, soft (Young modulus of 0.1 MPa) and stiff (Young modulus of 100 MPa) based on the opacity of the CT data. Poisson's ratio is 0.45 for both. We advance a blade 1 coarse cell per step, and this requires updating 216 cells per step. The update cost includes 218ms for data generation and 605ms for shape-function optimization. As shown in Fig. 4, the updated coarse mesh matches closely the ground-truth fine simulation. At the final frame, the error is just 28%. Figure 5: Twisting a plate with embedded active material. The active material produces a different stiffening behavior of the central part of the plate depending on its regime, which is changed dynamically during the simulation. Our fast and dynamic update of numerical coarsening (top) provides a close match to the fine-mesh behavior (middle) as the active material changes its stiffness. Failing to update coarsening shape functions (bottom) leads to large error due to artificial stiffening of the model.

65As a final example, in Fig. 5 we show dynamic numerical coarsening for a plate filled with active/smart material. The plate is built with a soft substrate (Young modulus = 0.1MPa), in which we have embedded a grid of active material. This material is stiff at rest (Young modulus = 10MPa), producing a reinforcement of the central part of the plate. The active material exhibits two other states, of medium stiffness (Young modulus = 1MPa) and low stiffness (Young modulus = 0.1MPa). Our example motivates applications where these states could be achieved dynamically and progressively through external means, e.g., heating, electrical current, etc. Dynamic modeling of the material behavior is relevant in applications such as soft robot sensing [TKM * 20]. In the example, we mesh the plate with a coarse mesh of 6 × 6 × 2 hexahedra, and a fine mesh of 24 × 24 × 8 hexahedra, i.e., coarsening degree = 4. Fig. 5 compares the simulation with the fine mesh (middle row), the coarse mesh with our dynamic update of shape functions (top row), and the coarse mesh with no shape function updates (bottom row). We twist the plate by applying Dirichlet boundary conditions on two opposite sides, showing how our method works well for complex deformations. The coarsening shape functions are initialized with the embedded active material in its stiffest regime. Then, the active material is made progressively softer. Our approach represents accurately the deformations of the fine model, while the no-update approach fails to match the fine deformation when the embedded active material becomes softer. In this case, the inaccuracy of the precomputed shape functions artificially stiffens the plate.

Discussion and Future Work

66Research in computer graphics keeps exploring different methodologies for building fast simulation models that represent rich, high-resolution detail. Numerical coarsening is one such methodology, and it carries differences with other model-reduction or subspace simulation methods. The major difference is that the basis functions in numerical coarsening remain local, and this has two potential advantages. One advantage is that local support typically allows for more degrees of freedom under the same cost, and hence the ability to resolve deformations of higher resolution. The other potential advantage is to allow for fast local updates. However, in state-of-the-art numerical coarsening methods, the heavy cost of preprocessing prevents local updates, and therefore numerical coarsening methods did not leverage one of their major potential advantages to date.

67We have developed a method for accurate dynamic update of numerical coarsening, which allows us to fully leverage the locality of numerical coarsening. The runtime deformation methodology remains the same as in state-of-the-art methods, but shape functions can now be recomputed even at interactive rates under local material updates. We achieve this thanks to technical contributions at both major stages of preprocessing: the generation of training data and the optimization of shape functions.

68Our method suffers limitations, which could set directions for future work. Some of the limitations are particular to our work, while others are general disadvantages of numerical coarsening. In particular, the locality of numerical coarsening brings some advantages, but it also limits the ability to represent high-resolution deformations. It might be interesting to increase the support of shape functions, following the oversampling approach, to strike the best balance between accuracy and performance. Another general limitation of numerical coarsening is that the shape functions are built based on a linearized material response, but do not account for nonlinear behaviors. Note that the nonlinear response of the heterogeneous material is well represented, but the shape functions degrade once the nonlinearities are high.

69We see two additional extensions that could increase the accuracy of our method, but would also bring performance penalties. One is to use more training data. This implies computing more deformation examples, but possibly also turning the shape-function optimization into a least-squares data-fitting problem. The other one is to increase the number of constraints of the substructuring method, perhaps by adding high-order moments beyond the center of mass.

참고문헌 30건

  1. Optimization Integrator for Large Time Steps IEEE Transactions on Visualization and Computer Graphics · Institute of Electrical and Electronics Engineers · 2015 10.1109/tvcg.2015.2459687
  2. Elastic textures for additive fabrication ACM Transactions on Graphics · Association for Computing Machinery · 2015 10.1145/2766937
  3. Dimensional model reduction in non‐linear finite element dynamics of solids and structures International Journal for Numerical Methods in Engineering · Wiley · 2001 10.1002/nme.167
  4. An efficient construction of reduced deformable objects ACM Transactions on Graphics · Association for Computing Machinery · 2013 10.1145/2508363.2508392
  5. Preserving topology and elasticity for embedded deformable models ACM Transactions on Graphics · Association for Computing Machinery · 2009 10.1145/1531326.1531358
  6. A Multiscale Finite Element Method for Elliptic Problems in Composite Materials and Porous Media Journal of Computational Physics · Elsevier BV · 1997 10.1006/jcph.1997.5682
  7. A Multiscale Finite Element Method for Numerical Homogenization Multiscale Modeling and Simulation · Society for Industrial and Applied Mathematics · 2005 10.1137/040611239
  8. Expediting precomputation for reduced deformable simulation ACM Transactions on Graphics · Association for Computing Machinery · 2015 10.1145/2816795.2818089
  9. Updated sparse cholesky factors for corotational elastodynamics ACM Transactions on Graphics · Association for Computing Machinery · 2012 10.1145/2231816.2231821
  10. Optimizing cubature for efficient integration of subspace deformations ACM Transactions on Graphics · Association for Computing Machinery · 2008 10.1145/1409060.1409118
  11. Numerical coarsening of inhomogeneous elastic materials ACM Transactions on Graphics · Association for Computing Machinery · 2009 10.1145/1531326.1531357
  12. Microstructures to control elasticity in 3D printing ACM Transactions on Graphics · Association for Computing Machinery · 2015 10.1145/2766926
  13. Skipping steps in deformable simulation with online model reduction ACM Transactions on Graphics · Association for Computing Machinery · 2009 10.1145/1618452.1618469
  14. A scalable schur-complement fluids solver for heterogeneous compute platforms ACM Transactions on Graphics · Association for Computing Machinery · 2016 10.1145/2980179.2982430
  15. High-resolution interaction with corotational coarsening models ACM Transactions on Graphics · Association for Computing Machinery · 2016 10.1145/2980179.2982414
  16. Dynamics-aware numerical coarsening for fabrication design ACM Transactions on Graphics · Association for Computing Machinery · 2017 10.1145/3072959.3073669
  17. Mechanical characterization of structured sheet materials ACM Transactions on Graphics · Association for Computing Machinery · 2018 10.1145/3197517.3201278
  18. Numerical coarsening using discontinuous shape functions ACM Transactions on Graphics · Association for Computing Machinery · 2018 10.1145/3197517.3201386
  19. Inviwo — A Visualization System with Usage Abstraction Levels IEEE Transactions on Visualization and Computer Graphics · Institute of Electrical and Electronics Engineers · 2019 10.1109/tvcg.2019.2920639
  20. Factor once ACM Transactions on Graphics · Association for Computing Machinery · 2018 10.1145/3272127.3275107
  21. Latent‐space Dynamics for Reduced Deformable Simulation Computer Graphics Forum · Wiley · 2019 10.1111/cgf.13645
  22. Material-adapted refinable basis functions for elasticity simulation ACM Transactions on Graphics · Association for Computing Machinery · 2019 10.1145/3355089.3356567
  23. MakeSense: Automated Sensor Design for Proprioceptive Soft Robots Soft Robotics · Mary Ann Liebert, Inc. · 2019 10.1089/soro.2018.0162
  24. Homogenized yarn-level cloth ACM Transactions on Graphics · Association for Computing Machinery · 2020 10.1145/3386569.3392412
  25. Sparse cholesky updates for interactive mesh parameterization ACM Transactions on Graphics · Association for Computing Machinery · 2020 10.1145/3414685.3417828
  26. Higher-order finite elements for embedded simulation ACM Transactions on Graphics · Association for Computing Machinery · 2020 10.1145/3414685.3417853
  27. Real-time large-deformation substructuring ACM Transactions on Graphics · Association for Computing Machinery · 2011 10.1145/2010324.1964986
  28. Good vibrations: modal dynamics for graphics and animation ACM SIGGRAPH Computer Graphics · ACM SIGGRAPH · 1989 10.1145/74334.74355
  29. Interactive cutting and tearing in projective dynamics with progressive cholesky updates ACM Transactions on Graphics · Association for Computing Machinery · 2021 10.1145/3478513.3480505
  30. Homogenization of Differential Operators and Integral Functionals Springer eBooks · Springer Nature · 1994 10.1007/978-3-642-84659-5