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

A finite element approach to self-consistent field theory calculations of multiblock polymers

간접 관련 엔지니어링 플라스틱 · (23) 컴파운드 (10) 아라미드(16) CPI(투명 폴리이미드)(21) 에폭시수지

기본 정보

저자
  1. David M. Ackerman — Department of Mechanical Engineering, Iowa State University, Ames, IA 50011, USA
  2. Kris T. Delaney — Materials Research Laboratory, University of California, Santa Barbara, USA
  3. Glenn H. Fredrickson — Materials Research Laboratory, University of California, Santa Barbara, USA
  4. Baskar Ganapathysubramanian — Department of Mechanical Engineering, Iowa State University, Ames, IA 50011, USA
DOI
10.1016/j.jcp.2016.11.020
저널
Journal of Computational Physics
발행년도
2016
발행기관
Elsevier BV
피인용수
16
라이선스
publisher-specific-oa
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1016/j.jcp.2016.11.020
토픽
Composite Material Mechanics
OpenAlex ID
W2487974921

평가 내용

관련도
간접 관련
사업분야
엔지니어링 플라스틱 · (23) 컴파운드
부 분야
(10) 아라미드, (16) CPI(투명 폴리이미드), (21) 에폭시수지
R&D 측면
분석·모델링
확신도
0.70
근거 용어
Self-consistent field theory, multiblock polymers, equilibrium morphologies, finite element approach, microstructure
판단 근거
이 논문은 다중 블록 공중합체(multiblock polymers)의 미세구조를 예측하기 위한 자기 일관성장 이론(SCFT)의 유한요소법(FEM) 수치 해석 모델을 다룹니다. 이는 코오롱인더스트리의 엔지니어링 플라스틱 컴파운드나 아라미드, CPI 등 고분자 소재의 미세구조 설계 및 물성 예측을 위한 시뮬레이션 방법론으로 활용 가능합니다.
R&D 활용 포인트
고분자 블록 공중합체의 상분리 및 미세구조(morphology)를 컴퓨터 시뮬레이션으로 예측함으로써, 신규 컴파운드 소재나 기능성 필름 개발 시 실험 횟수를 줄이고 최적의 분자 설계를 지원할 수 있습니다.
평가 입력
본문 63,743자 중 30,032자 발췌

초록

초록이 없습니다.

본문 63,743자

