Category: Python

  • NGSolve Tutorials (3) Dirichlet Boundary Conditions Part B

    Extension of boundary data¶ We use the standard technique of reducing a problem with essential non-homogeneous boundary conditions to one with homogeneous boundary condition using an extension. The solution $u$ in $H_1$ satisfiesu$\Gamma_D=g$ and for all $v_0$ in $\in H_{0,D}^1= { v \in H^1 : v|_{\Gamma_D} = 0 }$. Split the solution where $u_D$ is…

  • NGSolve Tutorials (3) Dirichlet Boundary Conditions Part A

    This tutorial goes in depth into the mechanisms required to solve the Dirichlet problem with a nonzero Dirichlet boundary condition The same mechanisms are used in solving boundary value problems involving operators other than the Laplacian. You will see how to perform these tasks in NGSolve: Spaces with Dirichlet conditions on part of the boundary The first…

  • Introduction to MFEM

    MFEM (Modular Finite Element Methods) is an open-source C++ library for solving partial differential equations (PDEs) using finite element methods (FEM). It is designed to be easy to use and highly modular, allowing users to combine different PDE solvers, preconditioners, and element types to create custom solutions to a wide range of problems. MFEM also…

  • NGSolve Example for Heat Transfer using Complex Geometries Part B

    These lines of code are using the Mesh class from the ngsolve module to create a finite element mesh of the 3D model of the package. The Mesh class is used to create a discretization of the 3D model that can be used to perform finite element analysis (FEA). The OCCGeometry class from the netgen.occ…

  • NGSolve Example for Heat Transfer using Complex Geometries Part A

    these lines of code are importing several modules that are used for performing boolean operations on 3D shapes and visualizing the resulting shapes in a web browser. These modules can be used together to perform boolean operations on 3D shapes, perform FEA simulations on the resulting shapes, and visualize the resulting shapes in a web…

  • Boolean Operation Examples for Netgen

    In computer-aided design (CAD), boolean operations are a set of functions that allow you to create new shapes by combining or modifying existing shapes. These operations are called boolean because they are based on the logical values of true and false, and they use the concepts of union, intersection, and difference to create new shapes.…

  • NGSolve Tutorials (2) CoefficientFunctions Example Part B

    6. Integrate a CoefficientFunction The Integrate function in ngsolve is used to compute the integral of a function over the domain of a given mesh. The function to be integrated is specified as a CoefficientFunction, and the mesh over which the integral is to be computed is specified as a Mesh object. In this case,…

  • NGSolve Tutorials (2) CoefficientFunctions Example Part A

    In the ngsolve library, a coefficient function is a function that is used to specify the coefficients of a PDE or boundary condition. Coefficient functions can be either symbolic or numerical. Symbolic coefficient functions are defined using mathematical expressions and can depend on the coordinates of the domain. They are used to define the weak…

  • NGSolve Tutorials (1) First NG Solve Example Part B

    In NGSolve, the BilinearForm class represents a bilinear form defined on a finite element space. A bilinear form is a function that takes two finite element functions as input and returns a scalar. It is used to define the left-hand side of a weak formulation of a PDE. In the code you provided, a bilinear…

  • NGSolve Tutorials (1) First NG Solve Example Part A

    It is a example and explanation of which is described in docu.ngsolve.org Let us solve the Poisson problem of inding u satisfying in the unit square on the bottom and right parts of the boundary on the remaining boundary parts. The ngsolve module is a finite element library for solving partial differential equations (PDEs) in…