nickdisca / vem_project Goto Github PK
View Code? Open in Web Editor NEWC++ code for the Virtual Element Method discretisation of 2D advection-diffusion equations
C++ code for the Virtual Element Method discretisation of 2D advection-diffusion equations
C++ implementation of the VEM in 2D for elliptic (transport-diffusion) problems COMPILE AND RUN To compile the code a Makefile is provided, so simply do: make To run the code, simply run the main program as: ./main_project REQUIREMENTS The code makes usage of the C++11 standard and the Eigen library. In particular, in the Makefile one should modify the path_to_eigen (which is now set as /usr/local/include/eigen3) INPUT A mesh file has to be provided in the following format: 1. list of points representing the vertexes of the polygons as [pointX pointY] 2. list of indexes of the vertexes of i-th polygon (connectivity matrix), stored in a counterclockwise way 3. list of indexes denoting the vertexes which are on the domain boundary In file main_project.cpp the following data have to be provided: 1. discretization degree k 2. name of the file containing the mesh 2. functions defining the diffusion coefficient, X- and Y- component of the transport term, source term, Dirichlet data, exact solution (to compute discretization error) OUTPUT Once run, the program will produce an output file called output.dat containing the list of points and the corresponding solution as [pointX pointY value] EXAMPLE: the file mesh_example.dat contains the mesh information for the discretization with a structured mesh of [0,1]x[0,1] made of N^2=16 squares. the file output_example.dat contains the numerical results for a VEM discretization with k=1 and exact solution equal to u=x+y
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.