본문 펼치기
## A finite element approach to self-consistent field theory calculations of multiblock polymers David M. Ackerman <sup>a</sup>, Kris Delaney <sup>b</sup>, Glenn H. Fredrickson <sup>b</sup>, Baskar Ganapathysubramanian <sup>a,</sup> <sup>_∗_</sup> _aDepartment_ _of_ _Mechanical_ _Engineering,_ _Iowa_ _State_ _University,_ _Ames,_ _Iowa_ _50011,_ _USA_ _bMaterials_ _Research_ _Laboratory,_ _University_ _of_ _California,_ _Santa_ _Barbara,_ _USA_ Abstract Self-consistent field theory (SCFT) has proven to be a powerful tool for modeling equilibrium microstructures of soft materials, particularly for multiblock polymers. A very successful approach to numerically solving the SCFT set of equations is based on using a spectral approach. While widely successful, this approach has limitations especially in the context of current technologically relevant applications. These limitations include non-trivial approaches for modeling complex geometries, difficulties in extending to nonperiodic domains, as well as non-trivial extensions for spatial adaptivity. As a viable alternative to spectral schemes, we develop a finite element formulation of the SCFT paradigm for calculating equilibrium polymer morphologies. We discuss the formulation and address implementation challenges that ensure accuracy and efficiency. We explore higher order chain contour steppers that are efficiently implemented with Richardson Extrapolation. This approach is highly scalable and suitable for systems with arbitrary shapes. We show spatial and temporal convergence and illustrate scaling on up to 2048 cores. Finally, we illustrate confinement effects for selected complex geometries. This has implications for materials design for nanoscale applications where dimensions are such that equilibrium morphologies dramatically differ from the bulk phases. _Keywords:_ finite elements, polymer theory, self-consistent field theory, high performance computing, 1. Introduction The morphology of multiblock polymers has been of interest for many years due to potential applications that depend on tailored microstructure. Numerical simulation can allow study of systems that are outside the limited analytically solvable cases. However, simulation of equilibrium multiblock polymer microstructures requires significant computational resources. A fully atomistic approach treating every atom in the system individually [1, 2, 3] is impractical due to the large number of atoms comprising even a _∗_ Corresponding author _Email_ _address:_ `baskarg@iastate.edu` (Baskar Ganapathysubramanian) _Preprint_ _submitted_ _to_ _Elsevier_ _December_ _4,_ _2021_ Figure 1: Varying levels of abstraction for polymer chain models. (a) an atomistic schematic of a diblock system. (b) a bead spring model. (c) an abstracted, continuous chain model. single unit cell of a microstructure and prohibitive relaxation times for both bulk materials and nonperiodic, complex geometries. The computational cost for even a small system is high enough to render this unsuitable as a general tool. Instead, a coarse-graining approach using an abstracted beadspring model (see figure 1b) as a substitute for the full molecular structure (see figure 1a) is an often used [4, 5, 6] alternative. In this method, each ‘bead’ is actually multiple monomer units with individual beads interacting via carefully designed local and nonlocal potentials. Despite the abstraction, this approach is generally successful at retaining the physics of chain behavior on length scales beyond a nanometer. While this is far less demanding than a fully atomistic model, it is still a computationally intensive approach for calculating equilibrium microstructures especially for larger and more complex geometries. A more attractive, continuum approach is the self-consistent field theory (SCFT) method. SCFT is a mean field theory that starts with the coarse grained chain and interaction models used in particle methods, but transforms the partition function into a field-theoretic framework. We consider the popularly used model of the continuous Gaussian chain [4] which is well suited for flexible polymers. This model is based on a linearly elastic chain where the chain stretching is governed by a harmonic potential. Chain segments interact via pair potentials that are usually assumed to be attractive or repulsive contact interactions (delta functions). The relevant partition function integral is re-expressed using HubbardStatonovich transforms into an integral over auxiliary fields, and is taken to be dominated by a single set of fields (the mean-field approximation). The procedure is then to solve for these mean fields, which is done iteratively, to obtain the equilibrium field values and with them, the microstructure of the system. This approach has been used in a wide variety of systems and applications including lithography [7], polymer brushes [8, 9, 10], self assembly [11, 12], polymer nanocomposites [13], organic electronics [14], and thin films [15]. Several recent advances include the use of SCFT in a hybrid SCFT-liquid state theory using charged polymers [16, 17]. The addition of electrostatics leads to previously unseen structures with promising potential for energy storage applications due to favorable mechanical and electrical properties [16]. SCFT has also been used to study the directed self-assembly approach to lithography [18]. In this work, SCFT simulations were used to identify confining template geometries and polymer formulations that can achieve 10 nm scale patterns targeted by the microelectronics industry, along with acceptable defect levels. Although much SCFT work has been done using linear AB diblock chains, the method is not limited to those systems. Multiblock polymers 2 [19, 20, 21], star and branched polymers [22, 23], and tapered diblock polymers [24] have been studied as well. In the last case, the taper is block of mixed A and B monomers with the ratio changing along the length of the chain. The addition of the tapered block was found to change the phase behavior of the system, leading to a wider range of stability of the bicontinuous phase. Spectral methods have been the predominant tool for solving SCFT problems. The approach is efficient, and has high spatial accuracy. This makes it an excellent choice for many applications. However, there are applications where the frequency-domain approach (of spectral, and quasi-spectral methods) has limitations; which encourages consideration of alternate real space approaches, like the finite element (FE) method. First is the ease of handing complex geometries. While a purely spectral model requires masking techniques for complex geometries, real space methods require no addition actions. Second, real space methods are not limited to periodic systems and naturally allow the use of heterogeneous and mixed boundary conditions. Finally, real space methods allow local mesh adaptation to selectively increase the resolution in a targeted position without requiring increased computational effort over the entire system. This restriction on spectral methods is partially alleviated by use of Chebyshev or other localized bases. Finite Element approaches, in particular, can incorporate rigorous _a_ _posteriori_ error estimates (due to the variational treatment) for mesh adaptivity that enable substantial computational gains. Furthermore, there is a substantial push to design solvers and frameworks (like FASTMath) for real space approaches that are suitable for deployment on next generation exa scale computers. Motivated by these factors, we develop a real space formulation of the SCFT problem using the finite element method. The implementation is discussed in detail along with example results and a detailed study of the accuracy of implementation. Our contribution in this paper include: (a) formulating the SCFT problem in real space using a finite element based variational form, (b) exploring and implementing various high order contour stepping methods, (c) incorporating Richardson extrapolation for multiblock systems, (d) software engineering informed efficient implementation, and (e) illustrative examples (complex geometry, nonperiodic domains, scalability studies) of the implementation highlighting the strengths of the method. The key factors affecting the accuracy of the results are discussed in detail. The SCFT approach has been covered in great detail elsewhere [25], but we will review the key points before discussing the finite element implementation. Broadly, the SCFT approach is a mean field theory where the partition function is dominated by the mean field values of _W_ ( _r_ ). The task then becomes finding the value of the mean fields such that: _<u>δH</u>_ <u>[</u> _<u>W</u>_ <u>]</u> (1) ���� _W_ = _W_ <sup>_∗_</sup> <sup>= 0</sup> _δW_ where H is the Hamiltonian of the system and _W_ <sup>_∗_</sup> are the mean field values. The system considered here is a melt of AB diblock copolymer chains of uniform length. Extension to multiblock copolymers is straight-forward. The chains (see figure 1c) are treated as a continuous space curve with each point along the curve having a contour position s, describing where it is along the length of the chain, and a spatial position _r_ . The first part of the chain is a block of type A and the second part is a block of type B. The crossover point is at s=f (0 _<_ _f_ _<_ 1) with the total length normalized to 1. Many potentials exist for polymer interactions. While the treatment is agnostic to the specific form of 3 interaction, we illustrate the framework using the widely used Flory-Huggins model of interaction. In the Flory-Huggins model, A and B blocks have a repulsive interaction given by _χN_, the product of the segmental interaction parameter _χ_ and the chain length N. Individual points along the chain are not tracked directly, instead points along the chain are described by a chain propagator _q_ ( _s,_ _r_ ) which describes the probability of a segment of chain at position s along the contour being located at position _r_ in space. The equation for the propagator takes the form of a modified diffusion equation [25] (see Eqn. 8). Solving this equation yields the propagator values needed to calculate the chain densities and from those, the potential fields. Section 2 presents a brief overview of the numerical description of the SCFT method. Following that, section 3 is a detailed treatment of the finite element formulation of the polymer chain propagator. Section 4 discusses the implementation details. Results and analysis of the performance are presented in section 5. We conclude in section 6. 2. Self Consistent Field Theory Equations For the diblock system described above, the Hamiltonian of the system is given by: _H_ = <sup><u>1</u></sup> _V_ _d_ _r_ ( _χNρA_ ( _r_ ) _ρB_ ( _r_ ) _−_ _WA_ ( _r_ ) _ρA_ ( _r_ ) _−_ _WB_ ( _r_ ) _ρB_ ( _r_ )) _−_ _lnQ_ (2) where V is the volume of the system, _ρA_ and _ρB_ are the reduced density fields of the A and B segments, _WA_ and _WB_ are the local potential fields for the A and B segments, and Q is the partition function of the system. Treating the system as incompressible ( _ρA_ + _ρB_ = 1) via a Lagrange multiplier gives _H_ = _H_ + - _d_ _r_ _λ_ ( _ρA_ + _ρB −_ 1). Applying Eqn. 1 for the five fields ( _ρA_, _ρB_, _WA_, _WB_, and _λ_ ) leads to the well known SCFT equations: _WA_ = _χNρB_ + _λ_ (3) _WB_ = _χNρA_ + _λ_ (4) _ρA_ + _ρB_ = 1 (5) _ρA_ = _−_ <sup>_<u>δ</u>_</sup> <sup><u>ln</u></sup> <sup>_<u>Q</u>_</sup> _δWA_ _ρB_ = _−_ <sup>_<u>δ</u>_</sup> <sup><u>ln</u></sup> <sup>_<u>Q</u>_</sup> _δWB_ (6) (7) Finding the mean field state is done through an iterative process. The overall sequence of the solution, as illustrated in figure 2, consists of five main steps: initial field generation, propagator calculation, partition function calculation, density calculation, and field recalculation. This approach is equivalent to solving a fixed point problem for the field: _W_ = _F_ ( _W_ ). _2.1._ _Initial_ _Field_ _Generation_ The chain propagator equation is dependent on the potential fields, _WA_ and _WB_ . In order to start the process, these must have starting values. If the starting values are 4 Figure 2: Flowchart of SCFT iterative process. uniform, the gradient term in the modified diffusion equation goes to zero, leaving no driving force for the formation of a microstructure. To prevent this, there must be some spatial inhomogeneity in the initial values. Typically this is achieved by choosing random initial values at each point in the system. The exact values do not matter although a magnitude that is too high will cause instability. Typically, values in the range [-1,1] are sufficient. The remaining fields are ( _ρA_, _ρB_, and _λ_ ) are calculated from the potential fields and do not need initial values. _2.2._ _Propagator_ _Calculation_ Using the field values, the polymer chains are created as described by a propagator equation. There are two chain propagators: the forward propagator, _q_ ( _r_ _, s_ ; [ _WA, WB_ ]) and the complimentary propagator _qc_ ( _r_ _, s_ ; [ _WA, WB_ ]). For notational convenience, the dependence on fields _WA_ and _WB_ is omitted below. The forward propagator, _q_, builds the chain from one end, starting at s=0 and moving to s=1: _<u>∂</u>_ _∇_ <sup>2</sup> _q_ ( _r_ _, s_ ) _−_ _W_ ( _r_ _, s_ ) _q_ ( _r_ _, s_ ) (8) _∂s_ <sup>_q_</sup> <sup>(</sup> <sup>_r_</sup> <sup>_, s_</sup> <sup>) =</sup> <sup>_N_</sup> <sup><u>[</u></sup> <sup>_<u>b</u>_</sup> <sup><u>(</u></sup> 6 <sup>_<u>s</u>_</sup> <sup><u>)]2</u></sup> where b(s) is the statistical segment length. Note that s was scaled to a range of [0, 1] and a factor of N is absorbed in W. In the diblock case the field, _W_ ( _r_ _, s_ ), and the segment length, _b_ ( _s_ ), are dependent on the position along the chain: _W_ ( _r_ _, s_ ) _≡_ _WA,_ 0 _≤_ _s ≤_ _f_ (9) _WB,_ _f_ _< s ≤_ 1 5 _b_ ( _s_ ) = _bA,_ 0 _≤_ _s ≤_ _f_ (10) _bB,_ _f_ _< s ≤_ 1 where _bA_ and _bB_ are the field and statistical segment values for blocks A and B. The complimentary propagator, _qc_, starts from s=1 and moves backwards to s=0: _<u>∂</u>_ _∇_ <sup>2</sup> _qc_ ( _r_ _, s_ ) _−_ _Wc_ ( _r_ _, s_ ) _qc_ ( _r_ _, s_ ) (11) _∂s_ <sup>_qc_</sup> <sup>(</sup> <sup>_r_</sup> <sup>_, s_</sup> <sup>) =</sup> <sup><u>[</u></sup> <sup>_<u>bc</u>_</sup> <sup><u>(</u></sup> 6 <sup>_<u>s</u>_</sup> <sup><u>)]2</u></sup> The fields and segment lengths for this propagator are given by: _Wc_ ( _r_ _, s_ ) _≡_ _WB,_ 0 _≤_ _s ≤_ 1 _−_ _f_ (12) _WA,_ 1 _−_ _f_ _< s ≤_ 1 _bc_ ( _s_ ) _≡_ _bB,_ 0 _≤_ _s ≤_ 1 _−_ _f_ (13) _bA,_ 1 _−_ _f_ _< s ≤_ 1 For both propagators, the initial condition at s=0 is: _q_ ( _r_ _,_ 0) = _qc_ ( _r_ _,_ 0) = 1 (14) _2.3._ _Partition_ _Function_ _Calculation_ Once the propagator is computed, a partition function value is calculated: _Q_ [ _WA, WB_ ] = <sup><u>1</u></sup> _V_ _d_ _r_ _q_ ( _r_ _,_ 1) (15) This can equivalently be defined from the complimentary propagator: _Q_ [ _WA, WB_ ] = <sup><u>1</u></sup> _V_ _d_ _r_ _qc_ ( _r_ _,_ 1) (16) _2.4._ _Density_ _Calculation_ Using this partition function and the propagator values along the chain, the segment densities at position _r_ are given by: <u>1</u> _ρA_ ( _r_ _,_ [ _WA, WB_ ]) = _−_ _Q_ [ _WA, WB_ ] <u>1</u> _ρB_ ( _r_ _,_ [ _WA, WB_ ]) = _−_ _Q_ [ _WA, WB_ ] _<u>δQ</u>_ <u>[</u> _<u>WA, WB</u>_ <u>]</u> _δWA_ ( _r_ ) <u>1</u> = _Q_ [ _WA, WB_ ] _<u>δQ</u>_ <u>[</u> _<u>WA, WB</u>_ <u>]</u> _δWB_ ( _r_ ) <u>1</u> = _Q_ [ _WA, WB_ ] 6 - _f_ _ds qc_ ( _r_ _,_ 1 _−_ _s_ ) _q_ ( _r_ _, s_ ) (17) 0 - 1 _ds qc_ ( _r_ _,_ 1 _−_ _s_ ) _q_ ( _r_ _, s_ ) (18) _f_ _2.5._ _Field_ _Recalculation_ With the densities at each point known, the new potential fields are calculated using SCFT Eqns. 3 - 5. Solving Eqns. 3 and 4 for _ρA_ and _ρB_ and applying Eqn. 5 gives _λ_ for each node point (with superscripts denoting which iteration the values are taken from): _<u>A</u>_ _λ_ <sup>_n_</sup> = <sup>_<u>W n−</u>_</sup> <sup>1</sup> _<u>A</u>_ <u>+</u> _<u>WB</u>_ <sup>_n−_</sup> <sup>1</sup> <sup>_n−_</sup> <sup>1</sup> <u>+</u> _<u>WB</u>_ <sup>_n−_</sup> <sup>1</sup> _−_ <sup>_<u>χN</u>_</sup> 2 2 (19) 2 The target fields for iteration n are then _WA_ <sup>_n†_</sup> _WB_ <sup>_n†_</sup> _B_ <sup>_n_</sup> <sup>+</sup> <sup>_λn_</sup> (20) _A_ <sup>_n_</sup> <sup>+</sup> <sup>_λn_</sup> (21) _A_ <sup>_n†_</sup> <sup>=</sup> <sup>_χNρ_</sup> _B_ <sup>_n_</sup> _B_ <sup>_n†_</sup> <sup>=</sup> <sup>_χNρ_</sup> _A_ <sup>_n_</sup> The new field values for this iteration are set using a simple mixing scheme: <sup>_n_</sup> _B_ <sup>_−_</sup> <sup>1</sup> ) (23) _A_ <sup>_n_</sup> <sup>=</sup> <sup>_W n_</sup> _A_ <sup>_−_</sup> <sup>1</sup> _B_ <sup>_n_</sup> <sup>=</sup> <sup>_W n_</sup> _B_ <sup>_−_</sup> <sup>1</sup> _A_ <sup>_n†_</sup> <sup>_−_</sup> <sup>_W n_</sup> _A_ <sup>_−_</sup> <sup>1</sup> _B_ <sup>_n†_</sup> <sup>_−_</sup> <sup>_W n_</sup> _B_ <sup>_−_</sup> <sup>1</sup> _WA_ <sup>_n_</sup> <sup>_n_</sup> _A_ <sup>_−_</sup> <sup>1</sup> ) (22) _WB_ <sup>_n_</sup> <sup>_n_</sup> _A_ <sup>_−_</sup> <sup>1</sup> + _α_ ( _WA_ <sup>_n†_</sup> <sup>_n_</sup> _B_ <sup>_−_</sup> <sup>1</sup> + _α_ ( _WB_ <sup>_n†_</sup> where _α_ is an under relaxation factor ( _α ≤_ 1). These values will differ from the previous values if the system is not in a stationary state. The degree of difference is an indication of convergence to the correct solution. A threshold value is used to decide when the system is converged. If the error is less than the threshold the system is considered converged. If it is greater, the process is started again from step 2 calculating the propagator using the new fields. This cycle continues until the fields are consistent with the calculated structure. 3. Propagator formulation Since the propagator is the most computationally demanding part of the solution process, we discuss the implementation in detail. This section presents the solution of the propagator using finite elements. It gives the weak form and matrix form of the propagator equation (Eqn. 8). Following that, several methods of discretizing the contour derivative are presented using a typical contour stepping solving scheme. _3.1._ _Variational_ _Form_ Consider a domain Ω, with boundary Γ _g_ on which Eqn. 8 is to be solved. Let _V_ = _V_ (Ω) denote both the trial and test function spaces. The variational formulation, i.e. weak form, is stated as following: Find _q_ _∈V_ such that for _∀w_ _∈V_ : ( _w,_ _ds_ <sup>_<u>d</u>_</sup> <sup>_q_</sup> <sup>) + (</sup> <sup>_∇w, G∇q_</sup> <sup>) + (</sup> <sup>_w, W_</sup> <sup>(</sup> <sup>_r_</sup> <sup>)</sup> <sup>_q_</sup> <sup>) = 0</sup> (24) G is defined from Eqn. 8 as _N_ [ _b_ ( _s_ )] <sup>2</sup> _/_ 6, and ( _., ._ ) is the inner product over the domain Ω. Defining the bilinear form as _a_ ( _u, v_ ) _≡_ �Ω <sup>_∇u∇vd_</sup> <sup>Ωgives</sup> <sup>the</sup> <sup>weak</sup> <sup>form</sup> <sup>of</sup> <sup>the</sup> propagator equation: ( _w,_ _ds_ <sup>_<u>d</u>_</sup> <sup>_q_</sup> <sup>) +</sup> <sup>_Ga_</sup> <sup>(</sup> <sup>_w, q_</sup> <sup>) + (</sup> <sup>_wW_</sup> <sup>(</sup> <sup>_r_</sup> <sup>)</sup> <sup>_, q_</sup> <sup>) = 0</sup> (25) 7 _3.2._ _Semi-discrete_ _Matrix_ _Form_ We then consider a triangulation, _Th_, of the domain Ω. _T_ consists of a set of (finite) elements Ω _i_, of size _h_, such that _∪_ Ω _i_ = Ωand _∩_ Ω _i_ = _∅_ . We consider an approximation of the weak form on the triangulation and approximate space, _V_ <sup>_h_</sup> _⊂_ _H_ <sup>_h_</sup> (Ω). The problem is now to find _qh_ _∈V_ <sup>_h_</sup> with the above boundary condition, such that _<u>d</u>_ _ds_ <sup>(</sup> <sup>_wh, qh_</sup> <sup>) +</sup> <sup>_Ga_</sup> <sup>(</sup> <sup>_wh, qh_</sup> <sup>) + (</sup> <sup>_whWh, qh_</sup> <sup>) = 0</sup> (26) for _wh_ _∈_ _H_ <sup>_h_</sup> . We associate a standard set of basis functions with each element Ω _i_ . Thus, _q_ is expanded in terms of the basis functions _{NA}_ <sup>_n_</sup> _A_ <sup>_b_</sup> =1 <sup>,</sup> <sup>where</sup> <sup>_nb_</sup> <sup>is</sup> <sup>the</sup> <sup>number</sup> <sup>of</sup> <sup>basis</sup> functions. The problem now becomes one of finding the nodal values of the unknown quantity, _q_, over the triangulation. This form is simplified by writing _q_ and _w_ in terms of their nodal values and the basis functions. Recall that we denote the inner product over the element as ( _f, g_ ). The various terms in the Eqn. 26 can be written in terms of the two matrices _M_ _AB_ = ( _NA, NB_ ) and _K_ _AB_ = _G × a_ ( _NA, NB_ ) and (unknown) vector _q_ _B_ = _qB_ to get the semi-discrete matrix form: _<u>d</u>_ _<u>q</u>_ _ds_ <sup>_M_</sup> <sup>+</sup> <sup>_Kq_</sup> <sup>+</sup> <sup>_M_</sup> <sup>_W_</sup> <sup>(</sup> <sup>_r_</sup> <sup>)</sup> <sup>_q_</sup> <sup>= 0</sup> (27) _3.3._ _Discrete_ _Form_ The matrix form above is still continuous in the contour variable. There are numerous possible ways to discretize the contour. The primary difference between methods is the order of accuracy. A higher order of accuracy is desired because it allows the use of large ∆ _s_ corresponding to fewer evaluations of _q_ for a given length of the chain. Since the propagator requires the major computational effort, reducing the number of propagator evaluations is a highly effective way to improve performance. Mulitple numeric schemes have been proposed[26, 27, 28, 29] and there have been several comparisons for pseudospectral algorithms[30, 31]. To study the finite element method we choose five different discretization schemes: Backward Euler (BE); Crank-Nicolson (CN); and the backward differentiation formulas 2, 3, and 4 (BDF2, BDF3, and BDF4). All methods require splitting the equation into a finite number of steps with a spacing of ∆ _s_ . The BE is 1st order accurate in _s_, CN and BDF2 are 2nd order accurate, BDF3 is 3rd order, and BDF4 is 4th order. _3.3.1._ _Backward_ _Euler_ The backward Euler approximation for a function of the form _∂q/∂s_ = _f_ is: _<u>q</u>_ <sup>_n_</sup> _<u>−</u>_ _<u>q</u>_ <sup>_n−_</sup> <sup>1</sup> _≈_ _f_ <sup>_n_</sup> (28) ∆ _s_ where the superscript denotes the contour step. This is the simplest discretization and applying it to Eqn. 27 gives: _Mq_ <sup>_n_</sup> + ∆ _s_ _Kq_ <sup>_n_</sup> + ∆ _s_ _M_ _W_ ( _r_ ) _q_ <sup>_n_</sup> = _Mq_ <sup>_n−_</sup> <sup>1</sup> (29) for n from 1 to the number of contour points. This equation is solved first by using the initial condition (Eqn. 14) and the field values to solve for the values of _q_ <sup>1</sup> across the entire system. This value is then used to find _q_ <sup>2</sup>, and so on until the propagator values for the entire chain have been calculated. 8 _3.3.2._ _Crank-Nicolson_ The Crank-Nicolson approximation for a function of the form _∂q/∂s_ = _f_ is: _<u>q</u>_ <sup>_n_</sup> _<u>−</u>_ _<u>q</u>_ <sup>_n−_</sup> <sup>1</sup> <sup><u>1</u></sup> (30) 2 <sup>(</sup> <sup>_f n_</sup> <sup>+</sup> <sup>_f n−_</sup> <sup>1)</sup> _<u>q</u>_ <sup>_n−_</sup> <sup>1</sup> _≈_ <sup><u>1</u></sup> ∆ _s_ 2 where the superscript denotes the contour step. Following the same procedure given for the BE case, the matrix form is _Mq_ <sup>_n_</sup> + <sup><u>∆</u></sup> 2 <sup>_<u>s</u>_</sup> <sup>_Kq_</sup> <sup>_n_</sup> <sup>+</sup> <sup>_M_</sup> <sup>∆</sup> <sup>_sW_</sup> <sup>(</sup> <sup>_r_</sup> <sup>)</sup> <sup>_q_</sup> <sup>_n_</sup> <sup>=</sup> _Mq_ <sup>_n−_</sup> <sup>1</sup> _−_ <sup><u>∆</u></sup> 2 <sup>_<u>s</u>_</sup> <sup>_Kq_</sup> <sup>_n−_</sup> <sup>1</sup> <sup>_−_</sup> <sup>_M_</sup> <sup>∆</sup> <sup>_sW_</sup> <sup>(</sup> <sup>_r_</sup> <sup>)</sup> <sup>_q_</sup> <sup>_n−_</sup> <sup>1</sup> (31) for n from 1 to the number of contour points. As before the initial condition is _q_ <sup>0</sup> = 1 and the values along the chain are solved sequentially. _3.3.3._ _Backward_ _Difference_ _2,_ _3,_ _and_ _4_ The backward difference formulas 2, 3, and 4 all follow a similar format. The number indicates both the order of accuracy in contour step and the number of previous contour terms required for the formulation. The need for more than one previous contour point creates a complication not present with the BE and CN methods. Points at the beginning of the discretized chain may not have a sufficient number of previous points to utilize these methods. This ‘startup problem’ is not unique to the BDF methods; It applies to all schemes requiring more than one previous point. A convenient approach to solving this is the use of Richardson Extrapolation [32, 28]. Application of Richardson Extrapolation for BDF2, BDF3, and BDF4 is given in detail in the appendix. The BDF equations are given below: The equation for BDF2 is: _Mq_ <sup>_n_</sup> + <sup><u>2</u></sup> (32) 3 <sup>∆</sup> <sup>_s_</sup> <sup>_Kq_</sup> <sup>_n_</sup> <sup>+</sup> <sup><u>2</u></sup> 3 <sup>∆</sup> <sup>_s_</sup> <sup>_M_</sup> <sup>_W_</sup> <sup>(</sup> <sup>_r_</sup> <sup>)</sup> <sup>_q_</sup> <sup>_n_</sup> <sup>=</sup> <sup><u>4</u></sup> 3 <sup>_Mq_</sup> <sup>_n−_</sup> <sup>1</sup> <sup>_−_</sup> <sup><u>1</u></sup> 3 <sup>_Mq_</sup> <sup>_n−_</sup> <sup>2</sup> The equation for BDF3 is: _Mq_ <sup>_n_</sup> + <sup><u>6</u></sup> (33) 11 <sup>∆</sup> <sup>_s_</sup> <sup>_Kq_</sup> <sup>_n_</sup> <sup>+</sup> 11 <sup><u>6</u></sup> <sup>∆</sup> <sup>_s_</sup> <sup>_M_</sup> <sup>_W_</sup> <sup>(</sup> <sup>_r_</sup> <sup>)</sup> <sup>_q_</sup> <sup>_n_</sup> <sup>=</sup> <sup><u>18</u></sup> 11 <sup>_Mq_</sup> <sup>_n−_</sup> <sup>1</sup> <sup>_−_</sup> 11 <sup><u>9</u></sup> <sup>_Mq_</sup> <sup>_n−_</sup> <sup>2 +</sup> 11 <sup><u>2</u></sup> <sup>_Mq_</sup> <sup>_n−_</sup> <sup>3</sup> The equation for BDF4[27] is: _Mq_ <sup>_n_</sup> + <sup><u>12</u></sup> 25 <sup><u>12</u></sup> 25 <sup>∆</sup> <sup>_s_</sup> <sup>_Kq_</sup> <sup>_n_</sup> <sup>+</sup> <sup><u>12</u></sup> 25 <sup>_M_</sup> <sup>∆</sup> <sup>_sW_</sup> <sup>(</sup> <sup>_r_</sup> <sup>)</sup> <sup>_q_</sup> <sup>_n_</sup> <sup>=</sup> <sup><u>48</u></sup> 25 <sup>_Mq_</sup> <sup>_n−_</sup> <sup>1</sup> <sup>_−_</sup> 25 <sup><u>36</u></sup> <sup>_Mq_</sup> <sup>_n−_</sup> <sup>2+</sup> <sup><u>16</u></sup> 25 <sup>_Mq_</sup> <sup>_n−_</sup> <sup>3</sup> <sup>_−_</sup> 25 <sup><u>3</u></sup> <sup>_Mq_</sup> <sup>_n−_</sup> <sup>4</sup> (34) 4. Finite Element Implementation The finite element approach is implemented with a focus on the primary advantages of this method over the spectral approach. The primary goal is an efficient solution of large problems and those with irregular shapes or within confinement. Support for 9 arbitrary shapes is inherent in the finite element method. Large problems are efficiently handled through a highly parallel implementation. To enable solving of large and complex domains, we use a parallel in-house FEM library built upon the PETSc library [33, 34, 35]. The library handles the finite element backend details and the application code implements the actual SCFT science. PETSc routines are used for the solving of the system described above. By default, solving is done using the generalized minimal residual method. Arbitrary meshes are supported and parallel domain decomposition of meshes is performed using ParMETIS [36]. This implementation supports multiple options for boundary conditions. Periodic, Neumann, and Dirichlet conditions are all easily supported through the FEM library. Both uniform and mixed, non-homogeneous boundary conditions can be applied. _4.1._ _Spatial_ _Discretization_ The accuracy of the solution has two primary components - a component from the accuracy of the contour discretization of the chain, and a component from the accuracy of the spatial discretization. The choice of the number of contour points and the selection of a contour discretization scheme allow control of the accuracy in contour. These considerations are similar for both the spectral and real space approaches. A primary disadvantage of the real space approach is that it lacks spectral accuracy in space. Spatial accuracy in the finite element method is controlled by both the number of spatial elements and the order of the basis functions used. The number of elements used can be increased, typically without significant difficulty regardless of the choice of structure. An alternate approach of increasing the basis function order utilizes the same formulation given above. <sup>1</sup> Under reasonable bounded and smoothness assumptions on _W_, one can prove convergence estimates for the solution in terms of the triangulation (element length, _h_ ), the order of the basis function _β_ and the order of the contour stepper used _α_ as _∥u_ <sup>_h_</sup> ∆ _s_ <sup>_−_</sup> <sup>_ue∥≤_</sup> <sup>_c_</sup> <sup>1∆</sup> <sup>_sα_</sup> <sup>+</sup> <sup>_c_</sup> <sup>2</sup> <sup>_hβ_</sup> (35) where _u_ <sup>_h_</sup> ∆ _s_ <sup>is</sup> <sup>the</sup> <sup>computed</sup> <sup>solution,</sup> <sup>_ue_</sup> <sup>is</sup> <sup>the</sup> <sup>true</sup> <sup>solution,</sup> <sup>and</sup> <sup>_c_</sup> <sup>1</sup> <sup>and</sup> <sup>_c_</sup> <sup>2</sup> <sup>are</sup> <sup>constants.</sup> 5. Results We first investigate the accuracy of the model with variations in spatial and contour discretization. We also show several results on non-uniform meshes, which illustrates one of the strengths of this formulation. _5.1._ _Comparison_ _of_ _Discretizations_ To better understand the discretizations described above, we explore the discretization in both space and contour. In order to compare values, we need a metric for accuracy that can be readily compared across different calculations. We use the value of the partition function, Q, as the metric of accuracy of the solver. Since it is an integration of 1The library handles the details of the basis function internally, allowing a basis order agnostic code to be used for calculation of the _M_ and _K_ matrices. 10 Figure 3: Gyroid phase of diblock polymer. See text for parameters. the end result of the propagator solve, it is a measure of the entire finite element solution process. As a basis for comparison, we use a cubic system with an edge length of 8.82 times the polymer radius of gyration ( _Rg_ ). The diblock chain is 40% A and 60% B (which corresponds to an A block fraction, f, of 0.4) with an interaction parameter of _χN_ = 14.4. This corresponds to a 3D gyroid phase of the diblock polymer (see figure 3). In this case, _bA_ = _bB_, making the A and B blocks indistinguishable. The spectrally determined Q value is 5.32583. First, we look at the contour discretization. The computational time required for a solution scales linearly with the number of contour points. Thus the goal is to have the fewest number of contour points necessary for the desired accuracy. Multiple discretization methods were given in section 3. The primary difference among these methods is the order of accuracy. Figure 4(a) shows the convergence of Q for the five discretization methods discussed above. As expected, the higher order methods converge faster to the desired value. The simplest backward Euler(BE) approach shows very poor convergence and is mostly unsuitable for use, while the BDF3 method rapidly converges. Since the propagator solving is the rate limiting step in this problem, it is worth the extra complexity of a higher method in order to reduce the number of contour points. Figure 4(b) shows the percent error for each method at selected numbers of contour points. The convergence of different methods is readily seen. Arbitrarily selected accuracies of 1%, 0.1%, and 0.01% are noted on the plot and shown in table 1. For the coarsest tolerance of 1%, the BE method requires 540 contour points, while the BDF2 method requires only 26. If we take the cost of calculation per contour point to be the same across each method (it is within 15%), the BDF2 calculation will be over 20 times faster than the BE method in achieving a result within 1% accuracy. The BDF3 method is twice as fast as the BDF2 method in achieving 1% error. The difference is even more pronounced at the 0.01% accuracy, where the BDF3 method is four times faster than the BDF2 method. Second, the spatial discretization is addressed. As mentioned previously, the lack of spectral accuracy makes the order of the basis function important for the accuracy of a give spatial discretization. Both first and second order basis functions were used. Higher order, and even spectral basis functions can potentially be used. Figure 5 shows the resulting Q values for linear and quadratic basis functions using the BDF3 contour 11 Figure 4: Convergence of Q with contour point counts. (a) shows the actual Q results with increasing number of contour points. The values eventually converge to the same result as the other methods. (b) shows the error in the Q value with varying number of contour points. The three dashed lines indicate error values selected for comparison in Table 1. Table 1: Number of contour points required for a given accuracy. All calculations are for a gyroid phase with 64 <sup>3</sup> nodal points, f=0.4, and quadratic basis functions. Values are interpolated from data in figure 4(b). Note that the Backward Euler method did not reach 0.01% error in less than 10,000 points. 1% 0.1% 0.01% <u>error</u> <u>error</u> <u>error</u> <u>Backward</u> <u>Euler</u> <u>540</u> <u>5114</u> <u>–</u> <u>Crank-Nicolson</u> <u>15</u> <u>46</u> <u>143</u> <u>Backward</u> <u>difference</u> <u>formula</u> <u>2</u> <u>26</u> <u>85</u> <u>286</u> Backward difference formula 3 13 32 69 steppers. These calculations were done for a range of cubic systems with the given number of elements. For all calculations, 150 contour points were used. Based on the results of the contour testing, this is sufficient to lead to a converged state, so any error in these results is due to the spatial discretization. It can be clearly seen that the quadratic basis functions are more accurate for a given number of elements and the results converge faster with additional elements, as expected. _5.2._ _Arbitrary_ _Domain_ _Shapes_ A key advantage of the finite element implementation is the ability to model arbitrary geometries with no changes. This allows the calculation of structure on physically meaningful domains rather than just a bulk structure. Applications of non-bulk shapes include thin fibers where the cross section is small enough that the bulk phase does not form, nanoparticles with dimensions below the bulk lattice spacing, and the previously mentioned directed self-assembly for lithography. It also allows investigation of the effects 12 Figure 5: Spatial convergence of Q values. Calculations done on gyroid phase using 150 contour points and BDF3 contour stepper with Richardson extrapolation. The number of elements is the number per side of the cubic system. of confinement on the structures adopted by the chains. Figures 6 - 9 shows results of several shapes in both 2D and 3D (parameters are listed in the caption). In the images, the blue regions are areas of high A block concentration and the red regions are areas of high B block concentration. The top row of images differs from the bottom by the size of the mesh. As can be seen in the annulus case, the structure adopted can be dependent on the system size due to confinement effects. _5.3._ _Scaling_ _with_ _Number_ _of_ _Processors_ Another key advantage of the finite element approach is the ability to run very large problems on multiple processors with high efficiency. For most periodic systems or unit cell calculations, this is not an important consideration. However, for complex geometries or more complicated chain models, efficient scaling allows modeling large systems. The benefit comes from the near linear scaling of the finite element approach. This allows running problems on a wide range of system sizes. Figure 10 shows scaling results up to 2048 cores using this model on a diblock polymer system. These results were generated on the Blue Waters system [37]. 6. Conclusion The finite element method discussed in this paper is an alternative to the standard spectral and pseudo-spectral methods for self-consistent field theory calculations. The use of this alternate approach has advantages when considering large problems with nonperiodic geometries. We have discussed details of the implementation relevant to the accurate simulation of block copolymer systems. Use of a finite element method for SCFT allows easy calculation of self-assembled structures in complex geometries. This has 13 Figure 6: 2D structures using a non-uniform, non-square mesh. For all cases _χN_ = 14.4, f = 0.4, and zero-flux boundary conditions were applied. The circle in (a) has a radius of 1 _Rg_, while (d) has a radius of 4 _Rg_ . The triangle in (b) has an edge length of 4 _Rg_, while (e) has an edge length of 6 _Rg_ . The annulus in (c) has an outer radius of 5 _Rg_ and an inner radius of 4 _Rg_, while (f) has an outer radius of 18 _Rg_ and an inner radius of 14.4 _Rg_ . Figure 7: Arbitrarily shaped 2D structures. For both cases _χN_ = 25 and the height is approximately 20 _Rg_ . In (a), f = 0.5 and in (b), f = 0.3. Zero-flux boundary conditions were applied. The effect of the boundary conditions can be seen in the curved distortion of the A/B interface near the surface. 14 Figure 8: 2D structures using a non-uniform mesh to show variation with fraction of A chain (f) and _χN_ values. The top row of images has _χN_ = 25 while the bottom row has _χN_ = 14.4. In all cases, the distance from the center to the outer most point is 10 _Rg_ and zero-flux boundary conditions were used. 15 Figure 9: 3D structures of sphere and torus. In each case f = 0.4 and _χN_ = 14.4, conditions corresponding to gyroid phase stability in the bulk. Zero-flux boundary conditions were applied. Figure 10: Strong scaling results using quadratic basis functions on the blue waters system. nDOF = number of degrees of freedom being solved in the system. Dashed black line shows perfect linear scaling. 16 Figure 11: Diagram of diblock copolymer indicating start up problem for BDF3 contour stepping method. implications for the study of thin film and other confined systems beyond a simple bulk melt. The scalability of the approach allows larger structures to be calculated, enabling simulation of physically relevant sizes. While our focus is on the common diblock case, the method can be applied to multiblock polymers with an arbitrary number of blocks and non-linear architectures. Beyond the benefits shown here, the SCFT approach also has potential application to chain models other than the Gaussian chain, which are becoming of more interest as the power of computational resources expand. Acknowledgments DMA and BG were partially supported by NSF 1435587. KTD and GHF were partially supported by the National Science Foundation grants DMR-1332842 and DMR1506008. 7. Appendix: Richardson Extrapolation The contour discretization described in 3 is used to discretize the propagator equation in the contour variable. Higher order schemes are desirable because they yield greater accuracy for a given number of discrete points. As mentioned previously, a problem arises with higher order discretization schemes which require more that a single previous contour point. At the start of the chain, only one point - the initial condition - is available. Any method that requires more than one previous point will not have enough previous points to use in the calculation of the early contour points. Similarly, at the second point, only two points are available - the initial condition and the first point. For the propagator equation of diblock chains, this startup problem is also an issue in the switch from one block to another. In this case, there may be enough previous points to use the discretization scheme, however the previous points were created under the effect of different fields so it is physically incorrect to use them as part of the new block. Fig. 11 illustrates this problem schematically for the Backward Difference 3 (BDF3) method, which is 3rd order accurate but requires three previous contour points. The most obvious solution to this startup problem is to simply use a lower order scheme for the first point(s) where there are insufficient points for the higher order method. In Fig. 11, for example, it would be possible to calculate point 2 using a 1st order accurate Backward Difference 1 (BDF1) method and then calculate point 3 using a 17 2nd order accurate Backward Difference 2 (BDF2) method. All remaining points would be calculated using the 3rd order BDF3 method. This is appealing in its simplicity, however it leads to poor results as the errors in the beginning of the chain propagate along the entire length. In effect, the use of higher order methods later in the chain only serves to preserve the error created in the first point. An alternative method is the use of Richardson Extrapolation (RE)[32, 28] for the early points. This method uses solutions from smaller contour steps to build up the accuracy of the early points to match the higher order desired. Once the early points have been calculated using the RE method, later points are computed using the higher order method as normal. Through use of this method, it is possible to preserve the higher order accuracy. Although this method requires greater computational expense for the first points, it can still result in lower overall cost for a given accuracy due to the lower number of points required by the higher order methods. Briefly, the Richardson method requires the solving for a point with a smaller contour step and the merging the values to create a higher order result. For the propagator, treat _q_ <sup>_∗_</sup> ( _s_ ) as the true value at contour point ‘s’, and _q_ ( _s_ ; ∆ _s_ ) as the value at contour point ‘s’ obtained using a discrete contour step of ∆ _s_ . An Nth order accurate discretization is given by: _q_ ( _s_ ; ∆ _s_ ) = _q_ <sup>_∗_</sup> ( _s_ ) + _c_ (∆ _s_ ) <sup>_n_</sup> + _O_ ((∆ _s_ ) <sup>_n_</sup> <sup>+1</sup> ) (36) with c as a constant and _O_ ((∆ _s_ ) <sup>_n_</sup> <sup>+1</sup> ) denoting terms of order N+1 in ∆ _s_ . If we calculate a new value _q_ ( _s_ ; _h_ ∆ _s_ ) with _h <_ 1 we will get a value calculated with more contour points and thus more accuracy. Subtracting the results of the two equations to define a new value, we find that the Nth order error term has canceled out, leading to a value that that is accurate in order N+1: _q_ <sup>_RE_</sup> = _h_ <sup>_n_</sup> _q_ ( _s_ ; ∆ _s_ ) _−_ _q_ ( _s_ ; _h_ ∆ _s_ ) = _h_ <sup>_n_</sup> <sup>�</sup> _q_ <sup>_∗_</sup> ( _s_ ) + _c_ (∆ _s_ ) <sup>_n_</sup> + _O_ ((∆ _s_ ) <sup>_n_</sup> <sup>+1</sup> )� _−_ - _q_ <sup>_∗_</sup> ( _s_ ) + _c_ ( _h_ ∆ _s_ ) <sup>_n_</sup> + _O_ ((∆ _s_ ) <sup>_n_</sup> <sup>+1</sup> )� = ( _h_ <sup>_n_</sup> _−_ 1) _q_ <sup>_∗_</sup> ( _s_ ) + _O_ ((∆ _s_ ) <sup>_n_</sup> <sup>+1</sup> ) (37) Rearranging this gives an expression with the order N term removed: _<u>h</u>_ <sup>_n_</sup> _<u>q</u>_ <u>(</u> _<u>s</u>_ <u>; ∆</u> _<u>s</u>_ <u>)</u> _<u>−</u>_ _<u>q</u>_ <u>(</u> _<u>s</u>_ <u>;</u> _<u>h</u>_ <u>∆</u> _<u>s</u>_ <u>)</u> = _q_ <sup>_∗_</sup> ( _s_ ) + _O_ ((∆ _s_ ) <sup>_n_</sup> <sup>+1</sup> ) (38) _h_ <sup>_n_</sup> _−_ 1 This process can be repeated in stages to remove the N+1, N+2, ... order terms. Below we show the application of RE to the backward difference 2, 3, and 4 schemes as well as results with and without RE to illustrate the improvement. _7.1._ _Backward_ _Difference_ _2_ The BDF2 scheme is 2nd order accurate in contour and requires two previous contour points. In order to use BDF2 with a contour step of ∆ _s_ for the calculation of the propagator, we need to calculate the first point to 2nd order accuracy It should be noted that the second order accuracy can be achieved with a single point using the previously described Crank-Nicolson scheme. The use of RE can be avoided in the BDF2 scheme 18 by simply calculating the first point using Crank-Nicolson. Nevertheless, since it is the simplest example, we present the BDF2 scheme with the extrapolation performed using the first order accurate BDF1 (AKA Backward Euler) method. We choose h=0.5 and calculate the value of _q_ <sup>_BDF_</sup> <sup>1</sup> (∆ _s_ ; ∆ _s_ ) and _q_ <sup>_BDF_</sup> <sup>1</sup> (∆ _s_ ; 0 _._ 5∆ _s_ ) with the ‘BDF1’ subscript indicating that the values are calculated using the first order (n=1) BDF1 method. Then we use Eqn. 38 to calculate the _2nd_ _order_ _accurate_ value at _s_ = ∆ _s_ : _q_ <sup>_BDF_</sup> <sup>1</sup> <sup>_,RE_</sup> (∆ _s_ ; ∆ _s_ ) = 2 _∗_ _q_ <sup>_BDF_</sup> <sup>1</sup> (∆ _s_ ; 0 _._ 5∆ _s_ ) _−_ _q_ <sup>_BDF_</sup> <sup>1</sup> (∆ _s_ ; ∆ _s_ ) (39) In the above equations, the superscript ‘ _BDF_ 1 _, RE_ ’ denotes that the value is from BDF1 with Richardson Extrapolation performed once, yielding an extra order of accuracy. This value is now used as the first point in the propagator solution. All future values are calculated using the BDF2 scheme given in the main text. There is some overhead associated with this method. The _q_ <sup>_BDF_</sup> <sup>1</sup> (∆ _s_ ; ∆ _s_ ) term requires a single q calculation at _s_ = ∆ _s_ (which would be needed even without Richardson extrapolation). The _q_ <sup>_BDF_</sup> <sup>1</sup> (∆ _s_ ; 0 _._ 5∆ _s_ ) term requires two q calculations ( _s_ = 0 _._ 5∆ _s_ and _s_ = ∆ _s_ ) which are not otherwise required. So this method retains the 2nd order accuracy at the expense of two additional propagator solve per polymer block. _7.2._ _Backward_ _Difference_ _3_ The BDF3 scheme is 3rd order accurate in contour and requires three previous contour points. We present two options for using RE with BDF3. First, we can follow to approach used for BDF2, except with use of the Crank-Nicolson scheme. This requires only the first point to be determined using RE and following the same logic above (with n=2 in this case), gives the _3rd_ _order_ _accurate_ value at _s_ = ∆ _s_ : _q_ <sup>_CN,RE_</sup> (∆ _s_ ) = <sup><u>4</u></sup> <sup>_<u>∗</u>_</sup> <sup>_<u>qCN</u>_</sup> <sup><u>(∆</u></sup> <sup>_<u>s</u>_</sup> <sup><u>; 0</u></sup> <sup>_<u>.</u>_</sup> <sup><u>5∆</u></sup> <sup>_<u>s</u>_</sup> <sup><u>)</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>qCN</u>_</sup> <sup><u>(∆</u></sup> <sup>_<u>s</u>_</sup> <sup><u>; ∆</u></sup> <sup>_<u>s</u>_</sup> <sup><u>)</u></sup> (40) 3 Again this retains the higher order accuracy at the expense of two additional propagator solve per polymer block. Alternatively, we can apply RE twice by starting with Eqn. 39 to get the 2nd order accurate values _q_ <sup>_BDF_</sup> <sup>1</sup> <sup>_,RE_</sup> (∆ _s_ ; ∆ _s_ ), _q_ <sup>_BDF_</sup> <sup>1</sup> <sup>_,RE_</sup> (∆ _s_ ; 0 _._ 5∆ _s_ ), _q_ <sup>_BDF_</sup> <sup>1</sup> <sup>_,RE_</sup> (2∆ _s_ ; ∆ _s_ ), and _q_ <sup>_BDF_</sup> <sup>1</sup> <sup>_,RE_</sup> (2∆ _s_ ; 0 _._ 5∆ _s_ ). With those values, Eqn. 38 (with n=2) is used to obtain 3rd order accurate values at _s_ = ∆ _s_ and _s_ = 2∆ _s_ . The equations are given in Eqns. 41 to 46. The superscript ‘ _BDF_ 1 _, RE_ <sup>2</sup> ’ denotes that the value is from BDF1 with Richardson Extrapolation performed twice, yielding two extra orders of accuracy. This approach requires calculating _q_ ( _s_ = 2∆ _s_ ) for three contour steps: _q_ ( _s_ = 0 _._ 25∆ _s_ ), _q_ ( _s_ = 0 _._ 5∆ _s_ ), _q_ ( _s_ = ∆ _s_ ). The first requires eight q calculations, the second requires four, and the last requires the two q calculations (both of these would be preformed even if the extrapolation was not performed). This leads to a total of 12 extra values per block in order to get the full 3rd order accuracy. This is the same accuracy that came from Eqn. 40, but it requires six times as many additional evaluations _7.3._ _Backward_ _Difference_ _4_ The BDF4 scheme is 4th order accurate in contour and requires four previous contour points[27]. As with BDF3, there are multiple ways to approach using Richardson extrapolation. The approach we present uses the Crank-Nicolson values and the Richardson 19 extrapolated Crank-Nicolson values (Eqn. 40). This approach requires calculating q values out to _s_ = 3∆ _s_ for contour steps of 0 _._ 25∆ _s_, 0 _._ 5∆ _s_, and ∆ _s_ . This requires 18 extra q calculations per polymer block. The equations for this approach are given in Eqns. 47 to 55 BDF3 equations with Richardson extrapolation _q_ <sup>_BDF_</sup> <sup>1</sup> <sup>_,RE_</sup> (∆ _s_ ; 0 _._ 5∆ _s_ ) = 2 _∗_ _q_ <sup>_BDF_</sup> <sup>1</sup> (∆ _s_ ; 0 _._ 25∆ _s_ ) _−_ _q_ <sup>_BDF_</sup> <sup>1</sup> (∆ _s_ ; 0 _._ 5∆ _s_ ) (41) _q_ <sup>_BDF_</sup> <sup>1</sup> <sup>_,RE_</sup> (∆ _s_ ; ∆ _s_ ) = 2 _∗_ _q_ <sup>_BDF_</sup> <sup>1</sup> (∆ _s_ ; 0 _._ 5∆ _s_ ) _−_ _q_ <sup>_BDF_</sup> <sup>1</sup> (∆ _s_ ; ∆ _s_ ) (42) _q_ <sup>_BDF_</sup> <sup>1</sup> <sup>_,RE_</sup> (2∆ _s_ ; 0 _._ 5∆ _s_ ) = 2 _∗_ _q_ <sup>_BDF_</sup> <sup>1</sup> (2∆ _s_ ; 0 _._ 25∆ _s_ ) _−_ _q_ <sup>_BDF_</sup> <sup>1</sup> (2∆ _s_ ; 0 _._ 5∆ _s_ ) (43) _q_ <sup>_BDF_</sup> <sup>1</sup> <sup>_,RE_</sup> (2∆ _s_ ; ∆ _s_ ) = 2 _∗_ _q_ <sup>_BDF_</sup> <sup>1</sup> (2∆ _s_ ; 0 _._ 5∆ _s_ ) _−_ _q_ <sup>_BDF_</sup> <sup>1</sup> (2∆ _s_ ; ∆ _s_ ) (44) _q_ <sup>_BDF_</sup> <sup>1</sup> <sup>_,RE_</sup> <sup>2</sup> (∆ _s_ ) = <sup><u>4</u></sup> <sup>_<u>∗</u>_</sup> <sup>_<u>qBDF</u>_</sup> <sup>1</sup> <sup>_,RE_</sup> <sup><u>(∆</u></sup> <sup>_<u>s</u>_</sup> <sup><u>; 0</u></sup> <sup>_<u>.</u>_</sup> <sup><u>5∆</u></sup> <sup>_<u>s</u>_</sup> <sup><u>)</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>qBDF</u>_</sup> <sup>1</sup> <sup>_,RE_</sup> <sup><u>(∆</u></sup> <sup>_<u>s</u>_</sup> <sup><u>; ∆</u></sup> <sup>_<u>s</u>_</sup> <sup><u>)</u></sup> (45) 3 _q_ <sup>_BDF_</sup> <sup>1</sup> <sup>_,RE_</sup> <sup>2</sup> (2∆ _s_ ) = <sup><u>4</u></sup> <sup>_<u>∗</u>_</sup> <sup>_<u>qBDF</u>_</sup> <sup>1</sup> <sup>_,RE_</sup> <sup><u>(2∆</u></sup> <sup>_<u>s</u>_</sup> <sup><u>; 0</u></sup> <sup>_<u>.</u>_</sup> <sup><u>5∆</u></sup> <sup>_<u>s</u>_</sup> <sup><u>)</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>qBDF</u>_</sup> <sup>1</sup> <sup>_,RE_</sup> <sup><u>(2∆</u></sup> <sup>_<u>s</u>_</sup> <sup><u>; ∆</u></sup> <sup>_<u>s</u>_</sup> <sup><u>)</u></sup> (46) 3 BDF4 equations with Richardson extrapolation _q_ <sup>_CN,RE_</sup> (∆ _s_ ; 0 _._ 5∆ _s_ ) = <sup><u>4</u></sup> <sup>_<u>∗</u>_</sup> <sup>_<u>qCN</u>_</sup> <sup><u>(∆</u></sup> <sup>_<u>s</u>_</sup> <sup><u>; 0</u></sup> <sup>_<u>.</u>_</sup> <sup><u>25∆</u></sup> <sup>_<u>s</u>_</sup> <sup><u>)</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>qCN</u>_</sup> <sup><u>(∆</u></sup> <sup>_<u>s</u>_</sup> <sup><u>; 0</u></sup> <sup>_<u>.</u>_</sup> <sup><u>5∆</u></sup> <sup>_<u>s</u>_</sup> <sup><u>)</u></sup> (47) 3 _q_ <sup>_CN,RE_</sup> (∆ _s_ ; ∆ _s_ ) = <sup><u>4</u></sup> <sup>_<u>∗</u>_</sup> <sup>_<u>qCN</u>_</sup> <sup><u>(∆</u></sup> <sup>_<u>s</u>_</sup> <sup><u>; 0</u></sup> <sup>_<u>.</u>_</sup> <sup><u>5∆</u></sup> <sup>_<u>s</u>_</sup> <sup><u>)</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>qCN</u>_</sup> <sup><u>(∆</u></sup> <sup>_<u>s</u>_</sup> <sup><u>; ∆</u></sup> <sup>_<u>s</u>_</sup> <sup><u>)</u></sup> (48) 3 _q_ <sup>_CN,RE_</sup> (2∆ _s_ ; 0 _._ 5∆ _s_ ) = <sup><u>4</u></sup> <sup>_<u>∗</u>_</sup> <sup>_<u>qCN</u>_</sup> <sup><u>(2∆</u></sup> <sup>_<u>s</u>_</sup> <sup><u>; 0</u></sup> <sup>_<u>.</u>_</sup> <sup><u>25∆</u></sup> <sup>_<u>s</u>_</sup> <sup><u>)</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>qCN</u>_</sup> <sup><u>(2∆</u></sup> <sup>_<u>s</u>_</sup> <sup><u>; 0</u></sup> <sup>_<u>.</u>_</sup> <sup><u>5∆</u></sup> <sup>_<u>s</u>_</sup> <sup><u>)</u></sup> (49) 3 _q_ <sup>_CN,RE_</sup> (2∆ _s_ ; ∆ _s_ ) = <sup><u>4</u></sup> <sup>_<u>∗</u>_</sup> <sup>_<u>qCN</u>_</sup> <sup><u>(2∆</u></sup> <sup>_<u>s</u>_</sup> <sup><u>; 0</u></sup> <sup>_<u>.</u>_</sup> <sup><u>5∆</u></sup> <sup>_<u>s</u>_</sup> <sup><u>)</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>qCN</u>_</sup> <sup><u>(2∆</u></sup> <sup>_<u>s</u>_</sup> <sup><u>; ∆</u></sup> <sup>_<u>s</u>_</sup> <sup><u>)</u></sup> (50) 3 _q_ <sup>_CN,RE_</sup> (3∆ _s_ ; 0 _._ 5∆ _s_ ) = <sup><u>4</u></sup> <sup>_<u>∗</u>_</sup> <sup>_<u>qCN</u>_</sup> <sup><u>(3∆</u></sup> <sup>_<u>s</u>_</sup> <sup><u>; 0</u></sup> <sup>_<u>.</u>_</sup> <sup><u>25∆</u></sup> <sup>_<u>s</u>_</sup> <sup><u>)</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>qCN</u>_</sup> <sup><u>(3∆</u></sup> <sup>_<u>s</u>_</sup> <sup><u>; 0</u></sup> <sup>_<u>.</u>_</sup> <sup><u>5∆</u></sup> <sup>_<u>s</u>_</sup> <sup><u>)</u></sup> (51) 3 _q_ <sup>_CN,RE_</sup> (3∆ _s_ ; ∆ _s_ ) = <sup><u>4</u></sup> <sup>_<u>∗</u>_</sup> <sup>_<u>qCN</u>_</sup> <sup><u>(3∆</u></sup> <sup>_<u>s</u>_</sup> <sup><u>; 0</u></sup> <sup>_<u>.</u>_</sup> <sup><u>5∆</u></sup> <sup>_<u>s</u>_</sup> <sup><u>)</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>qCN</u>_</sup> <sup><u>(3∆</u></sup> <sup>_<u>s</u>_</sup> <sup><u>; ∆</u></sup> <sup>_<u>s</u>_</sup> <sup><u>)</u></sup> (52) 3 _q_ <sup>_CN,RE_</sup> <sup>2</sup> (∆ _s_ ) = <sup><u>8</u></sup> <sup>_<u>∗</u>_</sup> <sup>_<u>qCN,RE</u>_</sup> <sup><u>(∆</u></sup> <sup>_<u>s</u>_</sup> <sup><u>; 0</u></sup> <sup>_<u>.</u>_</sup> <sup><u>5∆</u></sup> <sup>_<u>s</u>_</sup> <sup><u>)</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>qCN,RE</u>_</sup> <sup><u>(∆</u></sup> <sup>_<u>s</u>_</sup> <sup><u>; ∆</u></sup> <sup>_<u>s</u>_</sup> <sup><u>)</u></sup> (53) 7 _q_ <sup>_CN,RE_</sup> <sup>2</sup> (2∆ _s_ ) = <sup><u>8</u></sup> <sup>_<u>∗</u>_</sup> <sup>_<u>qCN,RE</u>_</sup> <sup><u>(2∆</u></sup> <sup>_<u>s</u>_</sup> <sup><u>; 0</u></sup> <sup>_<u>.</u>_</sup> <sup><u>5∆</u></sup> <sup>_<u>s</u>_</sup> <sup><u>)</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>qCN,RE</u>_</sup> <sup><u>(2∆</u></sup> <sup>_<u>s</u>_</sup> <sup><u>; ∆</u></sup> <sup>_<u>s</u>_</sup> <sup><u>)</u></sup> (54) 7 _q_ <sup>_CN,RE_</sup> <sup>2</sup> (3∆ _s_ ) = <sup><u>8</u></sup> <sup>_<u>∗</u>_</sup> <sup>_<u>qCN,RE</u>_</sup> <sup><u>(3∆</u></sup> <sup>_<u>s</u>_</sup> <sup><u>; 0</u></sup> <sup>_<u>.</u>_</sup> <sup><u>5∆</u></sup> <sup>_<u>s</u>_</sup> <sup><u>)</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>qCN,RE</u>_</sup> <sup><u>(3∆</u></sup> <sup>_<u>s</u>_</sup> <sup><u>; ∆</u></sup> <sup>_<u>s</u>_</sup> <sup><u>)</u></sup> (55) 7 The final three equations give the 4th order accurate values for the first three contour points. The alternative method using BDF1 values is not presented here, but it requires 42 extra q evaluations instead of the 18 required starting with the Crank-Nicolson values. 20 Figure 12: Error in partition function resulting from using initial points with lower order accuracy. Single unit cell of gyroid phase at f=0.4 with 32 <sup>3</sup> elements and quadratic basis functions. _7.4._ _Results_ _with_ _Richardson_ _Extrapolation_ The benefit of this extra effort to ensure the initial points have the desired accuracy is a lower error for a given number of contour points. As before, we take the Q value of the spectral solution to be the true solution and using the error in Q as a measure of the solution accuracy. While it may seem that a single point, out of potentially hundreds, being slightly off may not make a large difference, the error is substantial. Figure 12 shows the error in Q with increasing contour points for the BDF2 method both with and without Richardson Extrapolation. The rate of convergence to the exact solution is similar in both cases. This is reasonable given that the order accuracy is the same for each curve except for the first value. However, the error is significantly higher without RE applied. It requires approximately twice as many points without RE to reach the given accuracy as it does with the extrapolation. Given that there are only two extra contour points required to apply RE to the BDF2 scheme, it is clear that RE is worth the computational effort and complexity. References [1] K. Do, D. M. Huang, R. Faller, and A. J. Moule, Phys. Chem. Chem. [Phys.](http://dx.doi.org/ 10.1039/C0CP00785D) 12, 14735 (2010). [2] H. Wang, B. Shentu, and R. Faller, Phys. Chem. Chem. [Phys.](http://dx.doi.org/10.1039/C4CP03392B) 17, 4714 (2015). [3] N. R. Tummala, C. Risko, C. Bruner, R. H. Dauskardt, [and J.-L. Brdas, Journal of Polymer Science](http://dx.doi.org/ 10.1002/polb.23722) Part B: Polymer [Physics](http://dx.doi.org/ 10.1002/polb.23722) 53, 934 (2015). [4] M. Doi and E. S.F., _The_ _Theory_ _of_ _Polymer_ _Dynamics._ (Oxford University Press, 1986). [5] D. M. Huang, A. J. Moule, [and R. Faller, Fluid Phase Equilibria](http://dx.doi.org/http://dx.doi.org/10.1016/j.fluid.2010.07.025) 302, 21 (2011), 12th International Conference on Properties and Phase Equilibria for Product and Process Design. [6] V. Sethuraman, B. H. Nguyen, and V. Ganesan, The Journal of [Chemical](http://dx.doi.org/http://dx.doi.org/10.1063/1.4904390) Physics 141, 244904 [(2014).](http://dx.doi.org/http://dx.doi.org/10.1063/1.4904390) [7] R. A. Mickiewicz, J. K. W. Yang, A. F. Hannon, Y.-S. Jung, A. Alexander-Katz, K. K. Berggren, and C. A. Ross, Macromolecules 43, 8290 (2010), [http://dx.doi.org/10.1021/ma101360f](http://arxiv.org/abs/http://dx.doi.org/10.1021/ma101360f) . 21 [8] S. T. Milner, T. A. Witten, and M. E. Cates, Macromolecules [21](http://dx.doi.org/10.1021/ma00186a051), 2610 (1988), [http://dx.doi.org/10.1021/ma00186a051](http://arxiv.org/abs/http://dx.doi.org/10.1021/ma00186a051) . [9] M. M¨uller, Phys. Rev. E [65](http://dx.doi.org/10.1103/PhysRevE.65.030802), 030802 (2002). [10] A. D. Price, S.-M. Hur, G. H. Fredrickson, A. L. Frischknecht, and D. L. Huber, [Macromolecules](http://dx.doi.org/10.1021/ma202542u) 45, [510](http://dx.doi.org/10.1021/ma202542u) (2012), [http://dx.doi.org/10.1021/ma202542u](http://arxiv.org/abs/http://dx.doi.org/10.1021/ma202542u) . [11] S.-M. Hur, A. L. Frischknecht, D. L. Huber, and G. H. Fredrickson, Soft Matter [7](http://dx.doi.org/10.1039/C1SM05747B), 8776 (2011). [12] X. Zhu, L. Wang, J. Lin, and L. Zhang, ACS Nano 4 [,](http://dx.doi.org/ 10.1021/nn101121n) 4979 (2010), pMID: 20722410, [http://dx.doi.org/10.1021/nn101121n](http://arxiv.org/abs/http://dx.doi.org/10.1021/nn101121n) . [13] R. B. Thompson, V. V. Ginzburg, M. W. Matsen, and A. C. Balazs, Science 292, 2469 (2001), [http://www.sciencemag.org/content/292/5526/2469.full.pdf](http://arxiv.org/abs/http://www.sciencemag.org/content/292/5526/2469.full.pdf) . [14] N. E. Jackson, K. L. Kohlstedt, B. M. Savoie, M. O. de la Cruz, G. C. Schatz, L. X. Chen, and M. A. Ratner, Journal of the American [Chemical](http://dx.doi.org/10.1021/jacs.5b00493) Society 137, 6254 (2015), pMID: 25920989, [http://dx.doi.org/10.1021/jacs.5b00493](http://arxiv.org/abs/http://dx.doi.org/10.1021/jacs.5b00493) . [15] T. Geisinger, M. Mller, and K. Binder, The Journal of Chemical Physics 111, 5241 (1999). [16] C. E. Sing, J. W. Zwanikken, and M. Olvera de la Cruz, Nat Mater [13](http://dx.doi.org/10.1038/nmat4001), 694 (2014). [17] C. E. Sing, J. W. Zwanikken, and M. O. de la Cruz, Phys. Rev. Lett. [111](http://dx.doi.org/10.1103/PhysRevLett.111.168303), 168303 (2013). [18] N. Laachi, T. Iwama, K. T. Delaney, D. Shykind, C. J. Weinheimer, [and G. H. Fredrickson, Journal](http://dx.doi.org/ 10.1002/polb.23630) of Polymer Science Part B: [Polymer](http://dx.doi.org/ 10.1002/polb.23630) Physics 53, 317 (2015). [19] M. W. Matsen and R. B. Thompson, The Journal of Chemical Physics 111, 7139 (1999). [20] M. W. Matsen, The Journal of Chemical Physics 113, 5539 (2000). [21] Z. Guo, G. Zhang, F. Qiu, H. Zhang, Y. Yang, and A.-C. Shi, Phys. Rev. Lett. [101](http://dx.doi.org/10.1103/PhysRevLett.101.028301), 028301 (2008). [22] Y. Xu, W. Li, F. Qiu, and Z. Lin, Nanoscale 6, 6844 (2014). [23] M. W. Matsen, Macromolecules 45, 2161 (2012), [http://dx.doi.org/10.1021/ma202782s](http://arxiv.org/abs/http://dx.doi.org/10.1021/ma202782s) . [24] J. R. Brown, S. W. Sides, and L. M. Hall, ACS Macro [Letters](http://dx.doi.org/10.1021/mz400546h) 2, 1105 (2013), [http://dx.doi.org/10.1021/mz400546h](http://arxiv.org/abs/http://dx.doi.org/10.1021/mz400546h) . [25] G. Fredrickson, _The_ _Equilibrium_ _Theory_ _[of](http://dx.doi.org/10.1093/acprof:oso/9780198567295.001.0001)_ _Inhomogeneous_ _Polymers_, International Series of Mono graphs on Physics (OUP Oxford, 2005). [26] K. . Rasmussen and G. Kalosakas, Journal of Polymer Science [Part](http://dx.doi.org/10.1002/polb.10238) B: Polymer Physics 40, 1777 [(2002).](http://dx.doi.org/10.1002/polb.10238) [27] . Eric W. Cochran, *, . Carlos J. Garcia-Cervera,, and . Glenn H. Fredrickson*,, [Macromolecules](http://dx.doi.org/10.1021/ma0527707) 39, [2449](http://dx.doi.org/10.1021/ma0527707) (2006), [http://dx.doi.org/10.1021/ma0527707](http://arxiv.org/abs/http://dx.doi.org/10.1021/ma0527707) . [28] A. Ranjan, J. Qin,, and D. C. Morse*, Macromolecules 41, 942 (2008), [http://dx.doi.org/10.1021/ma0714316](http://arxiv.org/abs/http://dx.doi.org/10.1021/ma0714316) . [29] G. Tzeremes, K. O. Rasmussen, T. Lookman, and A. Saxena, Phys. Rev. E [65](http://dx.doi.org/10.1103/PhysRevE.65.041806), 041806 (2002). [30] P. Stasiak and M. W. Matsen, The European Physical Journal E 34, 1 (2011). [31] D. J. Audus, K. T. Delaney, H. D. Ceniceros, and G. H. Fredrickson, [Macromolecules](http://dx.doi.org/10.1021/ma401804j) 46, 8383 [(2013),](http://dx.doi.org/10.1021/ma401804j) [http://dx.doi.org/10.1021/ma401804j](http://arxiv.org/abs/http://dx.doi.org/10.1021/ma401804j) . [32] L. F. Richardson, Philosophical Transactions of the [Royal](http://dx.doi.org/10.1098/rsta.1911.0009) Society of London A: Mathematical, Physical and Engineering Sciences 210, 307 (1911). [33] S. Balay, S. Abhyankar, M. F. Adams, J. Brown, P. Brune, K. Buschelman, L. Dalcin, V. Eijkhout, W. D. Gropp, D. Kaushik, M. G. Knepley, L. C. McInnes, K. Rupp, B. F. Smith, S. Zampini, and H. Zhang, “PETSc [Web](http://www.mcs.anl.gov/petsc) page,” `[http://www.mcs.anl.gov/petsc](http://www.mcs.anl.gov/petsc)` (2015). [34] S. Balay, S. Abhyankar, M. F. Adams, J. Brown, P. Brune, K. Buschelman, L. Dalcin, V. Eijkhout, W. D. Gropp, D. Kaushik, M. G. Knepley, L. C. McInnes, K. Rupp, B. F. Smith, S. Zampini, and H. Zhang, “PETSc [users](http://www.mcs.anl.gov/petsc) manual,” Tech. Rep. ANL-95/11 - Revision 3.6 (Argonne National Laboratory, 2015). [35] S. Balay, W. D. Gropp, L. C. McInnes, and B. F. Smith, in _Modern_ _Software_ _Tools_ _in_ _Scientific_ _Computing_, edited by E. Arge, A. M. Bruaset, and H. P. Langtangen (Birkh¨auser Press, 1997) pp. 163–202. [36] [G. Karypis and K. Schloegel, “ParMETIS Web page,”](http://glaros.dtc.umn.edu/gkhome/metis/parmetis/overview) `[http://glaros.dtc.umn.edu/gkhome/metis/](http://glaros.dtc.umn.edu/gkhome/metis/parmetis/overview)` `[parmetis/overview](http://glaros.dtc.umn.edu/gkhome/metis/parmetis/overview)` (2013). [37] B. Bode, M. Butler, T. Dunning, W. Gropp, T. Hoefler, W. mei Hwu, and W. Kramer, _The_ _Blue_ _Waters_ _[Super-System](http://dx.doi.org/10.1201/b14677-16)_ _for_ _Super-Science_, edited by J. Vetter, Contemporary HPC Architectures (Chapman and Hall/CRC, 2012) pp. 339–366. 22

