Accepted manuscript A computational framework for a two-scale generalized/extended finite element method: generic imposition of boundary conditions Mohammad Malekan a , Felício B. Barros a , Roque L. S. Pitangueira a , Phillipe D. Alves b , Samuel S. Penna a a Graduate Program in Structural Engineering (PROPEEs), School of Engineering, Federal University of Minas Gerais (UFMG), Av. Antônio Carlos 6627, Pampulha, 31270-901, Belo Horizonte, MG, Brazil b Department of Civil and Environmental Engineering, University of Illinois at Urbana-Champaign, Newmark Laboratory, 205 North Mathews Avenue, Urbana, IL 61801, USA Abstract This paper presents a computational framework to generate numeric enrichment functions for two-dimensional problems dealing with single/multiple local phenomenon. The two-scale generalized/extended finite element method (G/XFEM) approach used here is based on the solution decomposition, having a global and local scale components. This strategy allows the use of a coarse mesh even when the problem produces complex local phenomena. For this purpose, local problems can be defined where these local phenomena are observed and are solved separately using fine meshes. The results of the local problems are used to enrich the global one improving the approximate solution. The implementation of the two-scale G/XFEM formulation follows the object-oriented approach presented by the authors in a previous work, where it is possible to combine different kinds of elements and analysis models with the partition of unity enrichment scheme. Beside the extension of the G/XFEM implementation to enclose the global-local strategy, the imposition of different boundary conditions is also generalized. This generalization is very important since the global-local approach relies on the boundary information transferring process between the two scales of the analysis. The flexibility for the numerical analysis of the proposed framework is illustrated by several examples. Different analysis models, element formulations and enrichment functions are employed and the accuracy, robustness and computational efficiency are demonstrated. Keywords: Generalized FEM; eXtended FEM; Object-oriented design; Two-scale analysis; Boundary condition 1. Introduction Nowadays, it is well accepted to solve a wider range of practical problems using numerical approaches. Finite Element Method (FEM) is the most widely used numerical method to Email addresses: mmalekan1986@gmail.com (Mohammad Malekan), felicio@dees.ufmg.br (Felício B. Barros) Preprint submitted to Engineering Computations Journal August 10, 2016