FEniCS mechanics: A package for continuum mechanics simulations
간접 관련 엔지니어링 플라스틱 · (23) 컴파운드 (3) 자동차 인테리어 소재(9) 타이어코드(10) 아라미드
기본 정보
- 저자
- DOI
- 10.1016/j.softx.2018.10.005
- 저널
- SoftwareX
- 발행년도
- 2019
- 발행기관
- Elsevier BV
- 피인용수
- 4
- 라이선스
- cc-by-nc-nd
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.1016/j.softx.2018.10.005
- 토픽
- Composite Material Mechanics
- OpenAlex ID
- W3104339453
평가 내용
- 관련도
- 간접 관련
- 사업분야
- 엔지니어링 플라스틱 · (23) 컴파운드
- 부 분야
- (3) 자동차 인테리어 소재, (9) 타이어코드, (10) 아라미드
- R&D 측면
- 분석·모델링
- 확신도
- 0.70
- 근거 용어
- computational mechanics, finite element method, constitutive relationship, material models, nonlinear set of partial differential equations
- 판단 근거
- 이 논문은 연속체 역학 시뮬레이션을 위한 오픈소스 소프트웨어 패키지(FEniCS Mechanics)를 다루며, 다양한 재료 모델(탄성, 점성 등)을 수치적으로 해석하는 방법론을 제시합니다.
- R&D 활용 포인트
- 자동차 시트(3), 타이어코드(9), 아라미드(10) 등 고분자 및 복합소재의 변형, 응력, 내구성 등을 예측하기 위한 유한요소해석(FEM) 및 수치 모델링 도구로 활용 가능합니다.
- 평가 입력
- 본문 23,050자
초록
본문 23,050자
본문 펼치기
섹션 본문 18문단 · 12,444자
(제목 없음)
1FEniCS Mechanics is a Python package to facilitate computational mechanics simulations. The Python library dolfin, from the FEniCS Project, is used to formulate and numerically solve the problem in variational form. The general balance laws from continuum mechanics are used to enable rapid prototyping of different material laws. In addition to its generality, FEniCS Mechanics also checks the input provided by users to ensure that problem definitions are physically consistent. In turn, this code enables simulations of custom mechanics problems to be more accessible to those with limited programming or mechanics knowledge.
Motivation and significance
2A mathematical description of the kinematics of deformation and its relation to forces acting on and within a body is the basis of continuum mechanics. The mathematical formulation is, in general, a nonlinear set of partial differential equations (PDEs) with corresponding initial and boundary conditions (defining an initial-boundary value problem, IBVP) for which analytical solutions can only be obtained in specialized cases. Thus, computational mechanics is employed to numerically approximate solutions for these problems. With increasing computational power and sophistication of material models, computational mechanics has become a crucial area of engineering design and research.
3While various methods are used to discretize PDEs for numerical solutions, the FEniCS Mechanics software described herein utilizes the finite element method (FEM) for spatial discretization via tools provided by the FEniCS package [2]. There are various packages for FEM modeling [16], including commercial software such as Abaqus [4], ANSYS[6], ADINA [5] or Comsol [7]; and open-source software including Deal II [1], FreeFem++ [3] and FEniCS. Each has unique strengths [13], and FEniCS was chosen because it is open-source, widely-used, well-supported and has broad capabilities that can be leveraged by the FEniCS Mechanics software developed here. The versatility and performance of FEniCS is covered in The FEniCS Book [15].
4FEniCS was developed to solve problems that can be formulated in variational form. IBVPs arising from continuum mechanics fit well within this framework. To solve problems in FEniCS, the variational form of the PDEs, function spaces, element types, solver settings, etc., are specified through the development of scripts. However, it is possible to formulate a range of continuum mechanics problems similarly (see documentation). In particular, different types of problems can be described by changing the constitutive relationship, and through the utilization or interpretation of various terms of a generalized variational form. This fact is the basis for FEniCS Mechanics. While a particular continuum mechanics problem can be solved in FEniCS through the development of appropriate scripts, these scripts would typically be specific to the type of problem (e.g., solid, fluid) and properties of the material (e.g., constitutive equations, compressibility). FEniCS Mechanics however provides a framework so that a variety of continuum mechanics problems can be considered through minor changes to a configuration file, or potentially "minimally-invasive" changes to scripts defining the generalized mechanics problem. This provides an efficient framework to consider a variety of mechanics problems, or testing of modeling choices (e.g. types of materials). This more streamlined approach also increases accessibility to computational mechanics simulations for users with minimal programming knowledge, while still maintaining a powerful and extensible open-source framework that can access the full array of FEM and solver capabilities provided through the FEniCS project.
5In terms of specific capabilities, FEniCS Mechanics supports both steady-state and timedependent problems in a single domain, and the user can choose from a list of implemented material models, or provide their own, so long as the material is either elastic (stress depends on the deformation gradient) or viscous (stress depends on the velocity gradient). Furthermore, elastic materials can be specified as compressible or incompressible, whereas all viscous models are assumed to be incompressible. Discretization in time is currently handled by single-step finitedifference schemes, including θ-method for first order systems and Newmark scheme for second order systems (see documentation). The user is advised that stabilization methods have not yet been implemented. Hence, the mesh used for each problem should be chosen carefully to avoid instabilities during computations. Lastly, our design facilitates the addition of user-defined material models and changes to existing algorithms. A description of how the FEniCS Mechanics package can be used to solve computational mechanics problems is given in Section 2. This is followed by a demonstrative example in Section 3.
Software description
6The description of the problem to be solved is defined through a Python dictionary, referred to as config. FEniCS Mechanics then parses this dictionary to define the variational forms through the Unified Form Language (UFL) from the FEniCS Project [2, 15], which are then used for matrix assembly in order to obtain numerical solutions to the specified problem.
Software Architecture
7Information flow in FEniCS Mechanics is shown in Figure 1. First, the user defines the problem by assigning values to various keys in the config dictionary, e.g., material model, time integration parameters, domain and mesh file. This config dictionary is then provided to a problem class for instantiation. Once config is parsed, the respective problem class -currently MechanicsProblem, SolidMechan-icsProblem, or FluidMechanicsProblem -defines the variational equations for the respective problem using the UFL. The MechanicsProblem class defines the variational problem with separate function spaces for vector and scalar valued field variables, whereas the SolidMechanicsProblem and Fluid-MechanicsProblem classes use the mixed function space functionality of dolfin. The information pertaining to material models in config is passed to separate classes defining constitutive equations. This can be seen in Figure 1.
8With the variational equations defined through the UFL and stored as member data of a problem object, a solver object is next created. The three current solver classes are MechanicsBlock-Solver, SolidMechanicsSolver, and FluidMechanicsSolver, and are to be used with MechanicsProblem, SolidMechanicsProblem, and FluidMechanicsProblem, respectively. These solver objects have methods that use the UFL forms from the problem objects to assemble the resulting linear algebraic system at each iteration of a nonlinear solve. This is repeated for each time step if the problem is time-dependent. Note that SolidMechanicsSolver and FluidMechanicsSolver are a subclass of the NonlinearVariationalSolver class from dolfin through the BaseMechanicsSolver class, while Mechan-icsBlockSolver is a stand-alone block solver class based on the FEniCS Application, CBC-Block (https://bitbucket.org/fenics-apps/cbc.block), as shown in Figure 2b.
9The user is expected to interact the most with the problem and solver classes mentioned above. However, in addition to these, various constitutive models have been implemented in a materials sub-module within FEniCS Mechanics. These constitutive models and their inheritance trees are shown in Figures 2c and 2d.
Software Functionalities
10In order to facilitate problem definition and accessibility, FEniCS Mechanics implements the following functionalities:
111. Key-value pairs provided in config and their combinations are checked for validity. This increases accessibility by making sure that invalid, or inconsistent, values in config are not used.
122. FEniCS Mechanics uses the problem specification provided in config to define the variational form using the UFL.
133. The variational form defined through the UFL is used to assemble the resulting linear systems and obtain a numerical solution to the problem.
14All three functionalities are demonstrated in the example of Section 3.
Illustrative Example
15Consider a truncated ellipsoid (Fig. 3a, left) as considered in Land et al. [14], which is used to model an idealized left ventricle of the heart. This example also serves as verification of FEniCS Mechanics by enabling direct comparison with benchmark solutions presented in [14]. The model geometry is mechanically loaded by applying a 10 kPa pressure at the inner wall, and the base (top) plane is fixed in all directions. For stability, the pressure is ramped from 0 to 10 kPa in 100 steps. Rather than manually writing a for-loop to solve a quasi-static problem for each of the 100 loading steps, we take advantage of the fact that FEniCS Mechanics supports time-dependent problems. Therefore, the applied pressure is defined asp(t) = 10t kPa for t ∈ [0, 1], and a time step of ∆t = 0.01 is used. To ensure the problem solved at each time step is quasi-static, the density of the material is set to zero to exclude the inertial term from the weak form for the balance of momentum. Passive material behavior is characterized by an incompressible transversely-isotropic constitutive equation as described in Guccione et al. [10]. This constitutive equation is a subclass of the FungMaterial model (Fig. 2c) that is provided and is discussed in detail by Humphrey [12]. Constitutive equations of this form were developed to model soft biological tissues, such as arterial and cardiac tissue, and hence was chosen for the comparative study of various cardiac mechanics software by Land et al. [14]. The interested reader is referred to [12,10,11,8] for further details and the references therein. The config dictionary for this problem is shown in Listing 1. Figure 3. The endocardial (inner wall) apex is at (0, 0, −17) mm in the unloaded configuration. It can be seen that in the loaded configuration, a displacement of about 9.7 mm in the negative z direction gives (0, 0, −26.7) as its final position. This is in broad agreement with the results of the participating groups of the benchmark paper, see Figure 6 of Land et al. [14]. The number of degrees-of-freedom (DOF) for displacement and pressure, and the resulting endocardial and epicardial apex locations are given for different mesh element sizes in Table 1. These results are provided for direct comparison with Figure 6 in Land et al. [14]. Figure 6 in Land et al. [14].
Impact and Conclusions
16Benefits of FEniCS Mechanics stem from the fact that it is built on top of the FEniCS Project. Hence no additional installations are required other than the optional CBC-Block application, as mentioned in Section 2.1. FEniCS provides an interface to state-of-the-art linear solvers and preconditioners from freely available third-party libraries, e.g. PETSc, HYPRE, and Eigen. This is an advantage not found in many other open source projects, which depend on their own solver packages. Another main benefit of using FEniCS as the backbone is the inheritance of parallelization. Problems formulated with FEniCS Mechanics can be run in parallel, given that FEniCS is installed with MPI support. Due to its design as a Python dictionary the simulations are executed in a similar fashion on a high-performance computing cluster as on a regular desktop computer.
17A key benefit of FEniCS Mechanics, which distinguishes it from standalone FEniCS, is the reduction of programming skills and theoretical numerical knowledge required from the user. Several common material models have been implemented and the current problem classes span a wide range of possible applications. Altogether, this facilitates access to experimentation and comparison of solutions from differing problem definitions. The names of dictionary keys and values have been chosen to be intuitive to minimize the gap between a user and the simulation they wish to run. This also enables FEniCS Mechanics to raise exceptions when erroneous or inconsistent values are provided by a user, as described in Section 2.2.
18While a simplistic interface was maintained in FEniCS Mechanics to facilitate running simulations, advanced users can take full advantage of additional tools provided by the FEniCS Project for altering problem definitions, such as, but not limited to, providing their own constitutive equations for rapid prototyping. Advanced users can also more finely tune the solver and preconditioner parameters used, and perform post-processing tasks within the same script.
참고문헌 7건
- MECHANICS OF THE ARTERIAL WALL: REVIEW AND DIRECTIONS Critical Reviews in Biomedical Engineering · Begell House · 1995 10.1615/critrevbiomedeng.v23.i1-2.10
- Modelling cardiac mechanical properties in three dimensions Philosophical Transactions of the Royal Society A Mathematical Physical and Engineering Sciences · Royal Society · 2001 10.1098/rsta.2001.0828
- A note on the elasticity of soft biological tissues Journal of Biomechanics · Elsevier BV · 1972 10.1016/0021-9290(72)90047-4
- Finite element stress analysis of left ventricular mechanics in the beating dog heart Journal of Biomechanics · Elsevier BV · 1995 10.1016/0021-9290(94)00174-3
- Constitutive modelling of passive myocardium: a structurally based framework for material characterization Philosophical Transactions of the Royal Society A Mathematical Physical and Engineering Sciences · Royal Society · 2009 10.1098/rsta.2009.0091
- Verification of cardiac mechanics software: benchmark problems and solutions for testing active and passive material behaviour Proceedings of the Royal Society A Mathematical Physical and Engineering Sciences · Royal Society · 2015 10.1098/rspa.2015.0641
- Automated Solution of Differential Equations by the Finite Element Method: The FEniCS Book 2012