섹션 본문 66문단 · 34,173자

(제목 없음)

1Self-consistent field theory (SCFT) has proven to be a powerful tool for modeling equilibrium microstructures of soft materials, particularly for multiblock polymers. A very successful approach to numerically solving the SCFT set of equations is based on using a spectral approach. While widely successful, this approach has limitations especially in the context of current technologically relevant applications. These limitations include non-trivial approaches for modeling complex geometries, difficulties in extending to nonperiodic domains, as well as non-trivial extensions for spatial adaptivity. As a viable alternative to spectral schemes, we develop a finite element formulation of the SCFT paradigm for calculating equilibrium polymer morphologies. We discuss the formulation and address implementation challenges that ensure accuracy and efficiency. We explore higher order chain contour steppers that are efficiently implemented with Richardson Extrapolation. This approach is highly scalable and suitable for systems with arbitrary shapes. We show spatial and temporal convergence and illustrate scaling on up to 2048 cores. Finally, we illustrate confinement effects for selected complex geometries. This has implications for materials design for nanoscale applications where dimensions are such that equilibrium morphologies dramatically differ from the bulk phases.

Introduction

2The morphology of multiblock polymers has been of interest for many years due to potential applications that depend on tailored microstructure. Numerical simulation can allow study of systems that are outside the limited analytically solvable cases. However, simulation of equilibrium multiblock polymer microstructures requires significant computational resources. A fully atomistic approach treating every atom in the system individually [1,2,3] is impractical due to the large number of atoms comprising even a single unit cell of a microstructure and prohibitive relaxation times for both bulk materials and nonperiodic, complex geometries. The computational cost for even a small system is high enough to render this unsuitable as a general tool. Instead, a coarse-graining approach using an abstracted beadspring model (see figure 1b) as a substitute for the full molecular structure (see figure 1a) is an often used [4,5,6] alternative. In this method, each 'bead' is actually multiple monomer units with individual beads interacting via carefully designed local and nonlocal potentials. Despite the abstraction, this approach is generally successful at retaining the physics of chain behavior on length scales beyond a nanometer. While this is far less demanding than a fully atomistic model, it is still a computationally intensive approach for calculating equilibrium microstructures especially for larger and more complex geometries. A more attractive, continuum approach is the self-consistent field theory (SCFT) method. SCFT is a mean field theory that starts with the coarse grained chain and interaction models used in particle methods, but transforms the partition function into a field-theoretic framework.

