instruction stringlengths 43 28.1k |
|---|
In FEA simulation of simple beams (3D solid and shell/plate), I have taken a simple geometry:
A long beam in the y direction
a concentrated load applied on the plane of symmetry
There is a pin or roller joint at some point between the symmetry plane and end of the beam:
load
a b ... |
I am implementing a fluid simulator as my numerical methods course project and I have to compute pressure at each simulation step. Basically, that means solving an equation $Ap = b$, where $A$ is a sparse matrix: all its entries are zero except:
Its main diagonal
Diagonals before and after main diagonal
For some $k$, ... |
I read the paper called Laplacian Surface Editing, but I'm confused about how does the author solve the formula (4). The paper says that 'Solving this quadratic minimization problem results in a sparse linear system of equations', so I have tried to use the quadprog function in matlab, but when the size of the nodes is... |
I am looking at a few reaction-diffusion equations of the form
$\frac{dP}{dt} = D\left(\frac{d^2P}{dr^2} + \frac{2}{r}\frac{dP}{dr}\right) - a(P)$
I know the initial conditions and the boundary value at one end. I also know the function steadily falls and eventually hits zero at the second unknown boundary. To model t... |
Consider the following optimization problem:
$\text{max}_{p} \quad ||p||^2 \\
s.t: x\geq 0\\
p\in D$
where $D$ is a convex set. Is this problem $\mathcal{NP}$-hard?
|
Let $A$ be a real, symmetric, positive definite matrix. It has at least 500 rows, possibly much more. I compute its Cholesky decomposition, which allows me to calculate
$det(A)$
$A^{-1}X$ for some vector/matrix $X$
$A^{-1}$ (I am aware of the warnings here)
Unfortunately, this operation needs to be performed a lot of... |
I will be interfacing our fluid dynamics code with an optimizer. I expect the optimization process to take 3-4 days for any decent decrease. But I will want to have a look at the intermediate results for trends and to make sure that things does not blow up, both at the optimizer level and at the fluid dynamics level.
... |
This question is a specialization of full rank update to cholesky decomposition, to which I hope to get a more positive answer.
When calculating the minus log of the multivariate normal distribution, the most difficult part is evaluating
$$f(\epsilon,\Sigma) \equiv \epsilon^\top \Sigma^{-1} \epsilon + \log \det \Sigma$... |
I would like to minimize the following quadratic form:
$$
f(\mathbf{\theta}) = (\mathbf{y} - \mathbf{\mu}(\mathbf{\theta}))^T \mathbf{\Sigma}({\mathbf{\theta}})^{-1}
(\mathbf{y} - \mathbf{\mu}(\mathbf{\theta})),
$$
wrt $\mathbf{\theta}$. $\mathbf{y}$ is $d$-dimensional, while $\mathbf{\theta}$ is $p$-dimensional. Gener... |
Given a forward-in-time approximation I have the coupled equations:
$$
\frac{T^{(n+1)} - T^{(n)}}{\Delta t} = x T^{(n)} - y h^{(n)} \\
\frac{h^{(n+1)} - h^{(n)}}{\Delta t} = -z h^{(n)} - \alpha T^{(n)}
$$
where $x, y, z$ and $\alpha$ are constants, I see from my simulation that the solution is damping. But how can I us... |
I am trying to create a simulation to help visualize how different chemical components flow through a network of pipes with associated valves, pumps, and chemical inputs. In this simulation, the pipes will be represented in 1D and the pump flow rates and valve states will ideally be able to be changed by the user durin... |
I'm numerically inverting an integral transform using a method suggested by a scicomp user from an earlier question. The problem is as follows:
I wish to estimate $f(x)$ for a given $F(y)$, both of which are expressed as a linear combination of some set of orthogonal basdis functions $\phi_n$:
$$ f(x) = \sum_{i}^{M} c_... |
I've an equation like this to solve with the crank-nicolson method
$$U_t -\frac{y}{2} U_x + \frac{x}{2}U_y = 0,$$
where $x$ and $y$ are: [-2,5:2,5] and the time $T$ is from $0$ to $2\pi$.
Is there anyone who can help me?
I have to solve it in a matlab code.
thanks everyone.
I'm sorry for my english.
|
I'm looking for a library that is either in R or easily wrappable with R, that can do the following things:
construct and subset N-dimensional arrays
perform operations such as min, max, sum, sd along any dimension
is fast and ideally has a BLAS backend
And (this is important), is able to define multilevel-masks alon... |
comp! I'm trying to solve the advection-reaction problem
$ dg/dt = dg/dx + x\cdot g \qquad on~~x \in \Omega = (-\infty, +\infty)$
supplemented with the boundary conditions
$ \lim_{\lvert x \rvert \to\infty} g(x, t) = 0.0$
and subject to the constraint
$g(x=0, t) = 1$.
It seems to me that a non-trivial steady state sol... |
This topic is used in spectral methods, for collocation grid.
Literature mentions Chebyshev interpolation on a grid (defined by $\xi_j = cos(\pi \cdot j/N)$, $x_j = (\xi_j+1) L/2$, $j=0,...,N$) includes 2 steps
1/ Calculation of Chebyshev coefficients (sum over all points $x$)
$c_n = \sum_{j=0}^N f(x_j) \cdot T_n (\x... |
In this simple benchmark describing the flow around a disc in the plane with stationary bc, for low Reynolds numbers the solution is stationary and for higher RN it is periodic in time. Is there a theory saying, by which RN periodicity disappears and the solution(s) become(s) completely chaotic (if it happens at all)?
|
Given a standard advection equation, we write the update as
$$
q_i^{n+1}=q_i^n+\frac{\Delta t}{\Delta x}\left(F_i^{n+1/2}-F_{i+1}^{n+1/2}\right)
$$
with $F_i^{n+1/2}=F\left(q_i^n,\,q_i^*\right)$ and $q^*_i$ a predicted value, other variables take their normal meaning.
It is possible to reconstruct what numeric value $F... |
I'm modeling mass transport in a flow reactor. The flow reactor is a tube, which allows me to use cylindrical symmetry in solving the Convection-Diffusion-Reaction (CDR) Equation, which governs the mass transport.
The equation that I'm solving is:
$D ( \frac{\partial^2 u}{\partial r^2} + \frac{1}{r}\frac{\partial u}{\p... |
I have a program that generates mesh for given 3d models. The generated mesh must use quadrangle elements.
It is required to add "shell elements generation capabilities". The requirement is as follows:
The mesh generator must have the ability to mesh "shell elements".
Shell elements are two-dimensional elements that... |
What is the best way to compute:
$$ Y = D X $$
where $D \in \mathbb{R}^{m\times m}$ is diagonal and $X \in \mathbb{C}^{m \times n}$ is general. I am mostly interested in these two cases:
$m >> n$, $m > 10^7$
$n >> m$, $m < 10^4$
Options
I can think of four not-obviously-flawed ways of doing this: loops, forall, lo... |
I am working on a project that I need to add a regularization into the NNLS algorithm. Is there a way to add the Tikhonov regularization into the NNLS implementation of scipy [1]?
[2] talks about it, but does not show any implementation. Sklearn has an implementation, but it is not applied to nnls.
[1] http://docs.scip... |
I have a nxn covariance matrix (so, real, symmetric, dense, nxn... I mean positive semi-definite). 'n' may be very very very big! I'd like to solve partial (3 largest) eigenvalue (+eigenvectors) problem for this matrix. Could somebody tell me what the fastest algorithm to do it?
Is it power iteration method (because it... |
I have the following quadratic program
$$\begin{array}{ll} \text{minimize} & f(x) = \frac{1}{2} x^T D x + c^T x\\ \text{subject to} & x_{\text{lower}} < x < x_{\text{upper}}\end{array}$$
where matrix $D$ is symmetric negative definite!
I have no problems with using symmetric positive definite matrices for $D$. I use JO... |
I just started studying FEM in a more structured basis compared to what I used to do during my undergraduate courses. I am doing this because, despite the fact that I can use the "FEM" in commercial (and other non-commercial) software, I would like to really understand the underground techniques that support the method... |
Within Fenics what ordering is used for storing vectors as upper triangular matrices? Th:e question really is I define a green Lagrange strain tensor in the following way:
V = VectorFunctionSpace(mesh, "Lagrange", 1)
u = Function(V)
I = Identity(V.cell().d) # Identity tensor
F = I + grad(u) # Deformatio... |
Take sparse approximate inverse preconditioner $M \approx A^{-1}$ given by solution of
$$\underset{M \in S}{\mbox{min}} \; ||I - AM||_F,$$
where $S$ is a set of sparse matrices and $||.||_F$ is the Frobenius norm (see [1] for details).
I am wondering which specific characteristics of the matrix would make this precondi... |
I'm attempting to validate my FDTD code against Meep by calculating the Poynting vector field across a simulation consisting of a monochromatic point source within a box (no boundary conditions (Dirichlet) so everything just bounces off the domain boundaries.
In this case, the simulation is 2D TMz (point source in $E{z... |
I am working on a project that I need to add a regularization into the NNLS algorithm.
Is there a way to add the Tikhonov regularization into the NNLS implementation of scipy [1]?
[2] talks about it, but does not show any implementation. Sklearn has an implementation, but it is not applied to nnls.
[1] http://docs.scip... |
I know that the Tikhonov regularization of a linear system has an analytical solution given by:
\begin{equation}
\hat{\mathbf{x}} = \mathrm{arg\;min}\left( \left| \mathbf{Ax} - \mathbf{b} \right|^{2} + \left| \mathbf{\Gamma x} \right|^{2} \right) = \left( \mathbf{A}^{\top}\mathbf{A} + \mathbf{\Gamma}^{\top}\mathbf{\Gam... |
I'm a newbie at modelling and optimization of LPs. My research problem concerns assigning tasks/jobs to virtual machines in a data centre depending on the least energy cost incurred. As you can imagine this is a very large problem.
My primary question is: Which algorithm (interior point, genetic algorithm....etc) woul... |
I have question connected with finite volume method. Consider equation
$$\frac{\partial u}{\partial t}=\operatorname{div}A\nabla u +f . \quad x\in \overline{B}_{1} (0)\subset \mathbb{R}^3 -\text{unit ball with its boundary}$$ I solved IBVP for this equation with a help of finite volume method, for grid I took uniform s... |
The non-linear Poisson equation in one-dimension,
$$
0 = \frac{\partial^2u}{\partial x^2} - f(u)
$$
can be discretised as to give,
$$
u_{j-1} -2u_{j} + u_{j+1} = h^2 f(u_j)
$$
where $h$ is the step size of the mesh.
Is there any advantage (in general or not) to write the non-linear source term as the average value of ... |
[Edited to simplify the question]
I am trying to associate the eigenvalues $E$ of a matrix $H$ to the original rows of the matrix.
Moreover, it would be trivial to sort the eigenvalues in ascending order, however this throws away some of the information. For my purpose the matrix is a Hamiltonian where the different ro... |
I would like to normalize a quantum mechanical multi-particle wave function numerically, and since the result is a multidimensional integral I thought Monte Carlo methods might be appropriate. So, I'm looking for $\mathcal{N}$ where
$\psi=\frac{1}{\sqrt{\mathcal{N}}}\tilde{\psi}$
and $\psi$ and $\tilde{\psi}$ are the n... |
I have a set of points (2D space), and for every point there's a label (like city names on a map).
I want to find a real-time algorithm that allows labels to avoid overlapping, moving them from their original position if necessary.
I've heard about simulated annealing algorithm, but I can't find a good source to learn ... |
I have a question which I think should be pretty simple. I have written a subroutine in Fortran which will compute the Gradient at a point of the form
subroutine get_gradient(xyz, Grad)
where xyz is a 3x1 array and Grad is also a 3x1 array. The gradient method is a fourth order accurate method where the step is chosen ... |
Suppose I have a symmetric matrix $A_{1000\times 1000}$, which can be represented by:
$A = J G J^T$
where $J$ in 1000x3 is full column rank dense matrix; $G$ in 3x3 is a nonsingular dense matrix.
What is the fastest way to obtain ONLY the maximum eigenvalue of $A$?
I know that the eigenvalue problem of symmetric matrix... |
How is it possible to do something once every solver iteration?
The expressions when change(time) or when time > pre(time) are not permitted.
Best regards,
Koldo
Edit: The final goal is to do a cosimulation from Modelica with other tool that does not have FMI and where the Modelica side signals the iteration delta time... |
If $A\in R^{m\times n}, b\in R^m, c\in R^n$,
if I need to solve the least square problems via SVD of $A$ and $A^T$, i.e.
I need to solve the least square solutions to following linear systems via SVD:
$Ax=b_i,\quad i=1,2,3,\cdots$
$A^Ty=c_j,\;j=1,2,3,\cdots$
it is also possible to do these via householderQr().solve() i... |
In finite difference and finite volume methods, convection schemes (upwind, central, quick, ...) are usually shown in a normalized variable diagram. The diagram gives the normalized face variable as a function of the normalized upwind or downwind variable.
For example, let $D$ be the donor cell, $A$ the acceptor cell... |
I am dealing with large, sparse, rational matrices that I need to determine the nullspace of. Currently, I have one that is about 12000x12000 (but not square), where one in every 2000ish elements is nonzero. Subsequent matrices will grow both in size and sparsity.
Most nullspace algorithms rely on bringing the matrix i... |
Is there any clear classification between different iterative methods?
What is the difference between Newton-type and Newton-like iterative methods?
|
Incomplete low-rank matrices can be exactly recovered in most cases, so long as the rank is low enough relative to the number of known entries. This result was famously proved by Candès and Recht in the paper "Exact Matrix Completion via Convex Optimization". Algorithmically, the nuclear norm minimization that recovers... |
I have an optimization problem with the following objective function.
$\max_{a^{l}_{n,k} b^l_{n,k}} \sum_{n=1}^{\overline{N_l}} b_{k,n} \frac{C_1}{C_2} \log_2 \bigg(1 +\frac{a_{k,n} h_{k,n}} {b_{n,k} c_3}\bigg) $
The constraints are linear.
The objective is concave, if I keep all the constants as 1, for simplicity the... |
I look for a numerical method to solve boundary value problems for systems of differential and algebraic equations of the form F(x,y,y') = 0, G(x,y) = 0, y(a) = ya, y(b) = yb, where y = (y1, y2, ... yn). I have to implement it myself, but I can't find such methods in textbooks. Where can I find description of needed me... |
Suppose $A,B \in \mathbb{R}^{n\times n}; A=A^T, B=B^T$, let $C = AB, D =BA$,
If we have all the real eigenvalues of $A$ and $B$, e.g. the eigenvalue decomposition of them:
$A=P\Lambda_1 P^T$,
$B=Q\Lambda_2 Q^T$; both $P$ and $Q$ are orthogonal matrices, and both $\Lambda_1$ and $ \Lambda_2$ are diagnoal matrices;
can w... |
Suppose we have incomplete observations of the square matrix $X$. Most matrix completion algorithms assume the matrix is low-rank. What if instead we assume the matrix of eigenvectors is a tensor product: $V = A\otimes B$, $X=VDV^{-1}$? This still dramatically reduces the space of possible matrices, so it may be possib... |
I want to minimize a cost function for a differential-nonlinear system (dynamic).
Is it possible to use this software? How can I do it?
Best regards,
Haniye
|
Can anyone point me in the direction of literature pertaining to the selection of the coefficient c2 in the curvature condition in the wolfe conditions when performing a line search?
In Nocedal, he says that c2 = 0.9 for quasi Newton methods, and that c2 = 0.1 for non linear conjugate gradient methods.
I have not been ... |
I have a logarithmic grid, upon which i have two functions that are similar to this one (this is only the last 100 points):
These are essentially very similar to a Sin function at this point. I need to take the integral of two of these functions multiplied together, along with the position:
$$
\int_0^R f_1(r)\; r\; f... |
I'm dealing with a coupled system of three transient, non-linear convection-diffusion equations. Let's just say to simplify the problem that they take the following form:
$$
-\nabla\cdot(D_{1}(u_{2},u_{3})\nabla u_{1}) = -\nabla\cdot\mathbf{\chi}(u_{2},u_{3})
$$
$$
\frac{\partial u_{2}}{\partial t} + \nabla\cdot f_{1}(... |
Are consumer grade GPUs (like the NVidia Geforce series) used for solving sparse linear equations systems in a professional setting? For example, by engineers performing finite element analysis?
After all, at least for iterative methods, memory bandwidth is the bottleneck, and a Geforce 780 Ti provides a lot more of th... |
I've used MT19937 in a test harness to generate uniformly (unsigned) 32-bit [0, $2^{32}$- 1] values, based on the original Authors' mt19937.c implementation, to generate an (essentially inexhaustible) supply of statistically random stream of bit-octets. This is in lieu of a CSPRNG, which isn't necessary for these parti... |
Have two arrays, in my case $X = \{1,2,\dots, n\}$ or X = np.arange(n).
How do I get $Y = X \times X = \{ [i,j]: 1 \leq i,j \leq n \}$ as a 2D array in numPy?
In numpy this would be a $n \times n \times 2$ array np.shape(Y)=(n,n,2).
|
I need to solve
$$\mbox{min}||Ax - b||_2^2 \quad \mbox{s.t.} \quad l \leq x \leq u,$$
where $A \in R^{m \times n}$, $m \ll n$, $n \approx 10^4-10^5$.
BVLS [1] based on active-set method works fine for small problems, but it is too slow for large-scale problems I have.
Are there any other (maybe approximate) methods to ... |
The Huffman code is a way of compressing data streams by encoding the more frequent items with shorter words.
Here is a distribution on the letters A thru J and the code I obtained:
0.00066872 0.01864353 0.0474964 0.18568327 0.11587298
0.13329128 0.08580358 0.0881718 0.1847246 0.13964385
Notice that A is l... |
I'd like to model the fluid flow through a porous medium using finite differences. Since I am new to this numerical technique, I have a simple question.
I use the following set of equations to calculate the change in water volume or porosity over time.
$$q_x = K \frac{dP}{dx}$$
$$q_y = K \left(\frac{dP}{dy} + \varphi ... |
According to the Perron-Frobenius theorem, a real matrix with only positive entries (or one with non-negative entries with a property called irreducibility) will have a unique eigenvector that contains only positive entries. Its corresponding eigenvalue will be real and positive, and will be the eigenvalue with greates... |
For a nonsingular lower or upper triangular square matrix $A$, how to solve such linear system in Eigen:
$$A x = b$$
|
I read somewhere that Pandas was first developed for the financial world, at least not especially for natural sciences (physics, biology and so on), so is there any similar data analysis Python package more “natural sciences oriented“?
I have just started using Pandas and I have already encountered two problems I could... |
I was reading up on Spectral Methods for PDEs. In all the descriptions I read, while the position component is approximated via a Fourier series or other methods, the time component is still discretized and solved via a time-step procedure (finite difference, etc.).
Is there any reason why the time component is also no... |
The original nonlinear optimization problem I have is as follows:
For constant symmetric matrices $A=A^T, B_i=B_i^T(\forall i\in\mathbb{N}) \in \mathbb{R}^{n\times n}, \text{rank}(A)=n,$
$$\arg\min\limits_{x\in\mathbb{R}^n}\dfrac{x^TAx}{\sum\limits_{i=1}^{m}\left(x^TB_ix\right)^2}$$
Someone said this problem can be con... |
I have been browsing through the documentation of the IBM Platform Load Sharing Facility, to find out if it supports parallel task computing.
Below is what I think is relevant for this question, Please correct me if my perception is wrong.
Focus seems to be on the parallel job execution, where a computation has to be s... |
I know a square self-adjoint matrix $S_{vv}$ and I want to find:
$S_{rr} = HS_{vv}H^{\dagger}$
where $\dagger$ denotes conjugate transpose.
I do not know $H$ but I do know $H^{-1}$.
What is the most efficient way to solve something of this form?
I have considered rewriting it as:
$S_{rr} = H(HS_{vv})^{\dagger}$
Fin... |
Is there a conservative FV second-order (or first-order) accurate immersed boundary method for compressible flow including moving boundaries (in the literature)?
By compressible flow I mean the Navier-Stokes eqts. for an ideal gas.
Most of the results I am able to find deal exclusively with incompressible flows.
It wo... |
I'm searching for software which can solve 3d IBVP like PDEtool in Matlab (user-friendly GUI, easy to learn how to use). What could you advise to me? (ANSYS,COMSOL,OpenFOAM are too difficult for me)
|
For periodic functions on a regularly spaced grid, the trapezoidal rule is supposed to converge incredibly quickly ( the error estimate decreasing as $O(e^{-\eta/h})$ for step size $h$ ).
However, I don't believe this is true for non-uniform grids. What is the error estimate for a non-uniform grid, and how does it co... |
If i have some function expressed as points on a non-uniform grid (I'm specifically interested in logarithmic grids, but general results are also interesting), and I want to integrate it, I believe there are two general possibilities:
Interpolate, and use some method like Gauss Quadrature, or Clenshaw-Curtis Quadratur... |
What are main differences between FEM and XFEM? When should we (not) use XFEM intead of FEM and vice versa? In other words, when I meet a new problem, how I can know to use which one of them?
|
Suppose a real, dense and asymmetric square matrix $A\in\mathbb{R}^{n\times n}$,
all its eigenvalues $\lambda_i \in \mathbb R$
Is it possible to construct a symmetric matrix $B\in\mathbb{R}^{n\times n}$, the eigenvalues of which are $\lambda_i^2$ to compute absolute values of $\lambda_i$ without the need of solving eig... |
Short version of question: We have a Opteron 6272 cluster, an we have recently started bilding FX 9370 based small cluster. Problem is that we are not able to get desired speed, i.e scaling with number or processes is not optimal.
Full story: When we ran CPMD on Opteron 6272 as a single process, on a single node (hence... |
Original Question
I am familiarising myself with OpenFOAM and want to run a simple pipe flow case.
I would like to be able to compare my computational pipe-flow results to a well established case (like the lid-driven cavity flow or Ahmed's body): given certain $L,\,D,\,v_{1},\,p_{2}$ (atmosphere) and $\mu,\,\rho$ of t... |
Suppose that $A(x) \in \mathbb{R}^{m \times n}$ is a nonlinear matrix function of $x \in \mathbb{R}^d$. We may assume that $A(x)$ is continuously differentiable. Are there any good ways to estimate $\mathrm{argmin}_{x} \|A(x)\|_2$? Also assume that due to some growth properties of the function $A(x)$, this minimizer ca... |
I am trying to solve a least squares problem where the objective function has a least squares term along with L1 and L2 norm regularization. I am unable to find which matlab function provides the ability to perform such an optimization in addition to specifying constraints. I looked into the MATLAB optimization toolbox... |
I am trying to implement the N-body problem using Fortran 95. Before generalizing it to N bodies, I am first trying to calculate the motion of a single orbiting body (body 2 in my code below) around a fixed one (body 1 in the code below). The problem is the output is not correct, but I can't find the error with my equa... |
I asked a somewhat similar question previously but perhaps it might have been too specific for anyone to really answer. Here is a bit more general of a question that I am struggling with. Consider the following system:
$$
-\nabla\cdot(D_{1}(u_{2})\nabla u_{1}) = \nabla\cdot\mathbf{f}_{1}(u_{2})
$$
$$
\frac{\partial u_{... |
Is there any simple rule of thumb to say if it is worth to do SOR instead of Gauss-Seidel? ( and possible way how to estimate realxation parameter $\omega$)
I mean just by looking on the matrix, or knowledge of particular problem the matrix represents?
I was reading answer on this questions:
Are there any heuristics fo... |
Can you show me the main differences between 2 methods? I find out 2 reasons but I don't know they are right or not.
XFEM is constructed base on enrichment functions whereas P1-bubble is constructed base on bubble functions. Basically, 2 types of these functions are different (what are these differences?).
For $P_k$-b... |
I am working with biofilm and there are many documents talking about boudary conditions while others talks about interface or both of boundary and interface. So, boundary and interface are the same (in numerical analysis) or not? why and examples?
|
Assume that we have a function $u$ defined in a ball in a discrete way: we know only the values of $u$ in the nodes $(i,j,k)$ of spherical grid, where $i$ is a radius coordinate, $j$ is a coordinate for angle $\varphi$, $k$ is a coordinate for angle $\psi$.
Consider a vector-function
$$\nabla u_{i,j,k}=\left(\frac{\p... |
I am trying to solve the following system of differential equations numerically over the domain $x=0$ to $x=D$. The main difficulty is that the boundary conditions are interconnected and depend on the solution variable. I'm not too sure how to approach the finding a numerical solution for that reason.
$$
\frac{dI_1}{dx... |
I am trying to discretize the differential operator $\frac{d^2}{dx^2}$ acting on $S^1 = [0,1]$ using finitely many points around a circle at $0, \frac{1}{N}, \frac{2}{N}, \dots, \frac{N-1}{N}$.
Here is the matrix for $N=5$:
$$\left[ \begin{array}{cc} -2 & 1 & 0 & 0 & 1 \\
1 & -2 & 1 & 0 & 0 \\
0 & 1 & -2 & 1 & 0 \\
0 &... |
I am using a multigrid preconditioned GMRES method for a nonsymmetric matrix. The matrix is the discretisation of the derivative of a nonlinear operator. Since multigrid is not the best for nonsymmetric problems I am preconditioning the 'symmetric part' of the matrix, where I am taking the symmetric part of matrix $A$ ... |
I need a C# implementation of the gamma function that produces correct exact answers at positive integer inputs. I took a look at MathNet.Numerics Meta.Numerics. In both cases, if you calculate something like gamma(5)-4!, evaluating the latter by integer arithmetic, you get an answer whose absolute value is approxima... |
Following "A conservative DGM for Convection-Diffusion and Navier-Stokes Problems" (Oden and Baumann), if we have a linear convection-diffusion equation of the following form:
$$
\nabla\cdot(\mathbf{b}u) - \nabla\cdot(a\nabla u) = f
$$
with BC's
$$
u = u_{D} \;\;\text{on} \;{\Gamma_{D}} \;\;\;\text{and}\;\;\;a\nabla u\... |
I am looking for a fast Eigenvalue and SVD solver for small dense structured matrices (Hankel and Toeplitz). I have searched for efficient implementations in libraries like MKL but I am not able to find anything specific to structured matrices. I found a set of interesting papers on the subject:
Luk and Qiao, "A Fast ... |
I'm dealing with Jacobi iterative method for solving sparse system of linear equations. For small matrices it works well and gives right answers even if matrix is not strictly diagonal dominant, however for the case of really big matrices ($100000*100000$) it does not converge because the matrix is not diagonal. Many a... |
I am dealing with a large sparse integer matrix that I need to find the nullspace of. I've seen Markowitz Pivoting come up in several places discussing similar problems such as here:
http://www.mapleprimes.com/posts/41191-Solving-Sparse-Linear-Systems-In-Maple
And in the MAGMA documentation under the sparse null space ... |
I have a problem with parallelization and the brownian dynamics (molecular dynamics) code that I am using. We have our own home-grown framework at the university, and recently we've made the change to using OpenMP for the more intensive calculations. We are definitely CPU bound, so I don't necessarily have to worry a... |
At the moment, I'm installing the "GADGET-2" application. In its documentation it says "Note that the MPI-capable version 2.x of FFTW is required, the new version 3 lacks MPI capability at this point. FFTW is only needed for simulations that use the TreePM algorithm."
Is this still true for the current version 3.3.3? S... |
I have generated a list of 3 random number where each summed to 1. I would like to assess the quality of randomness. What is the best mechanism to assess this randomness? E.g my random numbers are. Any idea what tools can I use excel for this?
0.4 0.5 0.1
0.2 0.3 0.5
0.6 0.2 0.2
0.5 0.2 0.3
0.2 0.4 0.4
0.2 0.1 0.7
0.3... |
I'm using PETSc's SNES linesearch (NEWTONLS) to solve a system of nonlinear PDEs. SNES+KSP successfully solved a test problem of the same type before without any trouble.
However, with my current problem, if I use the KSP to invert the Jacobian, the intermediate solution develops a "ridge" at the boundary between two M... |
I have a C++ program that has a double for loop that I'd like to parallelize using opeMP. It is simple (a polynomial product) of varying length (between 100 and 8000 coefficients) and the function is called millions of times per execution.
I have the parallel pragma around the outer loop and the for pragma just below t... |
This question was original posted on SO but it was suggested that I post it here.
I'm working on a program in which I have a banded matrix M and a vector b, and I want to maintain an approximate solution vector x such that Mx ≃ b. Is there a speedy algorithm or way of modeling this so that I can change individual eleme... |
I am working on a numerical method for time fractional PDE. One problem is that I must compute a numerical integral of the following form:
$$
\begin{equation}
\int_0^{t_m} (t_m-s)^{-\beta}f(s)ds
\end{equation}
$$
where $t_m$ and $0<\beta<1$ are constants. Noting that the integral has a weakly singular kernel, so classi... |
Given is an increasing finite sequence of positive numbers $z_{1} ,z_{2},.....z_{n}$. Which of the following two algorithms is better for computing the sum of the numbers?
s=0;
for \ i=1:n
s=s + z_{i} ;
end
Or:
s=0;
for \ i=1:n
s=s + z_{n-i+1} ;
end
In my opinion it would be better to start adding the numbe... |
I'm working with an elliptic reaction diffusion PDE of the form
$$-k\nabla^2u+cu=0$$
I've noticed that when the reaction term dominates over the diffusion (i.e. $c>>k$), the true (exact) solution has sharp gradients near the boundaries. I've also noticed that my numerical approximations via finite difference, finite v... |
I would like to run some simple simulations of scattering of wavepackets off of simple potentials in one dimension.
Are there simple ways to numerically solve the one-dimensional TDSE for a single particle? I know that, in general, trying to use naïve approaches to integrate partial differential equations can quickly e... |
Question:
Suppose that you have two different (factored) preconditioners for a symmetric positive definite matrix $A$:
$$A \approx B^TB$$
and
$$A \approx C^TC,$$
where the inverses of the factors $B, B^T, C, C^T$ are easy to apply.
When is it possible to use information from both $B$ and $C$ to build a better precondit... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.