Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [boundary-conditions]

For questions regarding the choice and/or appropriateness of conditions necessary to model a particular phenomenon with a partial differential equations.

0
votes
1answer
60 views

Solving advection equation - periodic conditions - using roll python function [on hold]

The original post was on stackoverflow : I transfert it here. I have to solve numerically the advection equation with periodic boundaries conditions : u(t,0) = u(t,L) with L the length of system to ...
2
votes
0answers
60 views

Are there known accuracy issues between 2D axisymmetric and 3D solutions?

In my full 3D solutions I am solving for the potential throughout a $100\times 200\times 200$ grid. Inside is a ring electrode set to -5V via a Dirichlet boundary condition, and surrounded on all ...
0
votes
1answer
70 views

Impose Neumann Boundary Condition in advection-diffusion equation 1D

when solving the advection equation in 1D that is: $$ \frac{\partial u}{\partial t} + c\frac{\partial u}{\partial x} = 0 $$ with $ u'(t,0) = 0$ and $u(t,L) = 0$ , $u(0,x) = u_{0} $ one numerical ...
0
votes
1answer
40 views

Applying neumann boundary conditions to diffusion equation solution in python [duplicate]

For the diffusion equation $$ \frac{\partial u(x,t)}{\partial t} = D \frac{\partial ^2 u(x,t)}{\partial x^2} + Cu(x,t) $$ with the boundary conditions $u(-\frac{L}{2},t)=u(\frac{L}{2},t)=0$ I've ...
0
votes
0answers
38 views

System of BVPs with unbalanced BCs

