instruction stringlengths 43 28.1k |
|---|
I am numerically computing the following integral as a function of positive $k$.
$$I(k) := \int_0^\infty x^b(k+x)^{a-1} e^{-x} dx \tag1$$
It is shown in math.stackexchange.com that this can be expressed as the confluent hypergeometric function of the second kind
$$I(k) = k^{a+b} \Gamma(b+1)\, U(b+1, a+b+1, k) \tag2$$ ... |
In terms of numerical optimization, the newton-rapson method requires a pos. definite Hessian $\nabla^2f$ respectively pos. curvature for computing the next step $p_k$ by solving $$\nabla^2 f p_k = -\nabla f$$
If I'm dealing with a vector valued function, e.g. a system of equations $F$, the newton step $p_k$ gets comp... |
Artificial Intelligence (AI) and its subsets i.e. Deep Learning (DL), Machine Learning (ML) etc. are becoming more and more ubiquitous in engineering, technology and science. Modeling and Simulation (M&S) is no exception. I am currently engaging in a project with the objective of exploiting the synergy put forward by A... |
I have a list of probabilities $p_k$, each corresponding to a Bernoulli distribution. These values of $p_k$ are all small (let's say 0.1% or less). I want to prepare a data structure that allows quickly sampling each of the Bernoulli distributions and returning the sparse set of them that returned 1 instead of 0.
Naive... |
I want to simulate the response of a nonlinear system given in the following form:
$$ \dot{x_1} = f_1(\bar{x_1})+g_1(\bar{x_1})x_2, \ x_1(0) = 0.2 $$
$$ \dot{x_2} = f_2(\bar{x_2})+g_2(\bar{x_2})x_3, \ x_2(0) = 0.5 $$
$$ \dot{x_2} = f_3(\bar{x_3})+g_3(\bar{x_3})u, \ x_3(0) = 0.5 $$
$$ y = x_1 $$
where $u$ is the control... |
I have a sparse symmetric positive-definite matrix $M$ and I expect the entries in some rows/columns to have very different orders of magnitude (up to a factor of $10^8$) than the entries in others.
If I am going to solve a linear system involving $M$ using sparse Cholesky decomposition, is there any numerical benefit ... |
I’m using Mathematica home edition software to numerically solve a specific inflation equation in cosmology. The ODE equation is forth- order, non-linear, stiff. I was using the stiffness switching method and with Working Accuracy of 60, 100, 200, but I’m not getting a stable result.
Plugging in the result back into th... |
I'm solving a system of linear equations obtained from the FEM discretization of a simple linear elasticity problem on a cube with zero displacements at one plane and a load on the opposite one. The system size is about 85000. I use conjugate method preconditioned with smoothed aggregation multigrid method that I provi... |
I have a matrix multiplication in Matlab that goes as follows
$$\hat{W} = N W N^{T},$$ where $^T$ means a transposition. $N$ is an incidence matrix with the dimensions m x n and
W = diag(G), where G is a 1 x n row vector, which makes diag(G) n x n. So basically, when I have a large vector G, e.g. more than 1000 elemen... |
I am trying to simulate the unsteady pollutant concentration along the reactor by solving the 2nd order PDE below with the stated BC and IC. which method is appropriate to solve convection-diffusion-reaction equation (unsteady state) using MATLAB. I solved the steady state using the function pdepe.
Note: I have no kno... |
In most of the Monte-Carlo-Algorithms I studied, I found, at the place where they compute the energy, always a line of code, where they divided by four.
For example, this code-snippet is taken from here
def Energy(Q):
starting_energy=0
for i in range(len(Q)):
for j in range(len(Q)):
... |
For a given set of data points
$$\{(x_i, y_i, z_i)\}$$
there exists some
$$f_{ABC}(x,y)=Ax^2+Bxy+Cy^2$$
that minimizes
$$\sum_i(f_{ABC}(x_i,y_i)-z_i)^2$$
$A$, $B$, and $C$ can be found quickly by directly solving/minimizing
$$(\begin{bmatrix}x_1^2&x_1y_1&y_2^2\\x_1^2&x_2y_2&y_2^2\\x_1^2&x_3y_3&y_3^2\\\vdots&\vdots&\vdo... |
My goal is to transform a matrix into upper triangular form in Python. I know the function scipy.linalg.lu will do LU decomposition and get both upper and lower triangular ones. I need to repeat this procedure several times. If there is functions from Scipy, blas, or lapack that compute only upper triangular matrix, th... |
I have to solve the the problem $u_t+\Delta^2u=f(u)$, where $f(u)$ is non-linear, using domain-decomposition method.
My approach is first using fixed point iteration on mixed form i.e to say $u^{k+1}_t+\Delta w^{k+1}=f(u^k)$ and $w^{k+1}=\Delta u^{k+1}$, then using usual domain decomposition procedure.
Another approach... |
Question
Does lacking positive definiteness of the matrix of coefficients in a system of equations, make using iterative solvers impractical?
Description
Using the finite volume method, I have obtained a system of equations for the dependent variable (the unknown field). The problem is that I want to use iterative so... |
I have a differential system like this, where $\Phi$ is a scalar valued unknown function:
$$\nabla\Phi = \left(f_1(x, y), f_2(x,y)\right)^T$$
I'm trying to solve it in a FEM solver (COMSOL Multiphysics), where $\Phi$ would be my dependent variable and $f_1, f_2$ are known functions.
Normally, the DE describing a depen... |
Is it possible to solve a linear program with an active set method? If so what would be the similarities and differences to the simplex method?
|
Suppose that $R$ and $D$ are an $n \times m$ and $m \times m$ matrices. Assume that $m \ll n$ and that $D$ is positive definite. We would like to solve the system $(R^T R + D) x = R^T b$. This involves the matrix multiplication $R^T R$ which is quite costly, $O(m^2 n)$ in the worst-case.
Instead, letting $z = R x - b$... |
I want to prove the LBB condition for the Stokes Equations discretised by the Crouzeix-Raviart element.
The continuous Stokes Equation in the weak formulation is
Find $u \in H_0^1(\Omega, \mathbb{R}^d)$ and $p \in L_0^2(\Omega)$ with
\begin{align} \int_\Omega \nabla u : \nabla v dx - \int_\Omega
p \text{ div} (v) dx ... |
From a given data set, I set out to complete a task which is below
Fit the data of the previous exercise to fit Eq. (8.18) using the SciPy function scipy.optimize.curve_fit(). Plot the data as symbols and the fit as a line on linear and on log-log axes in two separate plots in the same figure window. Compare your res... |
While solving a 2D heat equation in both steady-state and Transient state using iterative solvers like Jacobi, Gauss seidel, SOR. Should the answers, I mean the converged results of Temperature contour on the 2D surface be the same?
As transient state is solved using certain time steps to get to steady-state. So does ... |
I guess convergence in general means it is in asymptotic sense but what does non-asymptotic convergence mean?. Can someone please explain with an example?
|
I'm trying to implement the algorithm outlined in https://arxiv.org/abs/1211.5608 on a small scale. I have a linear operator $\mathcal{A}$ which is defined as $$\text{trace}(A^*_l(hm^*))$$ where $$A_l = \hat{b}_l\hat{c}_l^*$$, where $\hat{b}_l$ and $\hat{c}_l^*$ are columns and vectors of different matrices.
I've used ... |
I want to solve this integral using RK4 by coding in Fortran:
$$R=∫1/a(t) dt → dR/dt=1/a(t) =f(t)$$
Initial point: t=0 (or a=0.001) and R=0
And I have to get a(t) by solving another differential equation:
$$da/dt=1/a+1/a^2 =g(a)$$
Initial point: t=0 and a=0.001
I wrote this code to get a(t):
PROGRAM R... |
I am simulating Ising model for NiO. I have simulated for 2d,3d,triangular lattices, and have tried to do the same with NiO model.
There are papers which say that the ground state energy is around -36 mev per particle. Where as I am getting -21 mev per particle (should I not consider Oxygen atoms?, then it will be -42... |
I have been digging into some numerical linear algebra lately, and reading in particular about how LAPACK solves symmetric eigenvalue problems. I noticed that the *stegr routine for computing eigenvalues and eigenvectors of a symmetric tridiagonal matrix (to which the more general cases are reduced) is $\mathcal{O}(n^2... |
Based on this LAPACK routines list, it looks like there is no relatively robust representation (RRR) driver routine for either packed or banded symmetric eigenvalue problems. According to the relevant LAPACK documentation though, it appears that the RRR driver is the fastest algorithm in most cases and uses the least w... |
Say I have a set of numerous probabilities given by their logarithm : $\{\ln p_i, 1 \leq i \leq N\}$.
I want to compute $\sum p_i$, if possible without exponentiating $\ln p_i$, since some of those probabilities are really small and I would suffer a dramatic loss of precision by doing so.
Do you know of any clever tric... |
I am trying to build understanding on the Helmholtz wave equation $\Delta p + k^2 p = 0$, where $p$ is the deviation from ambient pressure and $k$ the wave number, in order to use it in numerical simulations. However, I'm not sure how to interpret the results. Take as an example the figure 5 on this work
More precisel... |
I'm terribly green, please forgive me. I need to plot the difference between a chosen calculated Taylor expansion
$e^x=1+x+\frac {x^2}{2!}+\frac {x^3}{3!}+\frac {x^4}{4!}+\frac {x^5}{5!}$...
and the true value of $e^x$ as a function of the number of terms included. I'm excited to work through this but am unsure how to ... |
My application calls for solving a dense, 40,000 x 40,000, ill-conditioned linear system. The native SciPy GMRES solver with preconditioning has worked well for my application and solving a single system is within the ability of my local hardware. I am now looking to perform many such calculations and would like to mov... |
I'm working in ETABS. There are few columns of dimension 300mmx1400mm. The height of building is 36.6 meter above ground level and the dimension of building is 26mx68m. I'm getting the time period of this model as 3.08 which is way too high. Hence i thought of changing the above mentioned columns to shell elements whic... |
Is there any way to make a bode plot without using the MATLAB/GNU Octave function bode()?
As an example, here is a function I am working on:
$$H(s) = \frac{1}{2s^2+3s+4}$$
|
I'm using scipy's solve_ivp for solving a stiff differential equation. I'm using method BDF for solving the same.
I have already used MATLAB's ode23s and I'm getting correct results in MATLAB.
However, solve_ivp returns the wrong results. The problem might be in computing X.
My code is :
X0=np.array([0,0,0,0,0,0])
swd=... |
TLDR: I used Python to write a 2D Finite Element program using 'Constant Strain Triangles' and my beam keeps pointing slightly upwards instead of straight sideways (like the force). I'm new to FEA and have very little linear algebra experience so I don't have the insight to know if I did something fundamentally wrong.
... |
CONTEXT
I need to combine the probability of occurrence of many thousands of events for millions of individuals (trees) in an agent-based/individual-based simulation model developed in NetLogo (agent-based simulation) and Go (to parallelize probability calculations). For those interested, the probabilities are for infe... |
I'm trying to find a way to sample new points that have maximum minimum-distance (maximin distance).
The current situation is where there are ns number of pre-existing sample points. I want N number of new sample points that are filling the space as much as possible (hence, the maximization of minimum distance).
The m... |
I'm trying to perform the inverse Laplace transform of a (noisy) dataset $y_i$ using Tikhonov regularization:
$$\min \sum_{i=1}^{N} \left(\int_0^\infty e^{-s_i t} f(t) \, dt - y_i \right)^2 - \lambda^2 \int_0^\infty f(t)^2 dt$$
where I know that $f(t) \geq 0$ for $t\geq 0$. I therefore convert that to a Non-negative le... |
I would like to solve the linearised, ideal, MHD equations, where the gas pressure is zero.
$$\frac{\partial u_x}{\partial t}=v_A^2(x,z)\left[\nabla_{||}b_x - \frac{\partial b_{||}}{\partial x}\right],$$
$$\frac{\partial u_\perp}{\partial t}=v_A^2(x,z)\left[\nabla_{||}b_\perp - \nabla_\perp b_{||} \right],$$
$$\frac{\p... |
I have heard the term 'computational microscope' used to describe the practice of molecular simulation (in the context e.g. computational chemistry, materials science) and its use as a numerical tool for predicting scientific properties of materials, etc. I have also heard 'numerical microscope' in the same context.
Is... |
(I have asked this question on StackOverflow previously but it has been pointed to me that CSSE or MSE could be more appropriate)
I have to solve a constrained optimization problem of the following form, where the only unknown is $x$:
$$ x^{*} = \arg \min_{x} \left \| Ax - b \right \|^{2} \qquad x \in \mathbb{R}_{\ge... |
For Navier-Stokes problems we can often choose a relatively simple verification problem such as the lid driven cavity, flow over a cylinder, or flow over a backward facing step to verify our implementation.
What are the typical reference problems for the time harmonic Maxwell equations?
Edit: With a focus on finite ele... |
I have a sparse lower-triangular matrix $L$, and a right-hand side $b$, and I'd like to solve the linear system
$$L^T x = b$$
but without explicitly creating $L^T$. Ideally, I could write something like:
L.selfadjointView<Lower>().triangularView<Upper>().solve(b).
It seems that this would be valid if $L$ were dense, b... |
I've learnt the hard way that you should avoid:
computing small numbers as the difference of two large numbers
evaluating chaotic functions with imprecise inputs.
Are there any other red flags a novice should look out for?
Edit
The comments made me realize I have stumbled onto a studied field. I'd like to know:
What... |
Consider the 1D nonstationary convection-diffusion PDE
$$
\begin{alignat}{2}
\partial_t u &= -a \partial_x u + D \partial_{xx}u, &\qquad x \in (0,1), t \in (0,T), \\
f(t) &= \left.\left( a u - D\partial_x u \right) \right|_{x=0} & \qquad t \in (0,T), \\
0 &= \left. -D\partial_x u \right|_{x=1} & \qquad t \in (0,T), \\
... |
I'm sure this question has been asked before yet after many hours of searching I am unable to find a definitive answer.
The problem at hand is solving the linear system: $$A \mathbf{x} = \mathbf{0}$$ with the constraint: $$ x_i \geq 0 $$
At present I apply SVD to obtain a set of vectors which span the nullspace of the... |
I need to develop a code to solve Stokes Equations in 3D in cubic geometries (structured grid, uniform mesh spacing).
My code needs to take a pressure gradient in one direction as a BC (pinlet=p1, poutlet=p0) and no-slip BC's in the other 4 faces of the cubic geometry.
I started to develop this code in Python, using a ... |
I'm trying to analyze the change in system thermodynamic entropy of an ideal gas system.
For reference, I'm analyzing solution techniques for solving the 1D compressible Euler equations:
$$
\partial_t \rho + \partial_x (\rho u_x) = 0\\
\partial_t (\rho u_x) + \partial_x (\rho u_x^2 + P) = 0\\
\partial_t e + \partial_x ... |
I am looking for tasks that
are unsuitable for GPUs
gain significant speedup as more CPU nodes are added
don't require large data transfer or inter-thread communication between nodes.
Do any problems of this type still exist?
|
All of my yearlong graduate-level Linear Algebra course notes from my professor—an algebraist/representation theorist—shows his love for the exponential map $e^A$ and the Jordan canonical form—and one main reason given by him is that they help solve linear differential equations.
But how true is this in practice?
I hav... |
I'm doing some numerical calculations involving Hermitian matrices, and derivatives of the eigenvectors.
Essentially, I have an n x n, Hermitian matrix H(x), which is dependent on some continuous parameter (x). I then need to calculate the Berry connection for this system. So suppose $U^\dagger(x) H(x) U(x) = \epsilon_... |
I am modeling a Helmholtz Coil as two dipoles from far away and I want to plot the magnetic field.
$$\mathbf{B}(\mathbf{r}) = \frac{\mu_0 |\mathbf{m}|}{4\pi r^3}\left(2\cos\theta\,\hat{\mathbf{r}} + \sin\theta\,\hat{\boldsymbol{\theta}}\right)\, .$$
I am struggling to plot the magnetic field in spherical coordinates in... |
For this problem
\begin{cases}
&\frac{d^2 u}{dx^2}=Log(1+x+y),in \quad\Omega=(0,1)^2\\
&u=0,\qquad on \quad\Gamma_{1}: x=0\\
&u=0,\qquad on \quad\Gamma_{3}: x=1\\
&\frac{du}{d\eta}=0,\qquad on \quad\Gamma_{2}: y=0\\
&\frac{du}{d\eta}=0,\qquad on \quad\Gamma_{4}: y=1\\
\end{cases}
Where $\eta$ is the unit normal vector... |
I am computing the nullspace of a sparse rectangular $m$ x $n$ matrix $A$, where $m$ << $n$. I do this by computing the QR decomposition of $A^T$ and extract the $n-m$ right-most columns of the resulting $Q$. Symbolically:
$$A^T=QR, Q=[Q_1 Q_2] , Q_2 = Nullspace(A)$$
Using this technique, I get the results I want but I... |
I am trying to solve the following linear PDEs
$$\frac{\partial u_x}{\partial x}=-[i\omega b_{||}+\nabla_\perp u_\perp],$$
$$\frac{\partial b_{||}}{\partial x}=-\frac{i}{\omega}\mathcal{L}u_x,$$
$$\mathcal{L}u_\perp = i\omega\nabla_\perp b_{||},$$
for $u_x=\texttt{ux}$, $b_{||}=\texttt{b_par}$ and $u_\perp=\texttt{u_pe... |
I have this
I want it to be single bended wire.
How to accomplish?
|
I know a little about fenics and freefem.
There exists a big difference between those and OpenFoam?
They are used in a similar way (editing a file and writing code)? or perhaps it is made for other types of problems? Is it appropriate for solid-structure coupled problems?
Finally, is it better than the previous ones in... |
I have tried to do a trapeze integration with f(x)=x^2, where I know how the antiderivative looks like, so F(x) = (1/3)x^3
Here's my code, just like I tried:
x = np.arange(-10,10, 0.01) # start,stop,step
f = x**2
l=it.cumtrapz(f,x, initial=0)
plt.plot(l)
Then I get this plot (1):
But the plot should look like thi... |
Background I wanted to learn how to couple FEM and BEM (for the Poisson equation), because I wanted to better understand how open boundary conditions look like. Therefore I worked through the relevant sections of “Principles of Boundary Element Methods” by Martin Costabe, summer course lecture, 1986 (28 pages). The las... |
I am trying to understand the FDM which is a widely used method solving differential equations by using approximation below.
$$\dfrac{\partial u}{\partial x}=\dfrac{u(i+1)-u(i-1)}{2\Delta x}$$
How can I apply the approximation the equation given below?
$$\dfrac{d}{dx}(z(x)\dfrac{d}{dx}u(x))=0$$ where $u(0)=a$ and $u(1)... |
Let $n = 10^6.$ Let $A \in \mathbb{R}^{n\times n} $ be the lower triangular matrix having 1's on and below the main diagonal.
We want to solve the following linear system:
$$ (A + uv^T)x = b$$
by the Sherman-Morrison formula:
$$(A+uv^T)^{-1} = A^{-1}-\frac{A^{-1}uv^TA^{-1}}{1+v^TA^{-1}u}.$$
We are asked to compute:
$A... |
The Gauss-Kuzmin distribution gives the probability of an integer appearing as a partial denominator in the continued fraction of a real number $x$ as
$$
P(a_k = k) = -\log_2\left(1 - \frac{1}{(k+1)^2} \right)
$$
The entropy (in bits) of this distribution is
\begin{align*}
H = \sum_{k=1}^{\infty} \log_2\left(1 - \frac... |
A current problem that I am working on requires me to compute the solution from the heat diffusion evolution on a discontinuous function. More precisely - I have a Delaunay triangulation and within each triangle a polynomial function is defined such that it can be discontinuous at the edges. For a constant function wit... |
I was wondering how specific symmetries or constraints such as property-invariance transformation are imposed on any (deep) neural net when they are trained.
I'll appreciate it if anyone can aware me of the relevant researches in this direction.
|
I’m trying to write the weak form of the Navier-Cauchy equation in the component form, where $u_1$ and $u_2$ are the displacement components:
$$-(2 \mu +\lambda) \frac{\partial ^2 u_1}{\partial x_1 ^2} - \mu \frac{\partial ^2 u_1}{\partial x_2 ^2} - (\mu + \lambda) \frac{\partial ^2 u_2}{\partial x_1 \partial x_2} - \r... |
What is the result of the method for multiple eigenvalues? Is there any case for which this method will not work altogether?
|
I'm working with a Matlab codebase wherein I'm attempting to solve A*c = b by approximating the (square) matrix A with its q largest principal components (basically using the rank-q PCA approximation of A). I'm currently doing that by writing c = pinv(A, tol)*b, where tol is the qth largest singular value of A. This ... |
I have a system of 4 nonlinear 1st-order PDEs. I want to solve them numerically by method of lines, first discretizing space. This leads to the system of $N\times 4$ coupled ODEs.
$$
\mathbf{u}_{i} = (u^{1},u^{2},u^{3},u^{4})_{i},\quad i=1,\dots,N\\
\frac{\mathrm{d}u_{i}^{1}}{\mathrm{d}t} = q_{1}(\mathbf{u}_{i}) \\
\... |
I have a large system of boundary value problems of the form
$$ \frac{d^2 y }{dt^2} = C(t) y + b(t), $$
where the variable $y$ is a vector that has anywhere from 50 to around 500 components, $C$ is a dense matrix whose entries come from data from a simulation, so there is no closed form for the entries, and $b$ also co... |
Are there $P0$ (zero degree/constant element) nonconforming methods for approximating solutions in $H1$? More specifically, I have the equation:
$$u-f - T\Delta u = 0$$
Which can be interpreted as heat diffusion for time $T$ with an implicit step in time. I know that this can easily be handled with CG (continuous Galer... |
Is there an iterative solver that can handle potentially zero entries on the central diagonal? I am implementing a polynomial fitting algorithm (up to $10^{th}$-order) and my matrix is a "Vandermonde-like" system that results in zeros for the odd-powered polynomial basis functions when my sample space is symmetric with... |
I have to integrate expression f(x) * g(x) for many different functions f but just one g.
I want to integrate it as sum of weighted values of f(x) * g(x) instead of calculating the table. Note that in Python I may write:
sum(w[i] * f(x[i]) * g(x[i]) for i in range(2 ** k + 1))
as:
wg = [w[i] * g(x[i]) for i in range(... |
I'm looking for a method to solve a 20000 variable, 20000 residual non-linear PDE with a Galerkin method.
I have Fortran subroutines for:
The residuals: $\vec{r}(\vec{x})$;
Their Jacobian multiplied by a direct algorithmic derivative seed: $\dot{r}(\dot{x})=\frac{\partial \vec{r}(\vec{x})}{\partial \vec{x}}\cdot\dot{... |
I wish to compute
$$
\frac{1}{1 + \frac{1^3}{1 + \frac{2^3}{1 + \frac{3^3}{1+\cdots} } } }
$$
to high accuracy. To start, I tried computing
$$
\frac{1}{1 + \frac{1^2}{1 + \frac{2^2}{1 + \frac{3^2}{1+\cdots} } } }
$$
whose limit ($\ln(2)$) was known to Euler. Using the modified Lentz's method, I found that increasing th... |
I have to solve the following PDE for a Call option :
$\partial_tV + \{ \alpha - (\mu - \lambda/ \alpha -log(S))\}S\partial_SV + 1/2 \sigma^{2}S^{2}\partial_{S}^{2}V - rV = 0$
Where V(S,t) is the price of the option as a function of stock price S and time t, $\alpha$ the strength of mean reversion, $\mu$ mean rate of r... |
I'm studying up on methods for numerically solving the Schrodinger equation. The Schrodinger equation with a zero potential is formally identical to the heat equation in the sense that we just make one of the coefficients in the equation imaginary.
A practitioner of finite-difference methods for the heat equation has t... |
I have a set of linear equations, $Ax=b$. And about half of the elements in the right-hand side (vector $b$) are equal to zero. My system matrix $A$ is a sparse complex matrix. And $A$ is in the size range of $2000 \times 2000$.
I am currently using LU decomposition to solve the system.
Is there a way that I can take b... |
I have a coupled set of PDEs that need to be solved as part of a larger problem. I am currently approaching this by computing spatial derivatives with finite differences and using PETSc's nonlinear conjugate gradient solver. This does converge in terms of an absolute tolerance, however, when I started thinking about th... |
I'm solving an elastic homogenization problem and I'm having problems with mesh artifacts.
I would like to first give a brief summary of what I do: I have a system with inhomogeneous (but isotropic) elastic properties, and I want to compute the system-scale (i.e., effective) shear modulus. Specifically, I compute the s... |
I am trying to obtain the weak form of the Navier-Cauchy equation, which is
$$- \rho \omega ^2 \textbf{U} - \mu \nabla ^2 \textbf{U} - (\mu + \lambda) \nabla (\nabla \cdot \textbf{U}) = \textbf{F}$$
and can be written in the component form
$$-(2 \mu +\lambda) \frac{\partial ^2 U_1}{\partial x_1 ^2} - \mu \frac{\partial... |
I have a saddle-point system of the form
\begin{equation}
\begin{bmatrix}
A & B \\
B^T & O
\end{bmatrix}\begin{bmatrix}
x\\
y
\end{bmatrix} = \begin{bmatrix}
f \\ \vec{0}
\end{bmatrix},
\end{equation}
where $A$, $B$ are matrices, and $O$ is a matrix of zeros, and $x$ is a solution vector of length $n$. Clearly, $y$ is ... |
I'm trying to figure out how to create a surface mesh from a set of labeled 3D points. The 3D object could be something like part of a cave system or asteroid where there would be parts of the surface not visible from looking on the outside. Each point has a radius and not all points are on the surface. The output shou... |
Given an $m \times n$ matrix $A$ and a vector $x\in\mathbb R^n$, with $m<n$, what's an efficient way of computing the projection of $x$ onto the kernel of $A$?
|
https://stackoverflow.com
Krylov solvers for iterative computation of the smallest singular value and the corrensponding singular vectors of a matrix
Edit:
This is a follow-up question to How to implement flexible gmres in matlab?.
I am a student and I am working for the topic of "Krylov solvers for iterative computa... |
I am working on a problem with very large sparse matrices. I'd like to compute $A^{-1} B$, that is a crucial part of converting DAE to ODE (and there is no workaround). Here size of $A$ is 2E+5 x 2E+5 with 0.7% density (especially all diagonal entries are non-zeros). And $B$ is 2E+5 x 1E+6 whose density is only 1E-6.
I... |
For stable time steps for the RKDG method for transport equations we require that
$$
\Delta t \le \frac{\Delta x CFL}{(2k + 1)|\lambda|},
$$
where $\lambda$ is the eigenvalue of our conservation law and $k = 0, 1, \dots$. For diffusion I believe we require that
$$
\Delta t \le \frac{\Delta x^{2}}{\nu},
$$
where $\nu$ ... |
In Fourier Optics one often needs to compute approximations to bivariate integrals like
$$
\int_{-\frac{l}{2}}^{\frac{l}{2}}\int_{-\frac{l}{2}}^{\frac{l}{2}} {\rm e}^{i\phi(\xi,\eta)}\mathrm{exp}\left[i\frac{\pi}{\lambda d}\left((x-\xi)^2-(y-\eta)^2\right)\right]{\rm d}\xi{\rm d}\eta
$$
These integrals generally reduce... |
I am using the reduced chi-squared statistic to determine the goodness of fit. I run several simulations and determine that a parameter 'p' has a certain range of values that all give values between 0.9-1.1 for the reduced chi-squared. Visually all the fits are deemed acceptable. Is there are a way to estimate the erro... |
I have the following convolution as part of a numerical simulation.
$$T(r)=\int \mathrm{d}^3r_2\, p(r_2)f(r_2)\alpha(r-r_2)\, .$$
My problem is that the analytical expressions for $f$ and $p$ do exist but, I have the expression for $\alpha$ only in the Fourier domain in the form of $\alpha(k)$. I planned to evaluate in... |
Say the model is $F(x_1)G(x_2)Z(x_3) = y \in \mathbb{R}^N$, with $F,G,Z$ explicitly known, we are given observation of $y$ as $y_b \in \mathbb{R}^N$ to find the value of $x_1$, $x_2$, $x_3$ for each sample. Clearly this is an underdetermined inverse problem.
I have seen some iterative algorithm like this,
start wit... |
Suppose if we take $X_h(G)$ as finite element space then this space (space of piecewise constant basis function)is defined as
$$X_h=\{v: v|_{T}=c_{T}, T \in \mathbb{T}\},$$
where $\mathbb{T}$ is a subdivision of domain $G$. Then my main question is
"How to define (or fix value) of constant $c_T$"?
|
It is often said that modified Gram-Schmidt is more robust with respect to rounding errors than classical Gram-Schmidt, but it is very hard to find a good explanation / example of why this is so. Can anyone provide such an explanation / example.
|
A toy problem would probably be best to explain it this. Let's say we have 100 people, each with 4 unique types of items (to simplify things, let's say it's the same four types of items for each person). For each of these people, they have a different number of each item type they need.
So for person one they have ite... |
Can I use QZ decomposition on a single square matrix in Matlab?
Like,
[Aa,Q,Z]=qz(A);
|
When a set of model equations, e.g. some coupled differential equations, has solutions that behave in ways similar to real-life phenomena such as blood flow in the heart, a wave movement, or a plate in free fall in some fluid (air or water), why do we call the model equations "a model for blood flow in the heart ...", ... |
As a computational scientist, are there limitations to studying dynamical systems — systems of odes in which each state variable evolves with time — compared to studying PDEs?
For instance, it seems that modeling blood flow in the heart is done with PDEs, but in some research papers for fluid-structure interactions for... |
I have a combinatorial problem regarding the optimal placement of sensors. I want to find the optimal placement of $N$ sensors, given $M$ possible locations, $N < M$. Right now I'm working with values of $N$ and $M$ around 15 and 30, respectively, but ideally, it could be scaled into the thousands. The cost that I want... |
Let's say I'm interested in fluid dynamics, specifically in fluid-structure interactions -- and I want to get into modeling, simulations and experiments. I am a mathematics student by training, having taken yearlong courses in introductory analysis, linear algebra, complex variables, and a semester of probability theo... |
When you have a mesh, there are many well-known methods to navigate it, as for example using a half-edge data structure, that allows easy circulation around faces and vertices.
Are there similar structures/algorithms for kd-trees, that allow you to easily find adjacent and overlapping (half)faces?
I am mostly intereste... |
Before running a simulation for turbulence (e.g Rayleigh-Benard Convection), how do we check for well-posedness of Navier-Stokes with other equations for a given boundary condition??
Can someone point to any reference to read on this topic??
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.