Skip to main content
Filter by
Sorted by
Tagged with
2 votes
0 answers
59 views

I'm computing PDE residuals for The_Well datasets (e.g. turbulent_radiative_layer_2D and shear_flow) using finite differences, but the residuals are much larger than I expect. The data are generated ...
Kain's user avatar
  • 21
0 votes
0 answers
68 views

I am trying to use the Julia language to solve a system of partial differential equations. I found the modeling tool kit to be quite helpful. I can solve the unsteady heat equation for multiple ...
Nick Brady's user avatar
0 votes
0 answers
122 views

I am trying to solve a convection-diffusion-reaction problem for a tubular reactor. The reaction governing the process is as follows: The method I chose to solve it is the line method, which consists ...
Renato's user avatar
  • 11
1 vote
1 answer
98 views

I’m trying to solve a problem from Modern Mathematical Methods for Scientists and Engineers using Maple, specifically applying the Fokas method (Unified Transform) to the heat equation on the half-...
Athanasios Paraskevopoulos's user avatar
0 votes
1 answer
98 views

I'm solving a 2D PDE using solve_ivp from SciPy and was trying to optimize my function by avoiding calls to .reshape() and .ravel() on every timestep. I rewrote my dudt function to operate purely in ...
Pawel's user avatar
  • 43
-1 votes
1 answer
88 views

Question Is it better to use larger timesteps that necessitate more sweeps, or shorter timesteps that permit fewer sweeps? I define 'better' as meaning a better 'accuracy-to-computation' ratio. ...
Isaac Blanc's user avatar
1 vote
1 answer
88 views

Question Am I correct in using volumetric properties when simulating the heat diffusion equation with FiPy? Context I am solving the transient heat diffusion equation with an explicit source term. ...
Isaac Blanc's user avatar
0 votes
0 answers
74 views

I'm trying to use fipy to solve a PDE system. In this case, I have a coupled of PDEs and I need to solve for two components of a vector field (m1 and m2). However, I dont need to solve these ...
kalosu's user avatar
  • 1
1 vote
1 answer
63 views

I'm trying to simulate the dynamic behaviour of the granular flow inside a rotary kiln. The PDE describing it was derived by Descoins (2005) and it is expressed as follows: The original equation (...
Barlonacio's user avatar
0 votes
0 answers
52 views

I am trying to simulate grain boundary properties in a ferroelectric bicrystal using FiPy. I have basically three variables to solve namely, degree of crystalinity (eta), polarization magnitude in the ...
Kritika Khanal's user avatar
1 vote
0 answers
53 views

I need to make some changes directly to the executable responsible for launching my RCP application. In this case, I'm modifying the manifest using the "mt.exe" tool from the Windows SDK. As ...
Jose Renato's user avatar
1 vote
0 answers
135 views

I am facing stack overflow error when I am trying to solve numerically the fractional nonlinear Schrödinger equation using finite difference method in python. This nonlinear partial differential ...
prior123's user avatar
0 votes
0 answers
69 views

I am trying to use ND Eigensystem to find the eigenvalues of the Woods-Saxon Potential Schroedinger Equation for Oxygen. I've defined the potential and operator, but I know the functions given are ...
Kol's user avatar
  • 33
-1 votes
1 answer
110 views

I am trying to reproduce 4.1.3 Emission from Solid Materials as per this PDF. https://www.rivm.nl/bibliotheek/rapporten/2017-0197.pdf Produced this version of the model and this is the best I have ...
Nick's user avatar
  • 927
0 votes
1 answer
67 views

I am stuck in an attempt to pass an interpolating function that was generated from a PDE solved using NDSolveValue to a second call to NDSolveValue for a solution to a simple ODE. Here is my code for ...
Leapfrog's user avatar
0 votes
0 answers
45 views

I am trying to solve coupled heat conduction and mass diffusion for a spherical particle. I am solving the PDE's using Finite difference method , with 4th accuracy for first and second order equations....
utkarsh kulkarni's user avatar
0 votes
0 answers
50 views