3We consider the popularly used model of the continuous Gaussian chain [4] which is well suited for flexible polymers. This model is based on a linearly elastic chain where the chain stretching is governed by a harmonic potential. Chain segments interact via pair potentials that are usually assumed to be attractive or repulsive contact interactions (delta functions). The relevant partition function integral is re-expressed using Hubbard-Statonovich transforms into an integral over auxiliary fields, and is taken to be dominated by a single set of fields (the mean-field approximation). The procedure is then to solve for these mean fields, which is done iteratively, to obtain the equilibrium field values and with them, the microstructure of the system. This approach has been used in a wide variety of systems and applications including lithography [7], polymer brushes [8,9,10], self assembly [11,12], polymer nanocomposites [13], organic electronics [14], and thin films [15]. Several recent advances include the use of SCFT in a hybrid SCFT-liquid state theory using charged polymers [16,17]. The addition of electrostatics leads to previously unseen structures with promising potential for energy storage applications due to favorable mechanical and electrical properties [16]. SCFT has also been used to study the directed self-assembly approach to lithography [18]. In this work, SCFT simulations were used to identify confining template geometries and polymer formulations that can achieve 10 nm scale patterns targeted by the microelectronics industry, along with acceptable defect levels. Although much SCFT work has been done using linear AB diblock chains, the method is not limited to those systems. Multiblock polymers [19,20,21], star and branched polymers [22,23], and tapered diblock polymers [24] have been studied as well. In the last case, the taper is block of mixed A and B monomers with the ratio changing along the length of the chain. The addition of the tapered block was found to change the phase behavior of the system, leading to a wider range of stability of the bicontinuous phase.

