instruction stringlengths 43 28.1k |
|---|
A boolean-valued monotonic function is defined in the set of positive integers, $\mathcal Z$.
$$f(n) = \begin{cases} 0, &n_{min}\le n < n\ast\\1, &n\ast\le n\le n_{max} \end{cases} ; n \in \mathcal Z $$
The goal is to search for $n\ast$. The bounds $n_{min}$ and $n_{max}$ are known apriori.
A salient property of $n\ast... |
I have a system of equations that cannot be solved for in closed form:
$F_1(x_1,x_2,\beta)=0 ~\&~ F_2(x_1,x_2,\beta)=0 $
I want to solve for functions $x_1=x_1(\beta) ~\&~ x_2=x_2(\beta)$
My approach so far:
Fix $\beta=\beta_1$
Solve system numerically for $x^1_1,x^1_2$.
Repeat for a different $\beta$ on some pre-def... |
I've read that in modeling structures problems, the finite element method (FEM) is typically used. I am unfamiliar with FEM, but I am wondering, in particular, if using FEM, as opposed to finite difference/volume, alleviates some of the numerical stability issues that may arise due to the large structural constants?
I... |
I'm currently using ParMETIS and it is required to determine the halo region of the local elements in a parallel unstructured mesh. Assume that the mesh is large and cannot be stored on a single processor.
My approach is to gather the global list of elements and their processor location in each processor. Then the neig... |
How can one simulate diffusion of a particle which has a natural axis and diffusion coefficient of the particle in the direction of the axis is D_1 and in perpendicular to the axis is D_2?
Could anyone provide a code?
|
I am simulating the propagation of a light pulse using the equation
$$\frac{\partial}{\partial z}A=\frac{1}{2\cdot k_0}\nabla^2_rA$$
with
$$k_0=\frac{2\pi}{\lambda_0}$$
The propagation with a step size of $dz$ is done using the equation
$$\left(\vec{1}-i\cdot\frac{dz}{2}\nabla^2_r\right)A_{n+1}=\left(\vec{1}+i\cdot\fra... |
I am trying to implement a fem code on tet10 elements. I follow the lecture notes for tet10 implementation given in
http://www.colorado.edu/engineering/CAS/courses.d/AFEM.d/AFEM.Ch10.d/AFEM.Ch10.pdf
I have validated my stiffness matrix with the example provided. The numerical values of the Jacobian at the Gauss point... |
I am interested in the specific differences of the following methods:
The conjugate gradient method (CGM) is an algorithm for the numerical solution of particular systems of linear equations.
The nonlinear conjugate gradient method (NLCGM) generalizes the conjugate gradient method to nonlinear optimization.
The gradie... |
I would like to implement P2 (or even P3...) finite elements in Matlab. I need to be able to control the construction of the rigidity and mass matrices ($ \int \nabla \varphi_i\cdot \nabla \varphi_j$ and $\int \varphi_i \varphi_j$) (since I want to tackle some precision computation problems afterwards, and maybe go bey... |
I am working on a trajectory analysis project using python and its data science related libraries.
I am planning to implement Frechet Distance algorithm for trajectory analysis, each trajectory has sequence of (x,y) coordinates along with timestamp, speed, dist between consecutive points, etc.
Following is the example... |
I have two variations of an iterative algorithm. All the steps of both algorithms are equivalent except one. In this step:
Algorithm 1 needs to compute the matrix $ABA^T$ for matrices $A \in \mathbb{R}^{p \times p}$ and $B \in \mathbb{R}^{p \times p}$;
Algorithm 2 needs to invert the $p \times p$ matrix $C$.
My ques... |
I have a 3-dimensional domain D, with 3 types of BC which I am trying to solve the Poisson equation on. $$-\nabla \cdot (\sigma(x,y,z)\nabla u)=0$$
Insulator (Neumann BC)
Electrode set at some potential (Dirichlet BC).
Additionally I have some electrodes $E_l$ which are set to have a fixed current $I_l$, so on these th... |
I don't know if anyone is using SGE anymore (what is the world of HPC using nowadays?), but I need to work on version 6.2u3, I believe, from sometime back in '11. I'm using it on a cluster of 64 nodes, 12 cores each.
Thing is, I'm not sure what requesting X cores really means. Is it purely advisory? I've tried using bo... |
In order to calculate the volume of the solid defined by
$$\frac{51}{100} (\cos x \cos y+\cos x \cos z+\cos y \cos z)+\cos x+\cos y+\cos z+1\le0$$
where $x,y,z\in[0,2\pi]$
I used the following code (in MATLAB)
f = @(x, y, z) double(1 + cos(x) + cos(y) + cos(z) + 0.51*(cos(x).*cos(y) + cos(x).*cos(z) + cos(y).*cos(z))... |
I am writing a FEN solver on tet10 elements. I right now have a CFD grid gen tool (Pointwise) which generates tet4 meshes. From this I have the element connectivity list and the node list. How do I go about generating a tet10 mesh from this info. Is there any particular tool/code to do this.
|
In my code it often happens that I need to calculate values for a group.
For example, suppose there is the following data:
groups = [A, A, A, B, B, B]
values = [1, 2, 3, 0, 1, 1]
And I want to calculate the cumsum by group:
cumsum = [1, 3, 6, 0, 1, 2]
I always code this in the same way, as follows:
from collections i... |
I know that an easy way to solve the matrix problem
$$A\cdot x=b$$
is the LU decomposition
$$\begin{split}
L,\,U&=\text{lu}(A)\\
y&=\text{solve}(L,\,b)\\
x&=\text{solve}(U,\,y)
\end{split}$$
Thus I implemented the following code in matlab:
r_num = 10000;
r_rounds = 10000;
A = -30*sparse(diag(ones(r_num,1),0))+16*spars... |
I have a function of 3 variables like $V= f(r_1, p, r_2)$, I want to plot these 4 data in one graph to be able to capture the behavior of V with respect to all three variables.
I searched a little bit and read about Sliceomatic but not sure how does it work and if it delivers my requirements. I would appreciate if some... |
I have a very basic question, and I hope some of you might be able to help me: In Fluid Dynamics, a common equation turning up time and time again is the so-called continuity equation:
$$\frac{\partial}{\partial x}(T\frac{\partial h}{\partial x}) + R = S\frac{\partial h}{\partial t}$$
Where $T$ is the transmissivity of... |
I am solving the following mixed boundary elasticity problem with the finite element method on the unit circle, using a triangle mesh with 3 nodes on each element. In my problem I know $u_1$ and $t_2$:
With the following weak form:
$$\int_\Omega \sum_{i,j}^2 \sigma_{ij}(u) \epsilon_{ij}(v)= \int_\tau v_2 t_2 $$
I hav... |
I am solving quadratic minimization problem
\begin{align}
\min_{x}\ \frac{1}{2} x^T A x -b^T x,
\end{align}
where matrix A results from discretization of Laplacian by FEM method, subjected to Dirichlet BC.
I am having concerns about computing energy.
Should product $ \frac{1}{2} x^T A x -b^T x $ be computed by using ... |
i have come across method of IMEX Runge-Kutta written by Kennedy and Carpenter in july 2001. The method consist of two kind that is "implicit and explicit"
can i use the ERK@explicit part only to solve the intial value problem, as if i treat the method as another embedded Runge-Kutta?
is it against the algorithm/rule o... |
I am solving the Dirichlet problem
$$
\begin{cases}
\Delta u = 0, \\
u|_{\partial D} = f,
\end{cases}
$$
in a $2d$ domain $D$ using the finite element method. What I want to get is the normal derivative of the solution $u$ on the boundary: $\tfrac{\partial u}{\partial \nu}$. In other words, I'm interested in ... |
I am new into programming. Here, I am trying to simulate the motion of a cannonball until it hits the ground using python programming. I have used both analytical and numerical(Euler method) to plot its trajectory. But, I am not sure if my output is correct for both methods, especially for the analytical solution. For ... |
eg 1 2. Is it just vorticity? What's actually happening? (Similar: steam engines, volcanoes, clouds).
examples are grid-based, using "vorticity confinement" in Phoenix FD.
EDIT Some techniques: "divergence control" is used to increase the smoke concentration; and fuel particles in the air may combust, further adding s... |
I have always been interested in generating discrete approximations that tend to mimic the properties of their continuum counterparts. Usually, one approximation that is desired is that the discrete solution is divergence free. Take Maxwell equations in the time domain as an example:
$$
-\frac{\partial\mathbf{b}(\mathb... |
I have just finished a new version of a parallel code that I have been working on. I would like to do a strong scaling test, but I am always bothered by how much monotonous work scaling tests seem to require.
Currently, I make folders for each processor count (np1, np2, np4, ...), copy my code into each folder, assign ... |
I'm currently developing simulations for coupled, nonlinear, multi-region systems. Basically, I use the Finite Element Method (FEM) to model each physical quantity in each region. The obtained matrices and the coupling matrices between the quantities are combined into one large system matrix. From this matrix plus the ... |
I want the product of two functions $f(x),g(x)$
$$f(x) = x + \sin(x)\\
g(x) = x - \sin(x)$$
then
$$f(x)g(x) = x^2 - \sin^{2}(x)$$
How could I compute the product of two functions?.
I tried searching through Google which says to use inline or something like this
>> f = @(x) x - sin(x)
f =
@(x) x - sin (x)
>> g = @(x)... |
I'm solving the Dirichlet problem for the Poisson equation in a 2d domain $D$:
$$
\begin{cases}
\Delta u = 0 \quad \text{in $D$}, \\
u|_{\partial D} = u_0.
\end{cases}
$$
I'm interested in finding the fluxes of the solution through the boundary and in order to get accurate fluxes (after a discussion in commen... |
Actually I am interested in analyzing the soution to the ODE given as $\frac{dy}{dx} = A + By + C\sin(y) , y(l) = m$ and check how the solution gets affected like whether they exist or not depending on the initial conditions .If they exist how the solutions look like and how they vary when we vary the parameters $A,B,C... |
I like to simulate the free-space propagation of an electric field (beam radius ~ 1-10 cm) over extremely short distances (~ 5-10 cm). The reason is that the field is focused by a lens with a very small focal distance (~ 30 cm). For larger distances, the FFT based method works but it fails for short distances due to al... |
I have vehicles gps information in my real time traffic application. Averaging that information I know the speed of every road at any time. The problem is that is too much data to send back to the devices, so I need a way to group that speed data into classes so I can to simplify the problem.
Right now I have something... |
Im trying to compute a triple cross product of vectors a,b, and c in real space and integrate over the entire space. The result is a term in the hamiltonian for an electronic system so there are indices for the band number too (you can think of a and b as gradient of wavefunctions in real space and of c as a vector fie... |
I have two finite sets of events $\{x_1, ..., x_N\}$ and $\{y_1, ..., y_N\}$ that are sampled from the PDFs $f(x)$ and $g(x)$, respectively, where $x \in [-1,+1]$. I want to estimate the Legendre expansion of $r(x) = f(x)/g(x)$ using these events. What is the best method? (Note that $g(x)\neq0$ over $[-1,1]$)
|
The algorthim use for updating the voltage of each componant at every time step is
$$v(t+\Delta t)=\begin{cases}
v(t)e^{-\gamma \Delta t},& n=0\\ v(t)e^{-\gamma \Delta t}+h_{*}& n=1\end{cases}$$
where $n$ denotes the number of impulses arriving at a componant in the interval $(t,t+\Delta t).$ Here $ h_{*}=0.03, \gamm... |
In May, there was a question on Stackoverflow, 3 dimension prediction limit in R, a special form of the "smallest enclosing rectangle" problem. Because the problem has not been solved there, I would like to formulate it here as a problem in discrete optimization and hoping for an efficient algorithm to solve it exactly... |
I am hoping to start (very slowly) on implementing some form of a computational photonics/electromagnetism package. I know things like Meep, S4, FDTD++, EMPy, and a host of other proprietary/free/closed source tools exist, but this is more about hopefully getting a long-term project for myself that I can use as a multi... |
So I have a 3D mesh made of elements with eight nodes, 12 sides per cell, and in the course of my simulations, I would have to interpolate data from those nodes onto a point inside the cell with a given x, y and z value. I know Trilinear Interpolation does the job, but would there be a faster way to do the same, given ... |
I have a Hermite Cubic Finite Element Space on a computer in the form of Matlab m-files. More specifically, I can evaluate four "shape functions" $N_1, N_2, N_3,$ and $N_4$, for which the following holds on the boundary of the "reference element" $K_R= [-1,1]$:
\begin{align*}
N_1(-1) = 1, N_1(1) = 0, N_1'(-1) = 0, N_1... |
I'm currently developing a finite element solver for academic/research purposes. Therefore I'm searching for a pre- and postprocessor in my toolchain.
For a previous project I have used gmsh as a mesher and paraview as a postprocessor, but I'm not satisfied. Gmsh works for meshing but I had my fair share of problems w... |
What methods are known for efficiently solving a large set of linear homogeneous ordinary differential equations of the following form?
\begin{equation}
\mathbf{B} \frac{d\mathbf{y}}{dt} = \mathbf{A} \mathbf{y},
\end{equation}
where $\mathbf{B} \in \mathbb{C}^{N\times N}$ is Hermitian positive definite,
$\mathbf{A} \... |
Let's pretend we have a spatially discretized PDE of the following form:
\begin{align}
\frac{\partial^2 \boldsymbol{u}^k}{\partial t^2} = D\boldsymbol{u}^k
\end{align}
where $D$ can be any form for now and $k$ refers to this being the discretization at time $t_k$. Then let's suppose, for example, we use a central diffe... |
Let $A$ be a $n\times n$ square symmetric matrix. In addition, $A\succeq0$ and $\mathrm{rank}(A)<n$. This means that all eigenvalues are non-negative, but also that there are some zero eigenvalues. I want to perform quadratic optimization of the functional
$$
\frac{1}{2}x^HAx+b^Hx
$$
under convex conditions $x_i\geq0$... |
I am modelling the time-evolution of a soft material with a tetrahedral mesh. I use an FEM method to compute the forces on each node, and then numerically integrate the positions and velocity of the nodes over time. The basic equation is
$$MU^{\prime\prime} + C^{\prime\prime} + F(U) = R$$
where $M$ and $C$ are the mas... |
Reading Nocedal's book on optimization, I came into the concept of local minimizer, which is a well-known concept in numerical optimization. However, I think I am having a rough time trying to come up with an intuitive understanding of the different types of local minimizer. Let us recall the following three definition... |
I would like to perform post-optimal analysis using Matlab linprog. But it does not provide any information about that. So required a way to get the info about optimal basis, basic and non-basic variables via the solution of interior-point or dual-simplex algorithm of linprog.
|
I have written some Python code to determine the numerical roots of the following non-linear equation:
$$f_m=\tan\lambda_m - \frac{\lambda_m}{1+a}$$
where $\lambda_m\gt0$ and $a\geq0$. The code is:
import numpy as np
from scipy.optimize import root
func = lambda λm, a: np.tan(λm) - λm/(1+a)
λm0 = np.linspace(np.pi, m*... |
I have a system of the form
$$A(u)f(u)=b$$
where $A$ is basically a matrix originating from the Finite Element Method.
I try to solve it using the Newton method:
$$R = A(u_{i}) f(u_{i}) - b $$
$$u_{i+1}=u_{i} - J^{-1}R$$
where $J$ is the Jacobian of the residuum $R$ with respect to $u$.
At a first glance, it works fine... |
Specifically, the diagonal elements (can possibly both positive and negative) of the matrix can be computed efficiently but the total number is large ($\mathcal O(10^{18})$).
My first thought about this was running an MCMC (Markov Chain Monte-Carlo) with the weight set to be the absolute value of each element; however,... |
I have the biharmonic equation on a 2D rectangular domain $\Omega$ with the following boundary conditions:
$\Delta^2 u = f$ on $\Omega$
$\nabla u \bullet \mathbf{n}=0$ on $\partial \Omega$ (1)
$u_{xy} = 0$ on $\partial \Omega$ (2)
I need the weak form of the equations.
I am familiar with Nitsche's method and I can imp... |
Say you have a triangular mesh on a flat plane.
This has been drawn to eventually solve some problem in mechanics, for example.
A mesh of equilateral triangles is the best inasmuch as the distances between the vertices and between the centroids are the same all over. This makes interpolations and the calculation of gr... |
Suppose I have a complicatedly shaped conductor with inhomogeneous conductivity. The conductor is modeled using the Finite Element Method. The conductor has electrical contacts on both ends. Those contacts are represented in the FEM mesh by a couple of nodes on either end of the conductor.
Now, I'd like to simulate cur... |
I am using OpenSees to model a simply supported beam with a point load in the middle. The model is in consistent units. The beam is made up of bilinear quad elements. I have used 30 elements along the length of the beam and 1 element along the height of the beam.
The material is isotropic with the following propertie... |
I am trying to solve a 1D initial boundary value problem in MATLAB using Finite Elements with time stepping, for the purpose of learning scientific computing and to build up to more difficult problems. The initial boundary value problem is:
Find $u(x,t)$ such that:
\begin{align*}
u_{xxxx} + u_{tt} = f(x,t), \\
u(0,... |
Consider a nonlinear advection-diffusion equation of the form
$$
\frac{\partial u}{\partial t} = \nabla \cdot (a(u) \nabla b(u) - \vec{c}(u)u) \tag{1}
$$
on a rectangular domain with Dirichlet boundary conditions. We have $a(u) > 0$ for all $u \in \mathbb{R}$ and $b(u)$ is a monotonically increasing function of $u$. I ... |
Say I have a set of discrete acceleration data and want to integrate it to get a set of velocity data. How accurate is the cumtrapz (Cumulative trapezoidal numerical integration) integrator in MATLAB?
Does it follow that the more acceleration data I have (for whatever fixed timescale), the better results I'll get from... |
I have the following two PDEs:
$$\partial_zU=\nabla_r^2U+\varrho U$$
$$\partial_t\varrho=a\vert U\vert^4$$
with $a$ a constant and
$$dt=dz\cdot\frac{n}{c}$$ with $n$ the refractive index of a material, and $c$ the speed of light.
My current approach is that I apply a crank-nicholson-algorithm on the first equation by ... |
I have a fair background in pure mathematics and right now my project is a numerical implementation of a certain algorithm. I have some numerical background, but not all that much, so the question is simple:
In my algorithm, I have to calculate the value of certain parameter
$$h_r = \lim_{t \to \infty} I(t,r),$$
which ... |
Suppose that I have a large (on the order of 10^6 unknowns) 3D scalar Poisson system which I would like to precondition. The boundary conditions have been treated so that the system is SPD. I.e.,
$$\nabla\cdot(\kappa(x)\nabla u(x)) = f$$
the matrices tend to have the following structure (this is a very small problem, t... |
The following least-square problem can be solved efficiently (e.g. using matlab's lsqlin):
$$\vec{x}^*=\arg\min_\vec{x} ||C\vec{x}-\vec{t}||^2\,\ s.t.\ Ax \le \vec{b}$$
where the parameters of the problem are vectors $\vec{t},\vec{b}$, and matrices $A,C$.
Is there an efficient way to solve this in parallel for multiple... |
To study an approximation for the heat equation $$\frac{\partial^2 u}{\partial r^2}+\frac{1}{r}\frac{\partial u}{\partial r}+\frac{1}{r^2}\frac{\partial^2 u}{\partial\theta^2}=f(r,\theta)$$
on the disk $D=(0,1)\times(0,2\pi)$ with periodic boundary conditions, we used the following finite difference method
$$\frac{u_{i... |
I am trying to understand the nodal and modal basis formulation from the book of Hesthaven (Nodal Discontinuous Galerkin Methods, Hesthaven, Jan S., Warburton, Tim). For $N=2$, I get the Vandermonde Matrix, which is computed by the Jacobi polynomial for $\alpha, \beta =0$ which is the Legendre polynomial:
V = Vandermon... |
For a 2D HDG code, I would like to be able to visualize the solution on the edge space between elements. Basically, this amounts to plotting the solution on the "green" nodes below.
Is there a standard way using VTK / Paraview to plot these values along all the green line segments (using a colorbar)?
|
I'm able to find many definitions and notions to this term including,
Implementing the algorithm (or part of it) in hardware :- Instructions like FMAD; FPGAs
Parallelizing the algorithm at the hardware level :- SIMD, GPU etc.
So, what exactly is Hardware Acceleration ?
I would like to understand the meaning of the wo... |
I have a problem for which I am trying to determine the most suitable software to use. Here is a brief description of the problem.
I have a mixture of inertial particles A and B with different properties. I want to inject this mixture into a channel filled with fluid, and observe the transport properties. I expect inte... |
I'm testing a finite volume scheme, Godunov type solver, using a problem with analytical solution. I'm not able to reproduce the solution, which includes source terms. I tried with different mesh sizes and I get the same result but it's not what I should get.
Because I suggested to one of my professors that maybe the c... |
Eigen's documentation says that any BLAS back-end can be used (e.g. MKL) to perform the actual matrix calculations.
It is, however, very vague when discussing the criteria as to which the calculations are offloaded (with added emphasis):
When doing so, a number of Eigen's algorithms are silently substituted with calls... |
I am writing a 2D pseudo spectral code for turbulence in a box with 1024 grid points with 3/2 aliasing scheme in the vorticity/stream function formulation. the vortices tends to appear very slowly and energy is decaying faster than expected at a Reynolds number of 5*10^4. The faster decay in energy leads to very slow v... |
I developed a parallel 2D overset mesh (chimera) assembler and I would like to test a large scale problem. I don't want to make up a test case myself but rather want something standard. Would you refer me to such test cases?
|
First, let just me stress that I'm not a an expert in computation chemistry, so now the problem:
We have GCMC molecular simulation, in the Grand Canonical ensemble, using the standard metropolis algorithm.
We would like to port the program to CUDA and run it in parallel.
There are several techniques to parallelize such... |
In the paper http://www.sciencedirect.com/science/article/pii/S0045782509003521, an HDG element-local equation is described on page 584 equation (4), with one of the equations taking the following form
$$-(u_h,\nabla q)_K = -\left\langle\hat{u}_h \cdot n, q - \bar{q}\right\rangle_{\partial K}$$
Which is the variation... |
As multigrid methods are known to have grid independent convergence rates with $O(N)$ computational cost, then why would one be interested in using Krylov subspace methods at all, for which convergence rates deteriorate with grid refinement? Are there any problems where Krylov solvers perform better than MG methods?
|
I would like to get started solving Fluid-Structure interaction problems.
I already have some experience with Finite Elements, including my own MATLAB and Julia software packages for developing Finite Element programs, i.e., I can confidently approximate the solution to some basic 1D and 2D initial-boundary-value-prob... |
We have a 3D simulation box (cubic, side $L$) filled with $N$ non-overlapping objects (say spheres). We are interested to study the evolution of the system under an applied pressure in the z-direction (so the pressure has only a non-zero component orthogonal to the top face of the cube).
In a simulation, let's for cla... |
I am trying to apply a polynomial interpolation to 340 points in a 4D space, i.e.,
$$f(x,y,z)=k\, .$$
What I would like to understand is this: if I use a 6th order polynomial I will end up with 343 degrees of freedom [(order+1)^(dimensions)] for my polynomial, which is a number greater than the actual available number ... |
Given two sets of (two-dimensional) points, say, $A=\{a_1,a_2,\ldots,a_{n_a}\}$ and (you guessed it) $B=\{b_1,b_2,\ldots,b_{n_b}\}$, and $d^2_{i,j}=\mid a_i-b_j\mid^{\ 2}$ the "matrix" (not necessarily square) of distances between them, I want to map $m:A\to B$ (i.e., with each $A$-point $a\in A$ associate a correspond... |
I need a fast and accurate method to calculate 3d spherical volume integrals.
I have pre-calculated data of high precision that just needs a few trivial manipulations before each integration step - in other words function calls are mostly just array look ups and multiplication and so are relatively cheap.
The data is e... |
I am trying to fit a polynomial through 340 points in a 3D space, i.e.
$$f(x,y,z) = k$$
I asked previously about the theory behind polynomial interpolation here ->
Polynomial interpolation
Few interesting points came out from the discussion, but I would like to understand how to correctly implement them in Python.
I a... |
The scipy.special.sph_harm function evaluates a spherical harmonic function at a point. Does Scipy provide any functions to compute the spherical harmonic coefficients for a data set?
|
I am trying to compute the eigenfunctions of the Laplace operator, i.e. finding $u$ in
$$ -\nabla^2 u = \lambda u .$$
For now I am trying to do this in 1D, so
$$ \nabla^2 = \partial_{xx} .$$
I am using the finite difference method. My boundary conditions are $u=0$ at $x = -1, 1$. Here is my code, and the results:
impor... |
Are there any reasons for why one should choose high order implicit Runge Kutta (IMRK) over BDF time stepping? BDF seems much easier to me as $q$ stage IMRK needs $q$ linear solves per time step. Stability for BDF and IMRK looks to be a moot point. I can't find any resources comparing/contrasting implicit time stepp... |
Let $u_n$ be an array containing discrete values of the function $u(x,y)$. Performing a 2D FFT to this array we obtain $\hat{u_n}$ representing the values of $\hat{u}(k_x,k_y)$. I would like to perform something like the 2/3 rule often used in pseudospectral methods for fluid dynamics:
$$\hat{u}(k)=0\qquad if \quad k>... |
I am a beginner to Python. Currently I'm writing a code for developing a simple solver for non-linear ODE systems with initial value. The equations of the system are
The function of myu is evaluated first to get the value of myu, then used in dX/dt, dS/dt, and dDO/dt. At the next step, myu is evaluated again to get i... |
I am trying to solve an ill-posed linear system of equations. The particular system has 160 equations and 400 variables. Moreover, the condition number of the left hand side matrix is of order $10^{16}$.
I came across two methods to solve this problem: constrained optimization and regularization methods. My question is... |
Suppose you have a classification problem, now what if I implement and train all classification models like logistic regression, KKN, naive Bayes, decision tree or random forest on the training data set (we can change our data set to big or small according to the model). And now what I do is keep these classifiers for ... |
What are the techniques on inverse problems to discover the distribution of parameters from a discrete set of values? For instance, I know that my domain where the PDE is defined is made up of materials A, B and C, but I do not know how they are distributed inside the domain. Working with discrete optimization algorith... |
I am trying to compute the one-dimensional energy spectra for my channel-flow simulation. I have already written a post-processing script to achieve this; however, I need to validate my code before proceeding.
To do so, I am taking the two-point cross-correlation (per given plane) vector from a DNS database. Then, I am... |
Suppose we have the inhomogeneous advection equation
$$\left(\frac{\partial}{\partial x}+\frac{1}{c}\frac{\partial}{\partial t}\right)u(t,x)=v(t,x)$$
for $u,v:\mathbb{R}\times\mathbb{R}\to\mathbb{R}$ (with boundary conditions not yet specified).
Assuming that we had no $v$, i.e. the homogeneous part of the equation, th... |
Are there error estimators and research on adaptive timestepping schemes for SSPRK methods? My Googling could not uncover papers which addressed this, so I was wondering if there was anything particularly difficult about deriving such error estimators. I think the difficult thing is that the SSP property only occurs wh... |
I'm searching for semi-empirical quantum chemistry solver which would be easy to integrate into my own software. I found a few implementations which can be in principle used e.g. MOPAC, ORCA, SQM some of which are integrated e.g. into Molecular Design Toolkit. But I don't want to depend on 1GB packages when I need only... |
So I have been investigating a problem to get a glider with control of its elevator to fly as far as possible from any given initial state. To keep this simple, we will view this in 2D space with the following differential equation:
\begin{align}
\dot{\boldsymbol{q}} = \dot{\begin{bmatrix}
x \\
y \\
\theta \\
\phi \\
... |
I have a question concerning computational geometry which arises in the simulation of fields with topological defects, and I'd like to know whether there's an efficient algorithm (or any algorithm) to solve it.
The problem is basically the following: consider a grid cell $\mathcal{C}$ in a 3-D cubical grid. On each... |
I have a function that I need to numerically integrate from $0$ to $+\infty$, given by:
$$I = \int_0^{+\infty} \mathrm{d}x\,x\,T^2(x)f(x)$$
where $T^2$ is an interpolated function that goes to $1$ at small $x$ and decays as $x^{-4}$ at large $x$.
$f$ is an oscillating function with known zeroes:
$$f(x) = j^2_1(\alpha x... |
I've implemented the Finite Element Method to model the heat transfer between two different materials where one material is surrounded by the other.
When I run the model I'm getting some strange results. Whenever I run the model, I get what appears to be a sinc function through space and a linear change through time. M... |
I am using a program that creates viscous/absorbing boundaries by implementing Kelvin-Voigt elements.
The theory behind 1-D Kelvin Voigt elements is given in this Wikipedia page.
In my case I am running a dynamic analysis on a 2D continuum but applying viscous boundaries on the right and bottom boundaries as follows:
... |
In a personal project of mine, I've derived a couple of equations.
$$ \sum_{j=1}^Nu_{ij}^*(\theta_1,...,\theta_N,J) - k_{i} = 0 \qquad \forall 1\leq i \leq N$$
$$\sum_{i<j}^N\big(u_{ij}^*(\theta_1,...,\theta_N,J)\big)^2 - O^* = 0$$
where $u_{ij}^*(\theta_1,...,\theta_N,J)$ is a solution to the equation
$$u_{ij} =\frac... |
What are some applications where you would absolutely go for either FEM, but not FVM, or vice versa? What are some applications where both methods are equally suited?
I worked with the FEM so far and have written various codes, but I sometimes wonder whether I should also use FVM in future.
|
I am trying to implement the algorithm described in reference 1 using cvxpy. However I am struggling to constrain the matrix $Z_j$ as described in equations (33-35). Citing the paper ($\bar{\mu_j}$ is just a vector):
Remaining constraint on $R_j$ is:
$$Z_j= \left[ \begin{matrix} 1 && (\bar{\mu_j})^{'} \\ \bar{\mu_j} &... |
I am interested in finding the eigenvalues/eigenfunctions of problems such as
$$ \partial_{xx} u = \lambda \partial_{yy} u, $$
which can be solved as the generalised eigenvalue problem
$$ \mathbf{A} \vec{u} = \lambda \mathbf{B} \vec{u}, $$
using the finite difference method. My question is about how to incorporate Neum... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.