first of all I'd like to point out that this is my first time using Stack Overflow so don't hesitate to tell me if something isn't displaying properly or isn't clear. I'm trying to solve an advection ...
thr's user avatar
  • 1
0 votes
1 answer
124 views

My main task is to solve a PDE of the form. with periodic boundary conditions, say: so naturally I wanted to first solve the wave equation: The code I have come up with is this: import matplotlib....
Tito's user avatar
  • 1
0 votes
1 answer
135 views

I'm trying to solve the 2D heat equation using the finite difference method as a filtering technique for an image using the solve_ivp method. My code is shown which gives an error message "y0 ...
User123's user avatar
  • 29
0 votes
2 answers
122 views

I am new to Fipy and I was wondering if there is a way how to extract the values of a diffusion or convections terms. in the case of a cell variable this is easy but diffusion or convections are in ...
Abderrezak TORCHE's user avatar
1 vote
1 answer
101 views

so below is the code snippet i have for Julia: using Printf using Plots gr() # Parameters definition Ny = 21 # Number of points in y-direction Aspect_ratio = 10 # Ratio of ...
CFDn00b's user avatar
  • 11
0 votes
0 answers
175 views

I'm currently working on a model of Metal Hydrides absorption/desorption in simulink. The model is based on 3 partial differential equations in which there is a spatial coordinate r (along the radius ...
Jj no's user avatar
  • 9
0 votes
0 answers
28 views

I have to simulate 2D plate heat diffusion. Everything works fine with 4 tasks, but it doesn't when using N*4 tasks. I suspect the problem is in the logic of communications between the upper and lower ...
iustindinu's user avatar
2 votes
1 answer
94 views

I am trying to edit the Gray-Scott 1D equation example (last example on the page) in the odeint documentation. I have the code below and it works for the Neumann boundary conditions but I want a ...
Zack Fair's user avatar
  • 239
0 votes
1 answer
184 views

I want to solve the 1-D transient heat transfer equation. Define a 1-D geometry (a line) in y-direction dT/dt = (k/(rho*cp))*d²T/dy² I.C.: @t=0, temperature of all elements is 25°C B.C.: The geometry ...
Adya's user avatar
  • 3
0 votes
1 answer
248 views

I am trying to define and solve a PDE with partial derivatives and non-linear behavior using py-pde, unfortunately all the examples I found seem to use simple instruction like gradient and laplace, ...
GigaByte123's user avatar
0 votes
0 answers
526 views

I want to solve the 1-D transient heat transfer equation dT/dt = (k/(rho*cp))*d²T/dy² Define a 1-D geometry(a line) in y-direction I.C. : @t=0, temperature of all elements is 25°C B.C. : The geometry ...
Adya's user avatar
  • 3
0 votes
1 answer
60 views

I'm reading the devito_book/fdm-jupyter-book/notebooks/01_vib/vib_undamped.ipynb and the code in it seems not compatible with devito 4.8.3. So I tried to rewrite it as: import numpy as np from devito ...
Shanmu Jin's user avatar
1 vote
1 answer
76 views

I am developing a model for the 1-D geometry product which is exposed to different conditions on the top and bottom surface as you can see in the code. Unfortunately, for the boundary condition, it is ...
beschichtung346's user avatar
1 vote
1 answer
197 views

When solving a partial differential equation, I get NDSolve::eerri: Warning: estimated initial error on the specified spatial grid in the direction of independent variable x exceeds prescribed error ...
user23324532's user avatar
1 vote
1 answer
271 views

I am trying solve a linear Poisson's equation with homogenous Neumann boundary conditions at the interval [-1,1] along the y direction and periodic along x. Originally, I tested the same code for a ...
Jamie 's user avatar
  • 527
1 vote
0 answers
130 views

This bug has been haunting me for a while and would love new pair of eyes to help, not sure if this is the right place for such a question so please let me know. I am solving a nonlinear Poisson's ...
Jamie 's user avatar
  • 527
0 votes
0 answers
55 views

I am trying to use this MATLAB code for 2D-Diffusion problem from the File Exchange here. The code is shared below. All boundary conditions are set to zero (zero flux), and I set my initial condition ...
Cnine's user avatar
  • 101