4Spectral methods have been the predominant tool for solving SCFT problems. The approach is efficient, and has high spatial accuracy. This makes it an excellent choice for many applications. However, there are applications where the frequency-domain approach (of spectral, and quasi-spectral methods) has limitations; which encourages consideration of alternate real space approaches, like the finite element (FE) method. First is the ease of handing complex geometries. While a purely spectral model requires masking techniques for complex geometries, real space methods require no addition actions. Second, real space methods are not limited to periodic systems and naturally allow the use of heterogeneous and mixed boundary conditions. Finally, real space methods allow local mesh adaptation to selectively increase the resolution in a targeted position without requiring increased computational effort over the entire system. This restriction on spectral methods is partially alleviated by use of Chebyshev or other localized bases. Finite Element approaches, in particular, can incorporate rigorous a posteriori error estimates (due to the variational treatment) for mesh adaptivity that enable substantial computational gains. Furthermore, there is a substantial push to design solvers and frameworks (like FASTMath) for real space approaches that are suitable for deployment on next generation exa scale computers. Motivated by these factors, we develop a real space formulation of the SCFT problem using the finite element method. The implementation is discussed in detail along with example results and a detailed study of the accuracy of implementation. Our contribution in this paper include: (a) formulating the SCFT problem in real space using a finite element based variational form, (b) exploring and implementing various high order contour stepping methods, (c) incorporating Richardson extrapolation for multiblock systems, (d) software engineering informed efficient implementation, and (e) illustrative examples (complex geometry, nonperiodic domains, scalability studies) of the implementation highlighting the strengths of the method. The key factors affecting the accuracy of the results are discussed in detail.

