instruction stringlengths 43 28.1k |
|---|
There has been quite a flutter recently in the iterative world about an algorithm that speeds up the classical Jacobi method by as much as 200 times using a scheduled relaxation method where a combination of over and under relaxation is employed. The results as shown in this paper are remarkable and are indicative of a... |
Ply file formats is used to represent mesh structures in the TETGEN freeware package. All the examples I've seen of 'ply' meshes were used for triangular meshes.
Can we use ply formats to represent tetrahedral meshes as well ?
Any examples would be helpful ?
PS : I am new in this field so any pointers for further unde... |
I'm looking to numerically compute the solution to
$$ k(x,u) \partial_t u - \Delta u = f \quad\quad\text{ in } \Omega \times [0,T]$$
where $k$ is a continuous but nonlinear (in $u$) real-valued function and $\Omega \subseteq \mathbb{R}^2$. I want to use the Finite Element Method, but I cannot seem to manage the nonlin... |
I am learning Monte Carlo simulation by C++. I begin with reading codes (from the internet and text books) of the 2D Ising model and the XY model. I find some people define spins simply by a two dimensional array int s[i][j], however, some people use vectors like int *s or int **s together with new int. The body of the... |
This might be a question better suited for the Software Recommendations side of S.E., however I do believe that people who frequent this part of S.E. are more likely to be able to answer this question.
I am looking for a free (not only as in freedom) alternative to Comsol Multiphysics. Here is the tricky bit: I am not ... |
Do you know what numerical software computes an eigenvector basis for a unitary matrix?
Say I have a unitary matrix $U$. If its eigenvalues are simple (no multiplicities), then for instance Matlab computes an eigenbasis for $U$. However, if there are some eigenvalues with multiplicities, in the subspace for the eigenva... |
This is a follow up to this question.
I have a nonlinear BVP on $x=0$ to $L$:
$$
(T^2)\frac{\partial^2 T}{\partial x^2} + T \left( \frac{\partial T}{\partial x}\right)^2 + Q = 0
$$
to which I apply a finite difference discretization. The parameter $Q$ is a constant.There is a Dirichlet boundary condition at $x = 0$ an... |
I am solving the following PDE;
$$
\nabla^2 u = \frac{\partial^2 u}{\partial x^2} + \frac{\partial^2 u}{\partial y^2} = \rho,
$$
where $\rho(0.5,0.5) = 2$ (zero elsewhere), $0\leq x,y\leq1$ and the boundaries will satisfy the condition $u = 0$.
I am solving by finite differences using both a 5 point second order stenci... |
I was wondering whether there is some theorem that allows me to put an upper bound on the error introduced by omitting small matrix elements from a matrix before diagonalization.
Let's assume we have a large matrix, whose matrix elements range from $1$ to $10^{-15}$. If I were to set all matrix elements smaller than $... |
Consider the diffusion of some unknown $R$ on a physically discrete, 1-D ring:
x---------x---------x---------x
n = 0 1 2 3
We let grid point $n=0$ be the same as grid point $n=3$, giving us our ring. We are given a diffusion coefficient $D$, which is still multiplied by some to some not... |
The wave equation,
$$\ddot{u} = c^2 \Delta u,$$
can be generalized to abstract graphs by using the negative graph Laplacian in place of the physical Laplacian.
Is there a graph-theoretic analog of Perfectly Matched Layers (PML), where "outward traveling waves" exit the graph without reflection?
It is not clear to me... |
I want to minimize the functional of the Blind Deconvolution model as given in: Total Variation Blind Deconvolution by Chan and Wong.
Their model is given by:
$$ z = h \ast u + \eta $$
Where $ \ast $ is the convolution operator, $ h $ is the blurring kernel, $ u $ is the sharp noiseless image and $ \eta $ is additive w... |
It may be that we have a model where the following equation holds for some phenomenon:
$$(1)\quad x + y + z = T$$
Importantly, $T$ is a constant, i.e.: $$(2) \quad \frac{\mathrm{d}T(t)}{\mathrm{d}t} = 0$$
We may be interested in the evolution of $x$, $y$ and $z$ as governed by their differential equations. If we want t... |
Suppose I have a triangulated mesh and I have solved a differential equation problem and have a solution phi. From phi I can construct a vector field, how would I go about computing the gradient of this vector field?
The mesh looks something like this. phi is solved for at the center of all of the cells in the picture.... |
Trying to solve stationary Navier-Stokes problem for incompressible laminar Newtonian fluid.
I've found a couple solutions for instationary Navier-Stokes equations (like FeniCS examples or CFD Python), but nothing on stationary.
As far as I understand methods are totally so this code couldn't be reused properly. Does ... |
I decided to solve using finite differences one of the simplest differential equations which has an analytic solution, notably $\frac{du(x)}{dx}=2x$. The equation is first-order ODE with quadratic equation $u(x)=x^{2}$ as its solution. The problem can be categorized as a boundary problem because we know the value of th... |
I've never run into a singular matrix before, so bear with me.
I have a complex non-symmetric matrix (about 1000 x 1000) that I know has a couple zero eigenvalues. It isn't guaranteed to be diagonalizable, but when I pass it to ZGEEV, I see no apparent problems. I use all the eigenpairs for later analysis, but I am uns... |
EDIT (26-12-14):In the Belytschko's EFG code, the domain of influence for uniform distributed node can be calculated using the code below; my question is how to calculate xspac and yspac when the nodes are irregularly distributed?
% DETERMINE DOMAINS OF INFLUENCE - UNIFORM NODAL SPACING
dmax=3.5;
xspac = Lb/ndivl;
yspa... |
I have a simple question concerning the management of the output after running a Fortran code, having a NESTED LOOP..
I want to calculate for different k=1,5,9 the value $\mathbf{Sin(kx)}$ in the range $\mathbf{x=0:2\pi}$ with the step $\mathbf{h=0.01}$.
As the range of $\mathbf{x}$ for all $\mathbf{k}$ is the same, I ... |
I have an algorithm (in R) that maximizes a convex function on a compact convex set in every iteration. Based on the maximum principle, I know that the maximima are only attained on the boundary. But my current implementation searches in the whole space which is not necessary and time-consumer. To increase the time eff... |
I am trying to Draw shear force diagram and bending moment diagram of beams. In this, I need to integrate second order differential.
So, Anybody can suggest me, which numerical method should I use?
|
How to find all roots of an equation in Matlab? I tried and it gave me just one of the roots.
For example: my equation is $F(x)=0$ where
F(x) = (cos(7*x)).*exp(-2*x.^2).*(1-2*(x.^2))
|
Determining the intersection of two convex polygons is one of the fundamental problems in computational geometry .
I'm asking for an algorithm having:
INPUT:
Given two convex polygons P and Q in 2D (note that the two convex polygons are represented with p & q points)
OUTPUT :
compute their intersection?
Can any one hel... |
Is there any reason to always solve the Kepler equation for the eccentric anomaly, $E$, instead of the more meaningful (at least to me) true anomaly, $\theta$?
Solving for the eccentric anomaly usually would mean calculating the true anomaly from its solution and maybe even the initial guess of the eccentric anomaly fr... |
I need to generate a sequence of increasingly denser high-quality triangular meshes for some pentagons in MATLAB.
I want to supply as my input
The coordinates of the 5 vertices of the pentagon
The desired (approximate) mesh-node spacing or the number of mesh-faces in the output mesh.
The output should be
A high... |
Let given
$M =$
1 0 1
0 1 1
1 1 1
and
$b =$
1
0
1
How to find the solution $x_3$ where $x=${$x_1,x_2,x_3$}?
Solution: Based on Wiedemann algorithm we has $u_i=[0; 0; 1]$.
I am getting confused in the Step2. How to find $M_s$?
Is it just the $3^th$ columns of $M_t$ as $M_s=[1 1 1]$ or... |
I am going to solve an linear iterative inverse problem. I have two functions in matlab which one of them play the forward and the other play the adjoint role. I am not familiar with inverse problems very much and I am going to test some algorithms to check which one can help me to obtain a sparse model. Since I have t... |
To those who are familiar with the projected Newton's method or projected gradient method...
We consider a constrained optimization problem with simple bounds. Particularly, minimize f(x) subject to L <= x <= U, where f maps R^n to R. x, L, and U are vectors in R^n. In the projected Newton's method that is used to solv... |
I'm with the background of computer engineering and generally use FEM for graphics simulation. As far as I know, FEM formulation is usually expressed with respect to the reference configuration, i.e., the volume integration is over the initial domain and the stress-based force $f$ is computed using the first Piola-Kirc... |
I was looking to brush up and/or pick up some languages for a hobby project on my free Amazon EC2, and I was going through the benchmark results for Java vs C (or Scala vs C)and Fortran vs C. It seems that the margin in Java vs C is nearly the same in Fortran vs C, which made me wonder if JVM (and its JIT optimizations... |
Consider this problem:
\begin{equation}
\begin{array}{ll}
\text{minimize } & f(x) \\
\text{subject to } & a \leq x \leq b
\end{array}
\end{equation}
where $a,b,x \in \mathbb{R}^n$ and $f: \mathbb{R}^n \rightarrow \mathbb{R}^n$ is continuously differentiable. By this definition, the feasible set is clos... |
I am trying to solve an almost incompressible problem with heterogeneous properties by domain decomposition. Solution with CG converges slowly or divergerces completely. My problem becomes ill-conditioned (condition number in the order of 10^5) due to the poissons ratio approaching to 0.5 and stiffness differences in b... |
Is there some packages in java that can be included to eclipse in order to solve a non linear problem? I have used ipopt but when running, there is a notification which say "NOTE: You are using Ipopt by default with the MUMPS linear solver.
Other linear solvers might be more efficient (see Ipopt documentation)." ... |
Consider
$$F(\theta)=\sin \theta \int_{-L}^{+L}h(z)e^{-ikz\cos \theta} \,dz$$
$$|z|\le L$$
$$0 \le \theta \le \pi$$
By having knowledge of $F(\theta)$, how can one approximate $h(z)$? In addition, I know that $F$ is differentiable with respect to $\theta$.
How can I model and solve such problem with unknown function $... |
I am running 2 simulations on a cantilever plate in Nastran: one is a transient analysis (time domain) and the other one is a frequency response analysis.
The transient analysis computes the response to time-varying excitations explicitly defined in the time domain. The equation it has to solve is
$M \ddot{u}(t) + C \d... |
I am currently developing a project that uses finite elements for multi-dimensional PDEs and I'm still wondering if I will use P elements (triangles in 2D and tetra in 3D) or Q elements (squares in 2D and cubes in 3D).
From what I have read on the web, the crucial point seems to be meshing which is supposed to be easie... |
In the Nelder-Mead algorithm, the simplex looks for the minimum of the function. If I multiply all the function values times -1, would I trick the simplex into searching for the maximum?
|
I am into computational fluid dynamics and so far I've found that the most common approaches to solve for the governing equations are Eulerian and Lagrangian. The former samples the domain at fixed locations while the latter samples the domain using the particles moving freely across the domain.
Reading through some pd... |
This is a continuation of a problem I asked over at physics exchange and math exchange. Basically I have two ODEs that I am solving in order to calculate the radial and tangential velocity of liquid dispensed on the center of a disk rotating at rate of $\omega$. $u_m$ is the average flow velocity in the $r$-direction,... |
Is there some company providing HPC cluster online? So that I can connect to their cluster by Internet and run my program?
|
I'm trying to reconstruct an image given its Laplacian, which results in a Poisson equation and I'm using Neumann boundary conditions (derivative at boundary = 0).
What I have is the laplacian (f, left-hand side), and the image borders (boundaries).
How can I solve this in Matlab or Octave? I found the poisolv() and a... |
Consider the following system defined on the open interval (-1, 1):
$y_1' = c y_3 \\
y_2' = c y_4 \\
y_3' = -f(y_1, y_2)y_2 \\
y_4' = f(y_1, y_2)y_1 $
given $ y_3(-1) = 0 = y_3(1) \\
y_4(-1) = 1, y_4(1) = -1 $
Note that the system cannot be reduced to the standard form of two point BVP in $y_3,... |
Consider the situation where you want to solve a linear system using a preconditioned Krylov method, but applying the preconditioner itself involves solving an auxiliary system, which is done with another preconditioned Krylov method.
On one extreme, you could run the inner solve to convergence within each step of the... |
I am studying DG for conservation laws from this book.
Local inner product is defined like
$$(u,v)_{D^k} = \int_{D^k} uv dx$$
and the $L^2(D^k)$-norm as
\begin{equation}
(u,u)_{D^k} = ||u||^2_{D^k}
\end{equation}
Now, consider the following problem where the flux $f(u) = au$
$$\frac{\partial u}{\partial t} + \frac{\... |
One very efficient way to solve Stokes equation with periodic boundary conditions
\begin{equation}
-\eta \nabla^{2} \bf{v} + \nabla p = f \\
\nabla \cdot \bf{v} = 0
\end{equation}
is using the transverse projection operator (in Fourier space)
\begin{equation}
\tilde{\bf{v}} = \frac{1}{\eta \bf{k}^2} \left (\bf{I} - \f... |
I need to import in Matlab the results (like time histories of diplacement or frequency response at a specific point) obtained from a FEM analysis in Nastran.
At the moment I ask Nastran to save the results on a file .dat and then I upload this file into Matlab. The fact is that Nastran organizes the data in a way that... |
I want to verify a finite-volume solver (SIMPLE-Algorithm) for the incompressible Navier-Stokes equations by using a manufactured solution. I use Dirichlet boundary conditions for the velocity at all boundaries. The manufactured solution for the velocities I use, is constructed as the curl of a vector field and thereby... |
I've been trying to figure out how to prove that the following equation is conservative
$$\int_{D^k} \partial_t(u^k) v_j^k + \partial_x(f) v_j^k dx = [(f -f^*) v^k_j]_{x^k}^{x^{k+1}}$$
where $v_j^k$ is a test function for element $k$, $f$ is the flux and $f^*$ is the numerical flux.
Can anyone point me out to some refe... |
I am working on a resource allocation problem, which is convex and has several constraints, and I want to compare the computational complexity of the following algorithms.
1) The algorithm that uses iterative subgradient method through dual decomposition: It starts with initial values for dual variables and then, in ea... |
I am trying to do Monte Carlo simulation for a large problem which requires eigensolution of a matrix for each sample. The matrix itself is quite large so much so that I want the eigensolution itself to be parallel as well.
This will probably require dividing the processors in subgroups and then within each group this ... |
$f(x)= \frac{1}{1+x^2}$
and when I computed the interpolating polynomial of 5 equally spaced points in [-5,5] I got
$ p(x)= 0.0053x^4 -0.1711x^2 +1$
Now I need to estimate the error in the interpolant using the error formula.
$|f(x)-p(x)|=\left|\frac{f^{(5)}(\xi)}{(5)!}\prod_{i=0}^4(x-x_i)\right|$
I'm trying to self ... |
I could find the common Moore-Penrose algorithm, but I couldn't find the Drazin or the Bott-Duffin generalised inverse, except for some very specific cases, useless for my studying purposes.
Is there a Matlab or C code for at least one of the two algorithms?
|
We have the Schrodinger eqn
\begin{equation}(−\Delta+V(r))R(r)=E R(r)\end{equation}
where we can take $V(r)=-k/r$ for the beginning and we impose on the reduced radial function $u(r)=r R(r)$ the boundary conditions $u(0)=u(\infty)=0$.
The problem is to:
Solve numerically inwards and outwards the radial equation, and d... |
I have a variational problem where the unknown function is a periodic path $\gamma:[0,1)\to\mathbb{R}^2$, and the functional is
$$ \int_0^1\left( \tfrac12\|\dot\gamma(s)\|^2 + \mathcal{F}[\gamma]\right)\,ds. $$
Here $\mathcal F$ depends on values of $\gamma$ at different values of $s$, so it's not just a function of $\... |
I am trying to solve the Eigenvalue problem
$$
x^2 y''+ x y' + x^2 y = \lambda^2 y\,,\quad x\in(0,1)\,,\quad
y(0)=0\,,\quad
y'(1)=y(1)
$$
The differential equation is the Bessel equation. The solution is given by the Bessel function of the 1st kind $y(x)=J_\lambda(x)$. Bessel functions of the 2nd kind is omitted becaus... |
What method of numerical solving ODEs is better? BDF2 or TR-BDF2?
Namely, what advantages has TR-BDF2 over BDF2?
The BDF2 method requires the values of $y_{n-1}$ and $y_n$ for computing $y_{n+1}$ but we can use, for example, the trapezoidal method for $n = 0$ and BDF2 on next steps.
The TR-BDF2 method computes an auxil... |
I am implementing a finite element solver in MATLAB and I have the following problem. Let's say I have a mesh $\mathcal{T}_1$ with triangular elements on a rectangular domain $\Omega\subset\mathbb{R}^2$. I know the positions of all the nodes on the mesh, and I have an approximate solution $\hat{u}_1(x,y)$ to my PDE on ... |
Is there a reference on the effect of subdomain topology on performance of the overlapping additive Schwarz method for (high order) finite elements? For example, taking subdomains to be vertex patches (elements directly connected through a vertex) differs from taking a subdomain to be an element + all its neighbors co... |
Suppose $f'(x_1),\ f'(x_2),\ f'(x_3)$ are given, how to give a polynomial interpolation $p(x)$ such that $p'(x_1)= f'(x_1),\ p'(x_2)=f'(x_2),\ p'(x_3)=f'(x_3)$? And how to give an error analysis?
|
I'm programming a beam finite element model by following a book (Nonlinear Finite Element Analysis of Solids and Structures Volume 2, in case you're wondering!).
I've come across the following statement, which I've paraphrased slightly (unless mentioned matrices, denoted by $[A]$, are of dimension $3 \times 3$ and vect... |
I tried to go to the primary sources in order to understand how to use Butcher tables to simplify the algebra I need to do when using Taylor series to find the order of accuracy of a scheme, for instance.
However, maybe because of a lack of relevant background, I found it particularly tough to understand how to utilize... |
I don't understand the concept with local and global vec's in petsc when it come to DMDAVecGetArray and VecGetValues. I'm creating some DMDA Vec in parallel which works well. Now I want to access certain non local values of my Vec without receiving the whole global array (will not fit into my main memory) on each proce... |
Let consider the following Hermitian matrix
T =[ 1.0000 -0.1000 - 0.0600i 0.3000 - 0.0300i
-0.1000 + 0.0600i 1.0000 -0.0400 + 0.0800i
0.3000 + 0.0300i -0.0400 - 0.0800i 1.5000 ]
The SVD decomposition using matlab is
[U,S,V] = svd(T)
U =
-0.4311 + 0.0000i 0.3... |
I got confused when trying to implement a scheme using Lax-Friedrichs numerical flux for a system of equations in 1D.
According to my notes Lax-Friedrichs numerical flux is
$$f_{LF}(u_l,u_r) = \frac{1}{2}[f(u_l)+f(u_r)] - \frac{\alpha}{2}(u_r-u_l)$$
where $\alpha$ is chosen as the fastest speed in the system. The formu... |
I have an irregular grid of points describing this surface (a large subduction fault in South America). The color is depth. Anyway I have 3D coordinates (lon,lat,depth) at irregular intervals. I'm trying to generate a triangular mesh using gmsh but I'm struggling with how. I can make every irregular grid point be a "Po... |
I am trying to solve this problem using advection-diffusion model and finite element method for the solution, due to the complex geometry.
Basically the problem i'm trying to solve using OpenFOAM is see how heat is distributed when fan is placed on a heated power source, and how much speed or how many fans should be pl... |
Could you help me with a Conjugate Gradient question? In using CG to solve Ax=b, why is the search direction $p_{k+1}$ in CG chosen as a linear combination of the residual $r_k$ and previous direction $p_k$? I know the set of search directions are supposed to be conjugate with respect to A. One way to generate such set... |
Good Day
I am new to heat transfer technique please give me some suggestion on solving energy balance equation
$$a \frac{\partial T_p}{\partial t}=\frac{\partial}{\partial x}\left(b\frac{\partial T_p}{\partial x}\right)+\frac{\partial}{\partial z}\left(c\frac{\partial T_p}{\partial z}\right)+b$$
which is discretized a... |
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
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.