I have a system of ODEs forming a BVP. I was thinking of using Finite Difference to solve it but for some functions I do not have the BCs on both sides (though in total they are enough to make the ...
1
vote
1answer
70 views

Shooting method implementation

I have a trouble of defining a Jacobian matrix for my problem. Basically, I have 4 differential equations to be solved. $$ \begin{aligned} \dot x_1(t)&=x_2(t)\\ \dot x_2(t)&=p_2(t)−\sqrt 2 ...
-2
votes
0answers
62 views

Inlet boundary conditions in COMSOL [closed]

For modeled based weak form PDEs of Navier–Stokes equation formulation in Comsol, there is no inlet and outlet boundary conditions option for velocity and pressure for pipe flow. Then how I can ...
-1
votes
0answers
42 views

Implementing Danckwert’s boundary condition for the PDE

This is a follow-up to my previous question posted here. I was suggested to use the pdepe function in MATLAB to solve the PDE, $ \frac{\partial C}{\partial t} = -v\...
-1
votes
0answers
50 views

Question regarding implementation of boundary condition

I have the following code, which solves for the change in concentration of a species along the length of a channel of length L . The equation is , $ \frac{\partial C}{\partial t} = -v\frac{\partial C}...
2
votes
1answer
53 views

PML boundary conditions

I set up two one-way wave equations for constant velocity $c$ in one-dimension. When I implement them I get a highly unstable (divergent) solution. I wonder if someone could give me a suggestion about ...
2
votes
0answers
24 views

Neumann boundary conditions in the Maccormack scheme

I am trying to solve the viscous Burger equation $$ \frac{\partial u}{\partial t} + u\frac{\partial u}{\partial x} = \mu \frac{\partial^2 u}{\partial x^2} $$ with Neumann boundary conditions. I am ...
1
vote
0answers
52 views

Inflow and outflow boundary conditions for advection-diffusion equation

I'm trying to solve this advection-diffusion equation (ADE): $$\frac{\partial \phi}{\partial t} + \nabla \cdot (-D \nabla \phi + \mathbf{u} \phi) = 0$$ In fact, this ADE framework is coupled to a ...
2
votes
0answers
35 views

Finite difference Neumann boundary conditions: uneven weighting of edge nodes?

Originally asked this on math.stackexchange, but I figure it's also appropriate here. I'm reading through some finite difference code for a diffusion equation and came across something odd for the ...
1
vote
0answers
45 views

What is the finite-difference representation of the Laplacian operator with periodic boundary conditions? [duplicate]

I am using a central-difference scheme to solve the eigenvalue problem $$\frac{d^2}{dx^2}u = \lambda u$$ on a unit interval with periodic boundary conditions. My understanding is the eigenvectors $...
1
vote
1answer
217 views

Interatomic distance-periodic boundary conditions-non cubic unit cell

I am trying to find interatomic distance considering periodic boundary conditions for hexagon cubic cells (graphite). I tried to follow the answers to these two questions here but am unable to get the ...
0
votes
0answers
113 views

Neumann Boundary with ADI-method (FDM); how do I implement this?

I am modelling the Heat equation in 2D in Python. I am using finite difference methods, more specifically the Alternating Direction Implicit method. The model works quite well with Dirichlet boundary ...
0
votes
0answers
26 views

CGFEM - Adding a solvent flux to a 1D adv-diff system as a source term

I have a system consisting of a narrow pipe with porous walls where the inlet conditions are flow rate and initial concentration, and the goal is to determine the change in concentration along the ...
0
votes
1answer
69 views

Boundary conditions in a four point bend test

I am looking into the four-point bend test, such as one in this YouTube video. Sample screenshot from the video illustrating the problem: I am a little confused as to how the loads are prescribed ...
0
votes
0answers
21 views

Enforced (prescribed) displacements at more than 1 node of FE model [duplicate]

If I have a structural finite element model (could be continuum or frame elements), I was wondering if there is a way to enforce a prescribed displacement at more than 1 node in the model in a ...
0
votes
0answers
41 views

How does atmospheric pressure correspond to a traction BC for structural mechanics?

If you have some object that's just sitting on a table, some of its surfaces will be exposed to the ambient conditions, say at standard pressure and temperature. In computational modeling, would you ...
1
vote
0answers
45 views

Decrease in slope during convergence analysis

I am using the method of manufactured solutions to perform the order of accuracy testing. I am using a cube for the testing. The cube is size 1m on all sides. I used 5 refinements: $dx = dy = dz = ...
1
vote
1answer
74 views

Well-posedness of linear elasticity boundary conditions

I have several questions regarding suitable boundary conditions for linear elasticity. I have read that in order for modeling linear elasticity to be well-posed, the entire boundary cannot be ...
1
vote
0answers
44 views

Method of manufactured solutions - choice of type of boundary conditions

I am attempting to use the method of manufactured solutions (MMS) for code verification for linear elasticity. However, this is more of a general question regarding the general use of MMS. In MMS, ...
2
votes
1answer
70 views

FEM-Laplace with Dirichlet in only a few points: Nonsingular operator?

Let's consider the FEM discretization of the Laplace operator without boundary conditions, i.e., $$ a(u,v) = \int_\Omega \nabla u \cdot \nabla v - \int_\Gamma (n\cdot \nabla u) v. $$ For one-...
1
vote
1answer
83 views

Are mixed boundary conditions possible in structural mechanics?

For structural mechanics, such as linear elasticity, I am aware of BCs such as a prescribed displacement (Dirichlet) or a prescribed traction (Neumann). Is it possible that a boundary can have a ...
0
votes
0answers
53 views

Applying base excitation to a MATLAB state-space

I have a state space model that was provided to me by exporting it from an external FEA program. The model can be described as $\dot x = Ax + Bu$ $y = Cx + Du$ This model assumes forces and ...
0
votes
1answer
123 views

Proving solution existence and uniqueness of the Helmholtz equation with Robin boundary conditions with complex coefficients

I am trying to solve the Helmholtz equation with Robin boundary conditions with complex coefficients and the weak formulation $$ \iint_\limits\Omega\nabla p_0(x,y)\nabla\left(\overline{v(x,y)}\right)...
3
votes
1answer
193 views

Traction -> stress; stress->displacement gradient

If given a displacement gradient tensor, we can easily obtain the stress tensor (using Hooke's law and the strain-displacement relationship), as well as the traction vector. If given a traction, and ...
3
votes
1answer
62 views

Closed boundary conditions in finite difference method for diffusive-advective equation

I am implementing a finite difference method in solving the diffusive-advective equation: $$ u_t + v \cdot u_x = D\cdot u_{xx} $$ (v, D are constants). Planning to use the operator splitting method (...
0
votes
0answers
77 views

Neumann boundary condition FD implementation for instationnary diffusion equation

I am trying to solve this diffusion equation : $\dfrac{\partial D\dfrac{\partial f}{\partial x}}{\partial x}+S = \dfrac{\partial f}{\partial t}$ ($D$ is not constant and varies according to $x$) with ...
3
votes
2answers
375 views

Implementing no-flux boundary condition reaction-diffusion PDE

I'm having trouble figuring out how to implement boundary conditions for this problem: \begin{align} \frac{\partial n}{\partial t} &= D_n\nabla^2n - \nabla\cdot\left(\frac{\chi}{1+\alpha c}n\nabla ...
2
votes
0answers
56 views

Finite differenced eigenvalue prob. of inhomogeneous boundary conditions?

I am basically asking about eigenvalue problems of differential equations using some finite difference method (FDM). Usually the system is subject to some boundary conditions (BC), e.g., Dirichlet or ...
0
votes
0answers
111 views

Should ghost cells/nodes be coupled?

This is more of a theoretical question regarding the concept of ghost cells. When handling Neumann boundary conditions, ghost cells (in FVM) or nodes (in FD) are typically introduced. Essentially, ...
1
vote
1answer
351 views

Applying Neumann boundaries to Crank-Nicolson solution in python

Consider the heat equation $$u_t = \kappa u_{xx}$$ with boundary conditions of $$u(x,0)=0\\ u(0,t)=100\\ u(l,t)=0$$ Numerical analysis by pyton can be done with ...
3
votes
0answers
33 views

Can I expect reasonable results when expanding in scaled Legendre polynomials?

Imagine I want to compute the eigenvalues of an operator $\hat O$ defined on $ L^2(\mathbb{R})$, however using a properly scaled N-dimensional polynomial basis of $ L^2([-a,a]) $ which fulfills ...
1
vote
0answers
51 views

Radially symmetric system of PDEs in deal.II

I am trying to solve the radially symmetric polar form of the PDE with homogeneous Neumann BC in deal.II on a unit circle: $$ u_t = \Delta u - \nabla \cdot (u \nabla h) $$ $$ h_t = \Delta h $$ I am ...
3
votes
0answers
79 views

Non-reflecting boundary conditions for compressible Navier-Stokes equations

I have some questions about the implementation of non-reflecting OUTFLOW boundary condition for Navier Stokes equations. Following Poinsot, Lele "Boundary Conditions for Direct Simulations of ...
0
votes
2answers
100 views

Second derivative in coordinate invariant form

To solve stationary, incompressible, inviscid and irrotational flow around a circular cylinder, I am using general coordinates. Since the flow is symmetrical, we only consider the upper half of the ...
1
vote
2answers
123 views

Find classical solution of transport equation with FDM

We know the classical solution of transport equation is determined by one initial (boundary?) condition, for example, the solution of $$\frac{\partial u(t,x)}{\partial t}+\frac{\partial u(t,x)}{\...
0
votes
2answers
65 views

Finite difference for 2nd order ode $y'^2+y y''+\frac{2}{x} y y' -0.1 y^2=0$ with $y'(1)=0$ and $y(1)=1$

How to solve second order non-linear ODE $$y'^2+y y''+\frac{2}{x} y y' -0.1 y^2=0$$ subject to $y'(1)=0$ and $y(1)=1$ over the interval $0 < x \le 1$. I turned the equation to a PDE $y'^2+y y''+\...
4
votes
1answer
154 views

Periodic boundary condition in solid

I want to solve a small deformation solid structure problem applying periodic boundary conditions in FEM. The geometry is a square and the equations are: $$ \text{div} \, \sigma = 0 \\ \sigma = f(\...
0
votes
1answer
307 views

Proper boundary conditions for potential flow around cylinder

I am computing the stationary, incompressible, inviscid and irrotational flow around a circular cylinder using a discretization in general coordinates. I derived a PDE and proper boundary conditions ...
6
votes
2answers
188 views

Why naively chopped finite difference matrix works for different ODE boundary conditions

We know finite difference method (FDM) can replace $y''(x)$ as $\frac{1}{h^2}[y(x+h)+y(x-h)-2y(x)]$ or so. One naive way to write down the matrix of the differential operator is like the following, ...
3
votes
1answer
186 views

Radiation boundary condition (heat transfer)

I am looking for reference on how to implement nonlinear boundary conditions. Specifically, I am interested in implementing a radiation boundary condition for heat transfer with the FEM: $-k \frac {\...
4
votes
0answers
105 views

How to apply an integrated constrain condition in FEM?

I'm running some simulation using FEM. In my model I need to apply a constraint condition to the governing equation. My governing equation similar to the diffusion equation as below: $$\frac{\...
1
vote
1answer
698 views

Structural mechanics - traction free = Zero displacement gradient?

This is a follow up question to my question yesterday Structural mechanics traction boundary condition question Does a traction free boundary condition also mean that the displacement gradient is 0 ...
1
vote
0answers
139 views

Structural mechanics traction boundary condition question

In structural mechanics, are the boundary conditions "free surface," "Traction free", "stress free" all equivalent Neumann boundary conditions?
6
votes
0answers
191 views

Understanding Boundary Condition in FEM

I am trying to understand Dirichlet and Neumann boundary conditions in FEM and I wanted to know if my inference is correct. To articulate my understanding, lets consider a simple case of TE and TM ...
0
votes
2answers
68 views

How do you apply boundary conditions in a time-stepping problem?

It looks to me like a very common problem, yet I haven't been able to find any practical guide on the subject despite many hours searching. Here is a clearer statement of my question: I have a ...
1
vote
1answer
137 views

Parallel calculation in finite elements

I am trying to solve a 1 Dimensional eigenvalue of poisson problem: $$\nabla \phi ^2 +\nabla \phi = k\phi$$ with the boundary condition: $\phi (0)=0 , \nabla \phi(1) = 0 $. I could solve this ...