5The SCFT approach has been covered in great detail elsewhere [25], but we will review the key points before discussing the finite element implementation. Broadly, the SCFT approach is a mean field theory where the partition function is dominated by the mean field values of W (r). The task then becomes finding the value of the mean fields such that:

6where H is the Hamiltonian of the system and W * are the mean field values. The system considered here is a melt of AB diblock copolymer chains of uniform length. Extension to multiblock copolymers is straight-forward. The chains (see figure 1c) are treated as a continuous space curve with each point along the curve having a contour position s, describing where it is along the length of the chain, and a spatial position r. The first part of the chain is a block of type A and the second part is a block of type B. The crossover point is at s=f (0 < f < 1) with the total length normalized to 1. Many potentials exist for polymer interactions. While the treatment is agnostic to the specific form of interaction, we illustrate the framework using the widely used Flory-Huggins model of interaction. In the Flory-Huggins model, A and B blocks have a repulsive interaction given by χN , the product of the segmental interaction parameter χ and the chain length N. Individual points along the chain are not tracked directly, instead points along the chain are described by a chain propagator q(s, r) which describes the probability of a segment of chain at position s along the contour being located at position r in space.

7The equation for the propagator takes the form of a modified diffusion equation [25] (see Eqn. 8). Solving this equation yields the propagator values needed to calculate the chain densities and from those, the potential fields. Section 2 presents a brief overview of the numerical description of the SCFT method. Following that, section 3 is a detailed treatment of the finite element formulation of the polymer chain propagator. Section 4 discusses the implementation details. Results and analysis of the performance are presented in section 5. We conclude in section 6.