0 votes
1 answer
96 views

I would like to model the compression of a rubber ball, being squeezed between two steel balls. What i want is to be able to demonstrate the contact areas and the local pressure within these contact ...
Lars Granlöf's user avatar
1 vote
3 answers
195 views

I have a set of two PDEs like so (pseudo-code): r'' = (s')^2 * r - G*M*r^-2 r' = -(r*s'')/(2*s') s and r are functions of time, ' the derivative, G and M are constants. They were obtained from the ...
AtomProgrammer's user avatar
1 vote
0 answers
219 views

I need to implement the following boundary conditions in my Python code f(0, x) = f(-1, x) = 0 and f(y, 0) = f(y, N) (periodic in the second index). My code doesn't seem to work. F is a numerical ...
Gabriel Flores Alfaro's user avatar
0 votes
0 answers
162 views

I'm trying to recreate numerical results from an article. In particular, I want to numerically solve the following PDE system: In this system, Fn represents a prey population density, Cn a predator ...
Ama's user avatar
  • 43
0 votes
0 answers
125 views

I'm working on implementing the discretised Burger's equation. I am quite confused as to why it does not work with when using a step-function. When using a step-function, I am getting a singular ...
Nexi's user avatar
  • 1
1 vote
2 answers
155 views

I'm trying to recreate numerical results from an article. In particular, I want to numerically solve the following PDE system: In this system, Fn represents a prey population density, Cn a predator ...
Ama's user avatar
  • 43
0 votes
0 answers
67 views

I am relatively new to FiPy and have spent some time reading the FAQ and examining examples. My goal is to solve a set of coupled partial differential equations (PDEs), one of which is represented by ...
Kwez's user avatar
  • 1
0 votes
0 answers
59 views

I am a student, and I am currently working on a project to develop a plugin editor for Eclipse using Java 1.7. So far, I have successfully implemented the syntax coloring feature. To test my plugin, I ...
MomoxRifboy's user avatar
0 votes
0 answers
507 views

For a school project, I am implementing in Python a finite difference method to numerically solve the following system of reaction diffusion PDE: I have so far implemented the following: import numpy ...
cosmic_crafter's user avatar
0 votes
1 answer
99 views

I hava a Matlab code code model = createpde(); geometryFromEdges(model,@lshapeg); applyBoundaryCondition(model,"dirichlet", ... "Edge",1:model....
KHTN's user avatar
  • 1
0 votes
0 answers
124 views

I have this partial differential equation ut=0; with this boundary condition: u(x,0)=x and I want to solve it with pdsolve in python from sympy import * from sympy.abc import x, t # x and y are the ...
amin fazlollahtabar's user avatar
1 vote
1 answer
291 views

I would like to know the best way of extacting chunks of elements from a 2D numpy array that has been flattened. See example python code below which hopefully explains what I want to do a little ...
n1ck94's user avatar
  • 43
0 votes
1 answer
77 views

I'm trying to write code of these equations: Laguerre Polynomial: and Laguerre Polynomial Coefficients: So far I have written this MATLAB code of Laguerre polynomial: function M=Laguerre_Polynomial(...
Natasha Azmat's user avatar
1 vote
0 answers
295 views

I need to implement in C a method of obtaining transient solution Rdm of damped FE models based on modal results R for a structural model (imported CAD geometry) defined with hysteretic (structural) ...
Piotr's user avatar
  • 11
1 vote
1 answer
99 views

I have a general solution to my heat equation as: I have tried implementing this in MATLAB but I get inconsistent results. Do you think the issue is about my code or just the triple summation does ...
Orkiel's user avatar
  • 31
2 votes
1 answer
444 views

I am trying to model in MATLAB the temperature distribution inside a rectangular prism with boundary and initial conditions and heat equation I was trying to visualize 2D slices in the 3D shape. ...
Orkiel's user avatar
  • 31
0 votes
1 answer
66 views

i'm solving some PDE's using Fipy and it would be really handy to translate the mesh so it doesn't start at 0 instead of modifying all my equations. This is important since my convection term is ...
alxg's user avatar
  • 368

1
2 3 4 5
10