Self Consistent Field Theory Equations

8For the diblock system described above, the Hamiltonian of the system is given by:

9where V is the volume of the system, ρ A and ρ B are the reduced density fields of the A and B segments, W A and W B are the local potential fields for the A and B segments, and Q is the partition function of the system. Treating the system as incompressible (ρ A + ρ B = 1) via a Lagrange multiplier gives H = H + drλ(ρ A + ρ B − 1). Applying Eqn. 1 for the five fields (ρ A , ρ B , W A , W B , and λ) leads to the well known SCFT equations:

10Finding the mean field state is done through an iterative process. The overall sequence of the solution, as illustrated in figure 2, consists of five main steps: initial field generation, propagator calculation, partition function calculation, density calculation, and field recalculation. This approach is equivalent to solving a fixed point problem for the field: W = F(W ).

Initial Field Generation

11The chain propagator equation is dependent on the potential fields, W A and W B . In order to start the process, these must have starting values. If the starting values are uniform, the gradient term in the modified diffusion equation goes to zero, leaving no driving force for the formation of a microstructure. To prevent this, there must be some spatial inhomogeneity in the initial values. Typically this is achieved by choosing random initial values at each point in the system. The exact values do not matter although a magnitude that is too high will cause instability. Typically, values in the range [-1,1] are sufficient. The remaining fields are (ρ A , ρ B , and λ) are calculated from the potential fields and do not need initial values.

Propagator Calculation

12Using the field values, the polymer chains are created as described by a propagator equation. There are two chain propagators: the forward propagator, q(r, s; [W A , W B ]) and the complimentary propagator q c (r, s; [W A , W B ]). For notational convenience, the dependence on fields W A and W B is omitted below. The forward propagator, q, builds the chain from one end, starting at s=0 and moving to s=1:

13where b(s) is the statistical segment length. Note that s was scaled to a range of [0, 1] and a factor of N is absorbed in W.

14In the diblock case the field, W (r, s), and the segment length, b(s), are dependent on the position along the chain:

15where b A and b B are the field and statistical segment values for blocks A and B. The complimentary propagator, q c , starts from s=1 and moves backwards to s=0:

16The fields and segment lengths for this propagator are given by:

17For both propagators, the initial condition at s=0 is:

Partition Function Calculation

18Once the propagator is computed, a partition function value is calculated:

19This can equivalently be defined from the complimentary propagator:

Density Calculation

20Using this partition function and the propagator values along the chain, the segment densities at position r are given by:

Field Recalculation

21With the densities at each point known, the new potential fields are calculated using SCFT Eqns. 3 -5. Solving Eqns. 3 and 4 for ρ A and ρ B and applying Eqn. 5 gives λ for each node point (with superscripts denoting which iteration the values are taken from):

22The target fields for iteration n are then

23The new field values for this iteration are set using a simple mixing scheme:

24where α is an under relaxation factor (α ≤ 1). These values will differ from the previous values if the system is not in a stationary state. The degree of difference is an indication of convergence to the correct solution. A threshold value is used to decide when the system is converged. If the error is less than the threshold the system is considered converged.

25If it is greater, the process is started again from step 2 calculating the propagator using the new fields. This cycle continues until the fields are consistent with the calculated structure.

Propagator formulation

26Since the propagator is the most computationally demanding part of the solution process, we discuss the implementation in detail. This section presents the solution of the propagator using finite elements. It gives the weak form and matrix form of the propagator equation (Eqn. 8). Following that, several methods of discretizing the contour derivative are presented using a typical contour stepping solving scheme.

Variational Form

27Consider a domain Ω, with boundary Γ g on which Eqn. 8 is to be solved. Let V = V(Ω) denote both the trial and test function spaces. The variational formulation, i.e. weak form, is stated as following:

28Find q ∈ V such that for ∀w ∈ V:

29G is defined from Eqn. 8 as N [b(s)] 2 /6, and (., .) is the inner product over the domain Ω. Defining the bilinear form as a(u, v) ≡ Ω ∇u∇vdΩ gives the weak form of the propagator equation:

Semi-discrete Matrix Form

30We then consider a triangulation, T h , of the domain Ω. T consists of a set of (finite) elements Ω i , of size h, such that ∪Ω i = Ω and ∩Ω i = ∅. We consider an approximation of the weak form on the triangulation and approximate space, V h ⊂ H h (Ω). The problem is now to find q h ∈ V h with the above boundary condition, such that

31We associate a standard set of basis functions with each element Ω i . Thus, q is expanded in terms of the basis functions {N A } n b A=1 , where n b is the number of basis functions. The problem now becomes one of finding the nodal values of the unknown quantity, q, over the triangulation. This form is simplified by writing q and w in terms of their nodal values and the basis functions. Recall that we denote the inner product over the element as (f, g). The various terms in the Eqn. 26 can be written in terms of the two matrices M AB = (N A , N B ) and K AB = G × a(N A , N B ) and (unknown) vector q B = q B to get the semi-discrete matrix form:

Discrete Form

32The matrix form above is still continuous in the contour variable. There are numerous possible ways to discretize the contour. The primary difference between methods is the order of accuracy. A higher order of accuracy is desired because it allows the use of large ∆s corresponding to fewer evaluations of q for a given length of the chain. Since the propagator requires the major computational effort, reducing the number of propagator evaluations is a highly effective way to improve performance. Mulitple numeric schemes have been proposed [26,27,28,29] and there have been several comparisons for pseudospectral algorithms [30,31]. To study the finite element method we choose five different discretization schemes: Backward Euler (BE); Crank-Nicolson (CN); and the backward differentiation formulas 2, 3, and 4 (BDF2, BDF3, and BDF4). All methods require splitting the equation into a finite number of steps with a spacing of ∆s. The BE is 1st order accurate in s, CN and BDF2 are 2nd order accurate, BDF3 is 3rd order, and BDF4 is 4th order.

Backward Euler

33The backward Euler approximation for a function of the form ∂q/∂s = f is:

34where the superscript denotes the contour step. This is the simplest discretization and applying it to Eqn. 27 gives:

35M q n + ∆sKq n + ∆sM W (r)q n = M q n−1 (29) for n from 1 to the number of contour points. This equation is solved first by using the initial condition (Eqn. 14) and the field values to solve for the values of q 1 across the entire system. This value is then used to find q 2 , and so on until the propagator values for the entire chain have been calculated. 8

Crank-Nicolson

36The Crank-Nicolson approximation for a function of the form ∂q/∂s = f is:

37where the superscript denotes the contour step. Following the same procedure given for the BE case, the matrix form is

38for n from 1 to the number of contour points. As before the initial condition is q 0 = 1 and the values along the chain are solved sequentially.

Backward Difference 2, 3, and 4

39The backward difference formulas 2, 3, and 4 all follow a similar format. The number indicates both the order of accuracy in contour step and the number of previous contour terms required for the formulation. The need for more than one previous contour point creates a complication not present with the BE and CN methods. Points at the beginning of the discretized chain may not have a sufficient number of previous points to utilize these methods. This 'startup problem' is not unique to the BDF methods; It applies to all schemes requiring more than one previous point. A convenient approach to solving this is the use of Richardson Extrapolation [32,28]. Application of Richardson Extrapolation for BDF2, BDF3, and BDF4 is given in detail in the appendix. The BDF equations are given below:

40The equation for BDF2 is:

41The equation for BDF3 is:

42M q n + 6 11 ∆sKq n + 6 11 ∆sM W (r)q n = 18 11 M q n−1 − 9 11 M q n−2 + 2 11 M q n−3 (33)

43The equation for BDF4 [27] is:

Finite Element Implementation

44The finite element approach is implemented with a focus on the primary advantages of this method over the spectral approach. The primary goal is an efficient solution of large problems and those with irregular shapes or within confinement. Support for 9 arbitrary shapes is inherent in the finite element method. Large problems are efficiently handled through a highly parallel implementation. To enable solving of large and complex domains, we use a parallel in-house FEM library built upon the PETSc library [33,34,35]. The library handles the finite element backend details and the application code implements the actual SCFT science. PETSc routines are used for the solving of the system described above. By default, solving is done using the generalized minimal residual method. Arbitrary meshes are supported and parallel domain decomposition of meshes is performed using ParMETIS [36]. This implementation supports multiple options for boundary conditions. Periodic, Neumann, and Dirichlet conditions are all easily supported through the FEM library. Both uniform and mixed, non-homogeneous boundary conditions can be applied.

Spatial Discretization

45The accuracy of the solution has two primary components -a component from the accuracy of the contour discretization of the chain, and a component from the accuracy of the spatial discretization. The choice of the number of contour points and the selection of a contour discretization scheme allow control of the accuracy in contour. These considerations are similar for both the spectral and real space approaches. A primary disadvantage of the real space approach is that it lacks spectral accuracy in space. Spatial accuracy in the finite element method is controlled by both the number of spatial elements and the order of the basis functions used. The number of elements used can be increased, typically without significant difficulty regardless of the choice of structure. An alternate approach of increasing the basis function order utilizes the same formulation given above. 1 Under reasonable bounded and smoothness assumptions on W , one can prove convergence estimates for the solution in terms of the triangulation (element length, h), the order of the basis function β and the order of the contour stepper used α as

46where u h ∆s is the computed solution, u e is the true solution, and c 1 and c 2 are constants.

Results

47We first investigate the accuracy of the model with variations in spatial and contour discretization. We also show several results on non-uniform meshes, which illustrates one of the strengths of this formulation.

Comparison of Discretizations

48To better understand the discretizations described above, we explore the discretization in both space and contour. In order to compare values, we need a metric for accuracy that can be readily compared across different calculations. We use the value of the partition function, Q, as the metric of accuracy of the solver. Since it is an integration of the end result of the propagator solve, it is a measure of the entire finite element solution process. As a basis for comparison, we use a cubic system with an edge length of 8.82 times the polymer radius of gyration (R g ). The diblock chain is 40% A and 60% B (which corresponds to an A block fraction, f, of 0.4) with an interaction parameter of χN = 14.4. This corresponds to a 3D gyroid phase of the diblock polymer (see figure 3). In this case, b A = b B , making the A and B blocks indistinguishable. The spectrally determined Q value is 5.32583.

49First, we look at the contour discretization. The computational time required for a solution scales linearly with the number of contour points. Thus the goal is to have the fewest number of contour points necessary for the desired accuracy. Multiple discretization methods were given in section 3. The primary difference among these methods is the order of accuracy. Figure 4(a) shows the convergence of Q for the five discretization methods discussed above. As expected, the higher order methods converge faster to the desired value. The simplest backward Euler(BE) approach shows very poor convergence and is mostly unsuitable for use, while the BDF3 method rapidly converges. Since the propagator solving is the rate limiting step in this problem, it is worth the extra complexity of a higher method in order to reduce the number of contour points. Figure 4(b) shows the percent error for each method at selected numbers of contour points. The convergence of different methods is readily seen. Arbitrarily selected accuracies of 1%, 0.1%, and 0.01% are noted on the plot and shown in table 1. For the coarsest tolerance of 1%, the BE method requires 540 contour points, while the BDF2 method requires only 26. If we take the cost of calculation per contour point to be the same across each method (it is within 15%), the BDF2 calculation will be over 20 times faster than the BE method in achieving a result within 1% accuracy. The BDF3 method is twice as fast as the BDF2 method in achieving 1% error. The difference is even more pronounced at the 0.01% accuracy, where the BDF3 method is four times faster than the BDF2 method.

50Second, the spatial discretization is addressed. As mentioned previously, the lack of spectral accuracy makes the order of the basis function important for the accuracy of a give spatial discretization. Both first and second order basis functions were used. Higher order, and even spectral basis functions can potentially be used. Figure 5 shows the resulting Q values for linear and quadratic basis functions using the BDF3 contour Table 1. steppers. These calculations were done for a range of cubic systems with the given number of elements. For all calculations, 150 contour points were used. Based on the results of the contour testing, this is sufficient to lead to a converged state, so any error in these results is due to the spatial discretization. It can be clearly seen that the quadratic basis functions are more accurate for a given number of elements and the results converge faster with additional elements, as expected.

Arbitrary Domain Shapes

51A key advantage of the finite element implementation is the ability to model arbitrary geometries with no changes. This allows the calculation of structure on physically meaningful domains rather than just a bulk structure. Applications of non-bulk shapes include thin fibers where the cross section is small enough that the bulk phase does not form, nanoparticles with dimensions below the bulk lattice spacing, and the previously mentioned directed self-assembly for lithography. It also allows investigation of the effects of confinement on the structures adopted by the chains. Figures 6 -9 shows results of several shapes in both 2D and 3D (parameters are listed in the caption). In the images, the blue regions are areas of high A block concentration and the red regions are areas of high B block concentration. The top row of images differs from the bottom by the size of the mesh. As can be seen in the annulus case, the structure adopted can be dependent on the system size due to confinement effects.

Scaling with Number of Processors

52Another key advantage of the finite element approach is the ability to run very large problems on multiple processors with high efficiency. For most periodic systems or unit cell calculations, this is not an important consideration. However, for complex geometries or more complicated chain models, efficient scaling allows modeling large systems. The benefit comes from the near linear scaling of the finite element approach. This allows running problems on a wide range of system sizes. Figure 10 shows scaling results up to 2048 cores using this model on a diblock polymer system. These results were generated on the Blue Waters system [37].

Conclusion

53The finite element method discussed in this paper is an alternative to the standard spectral and pseudo-spectral methods for self-consistent field theory calculations. The use of this alternate approach has advantages when considering large problems with nonperiodic geometries. We have discussed details of the implementation relevant to the accurate simulation of block copolymer systems. Use of a finite element method for SCFT allows easy calculation of self-assembled structures in complex geometries. This has 13 implications for the study of thin film and other confined systems beyond a simple bulk melt. The scalability of the approach allows larger structures to be calculated, enabling simulation of physically relevant sizes. While our focus is on the common diblock case, the method can be applied to multiblock polymers with an arbitrary number of blocks and non-linear architectures. Beyond the benefits shown here, the SCFT approach also has potential application to chain models other than the Gaussian chain, which are becoming of more interest as the power of computational resources expand.

54Acknowledgments DMA and BG were partially supported by NSF 1435587. KTD and GHF were partially supported by the National Science Foundation grants DMR-1332842 and DMR-1506008.

Appendix: Richardson Extrapolation

55The contour discretization described in 3 is used to discretize the propagator equation in the contour variable. Higher order schemes are desirable because they yield greater accuracy for a given number of discrete points. As mentioned previously, a problem arises with higher order discretization schemes which require more that a single previous contour point. At the start of the chain, only one point -the initial condition -is available. Any method that requires more than one previous point will not have enough previous points to use in the calculation of the early contour points. Similarly, at the second point, only two points are available -the initial condition and the first point. For the propagator equation of diblock chains, this startup problem is also an issue in the switch from one block to another. In this case, there may be enough previous points to use the discretization scheme, however the previous points were created under the effect of different fields so it is physically incorrect to use them as part of the new block. Fig. 11 illustrates this problem schematically for the Backward Difference 3 (BDF3) method, which is 3rd order accurate but requires three previous contour points.

56The most obvious solution to this startup problem is to simply use a lower order scheme for the first point(s) where there are insufficient points for the higher order method. In Fig. 11, for example, it would be possible to calculate point 2 using a 1st order accurate Backward Difference 1 (BDF1) method and then calculate point 3 using a 2nd order accurate Backward Difference 2 (BDF2) method. All remaining points would be calculated using the 3rd order BDF3 method. This is appealing in its simplicity, however it leads to poor results as the errors in the beginning of the chain propagate along the entire length. In effect, the use of higher order methods later in the chain only serves to preserve the error created in the first point. An alternative method is the use of Richardson Extrapolation (RE) [32,28] for the early points. This method uses solutions from smaller contour steps to build up the accuracy of the early points to match the higher order desired. Once the early points have been calculated using the RE method, later points are computed using the higher order method as normal. Through use of this method, it is possible to preserve the higher order accuracy. Although this method requires greater computational expense for the first points, it can still result in lower overall cost for a given accuracy due to the lower number of points required by the higher order methods.

57Briefly, the Richardson method requires the solving for a point with a smaller contour step and the merging the values to create a higher order result. For the propagator, treat q * (s) as the true value at contour point 's', and q(s; ∆s) as the value at contour point 's' obtained using a discrete contour step of ∆s. An Nth order accurate discretization is given by:

58with c as a constant and O((∆s) n+1 ) denoting terms of order N+1 in ∆s. If we calculate a new value q(s; h∆s) with h < 1 we will get a value calculated with more contour points and thus more accuracy. Subtracting the results of the two equations to define a new value, we find that the Nth order error term has canceled out, leading to a value that that is accurate in order N+1:

59Rearranging this gives an expression with the order N term removed:

60h n q(s; ∆s) − q(s; h∆s)

61This process can be repeated in stages to remove the N+1, N+2, ... order terms. Below we show the application of RE to the backward difference 2, 3, and 4 schemes as well as results with and without RE to illustrate the improvement.

Backward Difference 2

62The BDF2 scheme is 2nd order accurate in contour and requires two previous contour points. In order to use BDF2 with a contour step of ∆s for the calculation of the propagator, we need to calculate the first point to 2nd order accuracy It should be noted that the second order accuracy can be achieved with a single point using the previously described Crank-Nicolson scheme. The use of RE can be avoided in the BDF2 scheme 18 by simply calculating the first point using Crank-Nicolson. Nevertheless, since it is the simplest example, we present the BDF2 scheme with the extrapolation performed using the first order accurate BDF1 (AKA Backward Euler) method. We choose h=0.5 and calculate the value of q BDF 1 (∆s; ∆s) and q BDF 1 (∆s; 0.5∆s) with the 'BDF1' subscript indicating that the values are calculated using the first order (n=1) BDF1 method. Then we use Eqn. 38 to calculate the 2nd order accurate value at s = ∆s:

63q BDF 1,RE (∆s; ∆s) = 2 * q BDF 1 (∆s; 0.5∆s) − q BDF 1 (∆s; ∆s) (39)

64In the above equations, the superscript 'BDF 1, RE' denotes that the value is from BDF1 with Richardson Extrapolation performed once, yielding an extra order of accuracy. This value is now used as the first point in the propagator solution. All future values are calculated using the BDF2 scheme given in the main text. There is some overhead associated with this method. The q BDF 1 (∆s; ∆s) term requires a single q calculation at s = ∆s (which would be needed even without Richardson extrapolation). The q BDF 1 (∆s; 0.5∆s) term requires two q calculations (s = 0.5∆s and s = ∆s) which are not otherwise required. So this method retains the 2nd order accuracy at the expense of two additional propagator solve per polymer block.

Backward Difference 3

65The BDF3 scheme is 3rd order accurate in contour and requires three previous contour points. We present two options for using RE with BDF3. First, we can follow to approach used for BDF2, except with use of the Crank-Nicolson scheme. This requires only the first point to be determined using RE and following the same logic above (with n=2 in this case), gives the 3rd order accurate value at s = ∆s: Figure 12: Error in partition function resulting from using initial points with lower order accuracy. Single unit cell of gyroid phase at f=0.4 with 32 3 elements and quadratic basis functions.

Results with Richardson Extrapolation

66The benefit of this extra effort to ensure the initial points have the desired accuracy is a lower error for a given number of contour points. As before, we take the Q value of the spectral solution to be the true solution and using the error in Q as a measure of the solution accuracy. While it may seem that a single point, out of potentially hundreds, being slightly off may not make a large difference, the error is substantial. Figure 12 shows the error in Q with increasing contour points for the BDF2 method both with and without Richardson Extrapolation. The rate of convergence to the exact solution is similar in both cases. This is reasonable given that the order accuracy is the same for each curve except for the first value. However, the error is significantly higher without RE applied. It requires approximately twice as many points without RE to reach the given accuracy as it does with the extrapolation. Given that there are only two extra contour points required to apply RE to the BDF2 scheme, it is clear that RE is worth the computational effort and complexity.

참고문헌 38건

  1. An introduction to the finite element method Cambridge University Press eBooks · Cambridge University Press · 2005 10.1017/cbo9780511611575.011
  2. The Finite Element Method: Linear Static and Dynamic Finite Element Analysis 1987
  3. The theory of polymer dynamics Oxford University Press eBooks · Oxford University Press · 1986
  4. Effect of Architecture on the Phase Behavior of AB-Type Block Copolymer Melts Macromolecules · American Chemical Society · 2012 10.1021/ma202782s
  5. Coarse-graining in simulations of multicomponent polymer systems The Journal of Chemical Physics · American Institute of Physics · 2014 10.1063/1.4904390
  6. A comparative MD study of the local structure of polymer semiconductors P3HT and PBTTT Physical Chemistry Chemical Physics · Royal Society of Chemistry · 2010 10.1039/c0cp00785d
  7. Directed self‐assembly of linear arrays of block copolymer cylinders Journal of Polymer Science Part B Polymer Physics · Wiley · 2014 10.1002/polb.23630
  8. Symmetric diblock copolymers in thin films. I. Phase stability in self-consistent field calculations and Monte Carlo simulations The Journal of Chemical Physics · American Institute of Physics · 1999 10.1063/1.479778
  9. Stability of the Gyroid Phase in Diblock Copolymers at Strong Segregation Macromolecules · American Chemical Society · 2006 10.1021/ma0527707
  10. Self-consistent field simulations of self- and directed-assembly in a mixed polymer brush Soft Matter · Royal Society of Chemistry · 2011 10.1039/c1sm05747b
  11. Efficiency of pseudo-spectral algorithms with Anderson mixing for the SCFT of periodic block-copolymer phases The European Physical Journal E · Springer Science+Business Media · 2011 10.1140/epje/i2011-11110-0
  12. Characterization of polymer–fullerene mixtures for organic photovoltaics by systematically coarse-grained molecular simulations Fluid Phase Equilibria · Elsevier BV · 2010 10.1016/j.fluid.2010.07.025
  13. Molecular dynamics of different polymer blends containing poly(2,6-dimethyl-1,4-phenylene ether) Physical Chemistry Chemical Physics · Royal Society of Chemistry · 2015 10.1039/c4cp03392b
  14. Phase diagram of a mixed polymer brush Physical review. E, Statistical physics, plasmas, fluids, and related interdisciplinary topics · American Physical Society · 2002 10.1103/physreve.65.030802
  15. Introduction to the Finite Element Method Cambridge University Press eBooks · Cambridge University Press · 2021 10.1017/9781108683982.002
  16. Discovering Ordered Phases of Block Copolymers: New Results from a Generic Fourier-Space Approach Physical Review Letters · American Physical Society · 2008 10.1103/physrevlett.101.028301
  17. Improved numerical algorithm for exploring block copolymer mesophases Journal of Polymer Science Part B Polymer Physics · Wiley · 2002 10.1002/polb.10238
  18. Equilibrium behavior of symmetric ABA triblock copolymer melts The Journal of Chemical Physics · American Institute of Physics · 1999 10.1063/1.480006
  19. Predicting the Mesophases of Copolymer-Nanoparticle Composites Science · American Association for the Advancement of Science · 2001 10.1126/science.1060585
  20. Theory of the grafted polymer brush Macromolecules · American Chemical Society · 1988 10.1021/ma00186a051
  21. Electrostatic control of block copolymer morphology Nature Materials · Nature Portfolio · 2014 10.1038/nmat4001
  22. Entanglements in <scp>P3HT</scp> and their influence on thin‐film mechanical properties: Insights from molecular dynamics simulations Journal of Polymer Science Part B Polymer Physics · Wiley · 2015 10.1002/polb.23722
  23. Enhancing the Potential of Block Copolymer Lithography with Polymer Self-Consistent Field Theory Simulations Macromolecules · American Chemical Society · 2010 10.1021/ma101360f
  24. Self-assembly of 21-arm star-like diblock copolymer in bulk and under cylindrical confinement Nanoscale · Royal Society of Chemistry · 2014 10.1039/c4nr01275e
  25. The Theory of Polymer Dynamics Journal of Non-Newtonian Fluid Mechanics · Elsevier BV · 1987 10.1016/0377-0257(87)85036-x
  26. Phase Behavior of Tapered Diblock Copolymers from Self-Consistent Field Theory ACS Macro Letters · American Chemical Society · 2013 10.1021/mz400546h
  27. Comparison of Pseudospectral Algorithms for Field-Theoretic Simulations of Polymers Macromolecules · American Chemical Society · 2013 10.1021/ma401804j
  28. Exploring Lateral Microphase Separation in Mixed Polymer Brushes by Experiment and Self-Consistent Field Theory Simulations Macromolecules · American Chemical Society · 2011 10.1021/ma202542u
  29. Interfacial Behavior in Polyelectrolyte Blends: Hybrid Liquid-State Integral Equation and Self-Consistent Field Theory Study Physical Review Letters · American Physical Society · 2013 10.1103/physrevlett.111.168303
  30. Efficient computation of the structural phase behavior of block copolymers Physical review. E, Statistical physics, plasmas, fluids, and related interdisciplinary topics · American Physical Society · 2002 10.1103/physreve.65.041806
  31. The finite element method. Linear static and dynamic finite element analysis Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 1987 10.1016/0045-7825(87)90013-2
  32. The Blue Waters Super-System for Super-Science Chapman and Hall/CRC eBooks · Informa · 2017 10.1201/9781351104005-13
  33. Symmetric diblock copolymers in thin films. I. Phase stability in self-consistent field calculations and Monte Carlo simulations The Journal of Chemical Physics · American Institute of Physics · 1999 10.1063/1.479778
  34. Linear Response and Stability of Ordered Phases of Block Copolymer Melts Macromolecules · American Chemical Society · 2007 10.1021/ma0714316
  35. Modern Software Tools for Scientific Computing Birkhäuser Boston eBooks · Birkhäuser Boston · 1997 10.1007/978-1-4612-1986-6
  36. Equilibrium behavior of asymmetric ABA triblock copolymer melts The Journal of Chemical Physics · American Institute of Physics · 2000 10.1063/1.1289889
  37. The Equilibrium Theory of Inhomogeneous Polymers 2005 10.1093/acprof:oso/9780198567295.001.0001
  38. PETSc Users Manual 2019