instruction stringlengths 43 28.1k |
|---|
I'm using Albany w/ Trilinos to solve an elasticity problem with thermal expansion mismatch. I'm using block GMRES with MueLu preconditioning. It works for problem size of several million dofs, but when the problem size gets bigger, the true residual won't converge even though the preconditioned residual converges. I'v... |
I want to plot the Poincare map for Arnold-Beltrami-Childress magnetic field for parameters $A=1, B=0.816, C=0.5773$ in Python for the Poincare section $z=0$.
Also, I am not able to understand what initial conditions should I vary for $x$, $y$, and $z$ so as to plot the entire map? I am able to get only a subset of th... |
I have a function $g(x)$ defined numerically that is sort of in between a Gaussian and a Lorentzian. It decays much slower than a Gaussian, but still faster than a simple inverse power.
I need to calculate its Fourier transform $f(t)\equiv \mathcal{F}[g(x)](t)$ for large $t$. Because function calls to $g(x)$ are compu... |
Here is the Schrodinger equation that is to be solved:
A 1D hard wall potential in $[0, 1]$. The potential within the potential well is given by a linear combination of Gaussian dips
$$v(x) = - \sum_{i=1}^3a_ie^{-\frac{(x-b_i)^{2}}{2c_i^2}}$$
Thus the time-independent Schrodinger equation to be solved is
$$(-\frac{h^2... |
I'm playing with the K-Means clustering (Documents Clustering) but i realised that the partitions are changing with each execution because the initial nodes are taken by the kmean++ algorithm. I would like to know if there is some method to find the "Average" partitioning scheme. I mean, after 100 executions, take the ... |
I have the value of a function in three dimensions, $f(x, y, z)$, which varies smoothly.
I would like to compute a 3D mesh where $f(x, y, z)$ has a particular value.
Are there algorithms to do this? (And if so, any implementations?)
Note: This is the 3D equivalent of finding a contour of a 2D function, $f(x, y)$:
|
I have written a Roe solver with Harten entropy fix code in Matlab to numerically solve the one-dimensional Shallow Water Equations. :
\begin{eqnarray}
\dfrac{\partial h(x,t)}{\partial t} + \dfrac{\partial}{\partial x}(h(x,t).v(x,t)) & = & 0\\
\dfrac{\partial h(x,t).v(x,t)}{\partial t} + \dfrac{\partial}{\partial x}(h... |
(note: I also posted this question on stackoverflow before finding this community here, which seems a better place for it)
I'm trying to solve the following problem: I have a lot (~80000) surface patches of an organ that's growing. I measure each of its areas over time (18 time-points) and want to fit a growth curve t... |
What could be the reason that the solution of a Poisson equation is smooth when obtained by an iterative solver, only if the maximum residual is set to a high value (e.g. 0.1)? When the maximum residual is set as a typical lower value (e.g. 1e-6), then the solution oscillates - often (but not exclusively) near Neumann ... |
Originally asked this on math.stackexchange, but I figure it's also appropriate here. I'm reading through some finite difference code for a diffusion equation and came across something odd for the boundary conditions, and I was wondering about the validity of the method. I'm familiar with the finite difference method, ... |
Assume that in the a (residual type) posteriori error estimator of some PDE is a term of the form $h_T\|g\|_{L^2(\Omega)}$ involved where $h_T$ is the diameter of an element and $g$ is some known data function.
While proving the efficiency of the estimator, one wants to obtain
\begin{align}
h_T^2\|g\|_{L^2(T)}^2 \leq ... |
A hypergraph $H = (V,E)$ consists of a finite set of vertices, say $V=\{1, \dots, n\}$ and a set of hyperedges $E \subseteq \mathcal{P}(V)$. We call $H$ a $k$-hypergraph if all $|e| = k$ for all $e\in E$. A vertex cover for $H$ is a set $V' \subseteq V$ such that for all $e \in E$ there is some $v \in V'$ such that $v ... |
I am trying to fit a time-dependent curve at each time step. I do so in minimizing along $x_c$ the quadratic error between the curve and a reference solution $ 1/(1 + \exp\left(\sqrt{S}(x-x_c)\right) $:
$$ \frac{1}{N+2} \sum_{i=0}^{N+1} \left(y_i - \frac{1}{1 + \exp\left(\sqrt{S}(x_i-x_c)\right)}\right)^2 $$
Because th... |
According to the wikipedia page for Set Cover, the greedy algorithm for weighted set cover achieves the polynomial-time approximation bound. There are other techniques for solving Set Cover, such as randomized rounding of a linear programming relaxation, which I believe achieve the same asymptotic bound.
Is there infor... |
I'm trying to implement the following form of the cell/neighbor list method in my MD code. I have divided my simulation box into a fixed number of cells, and according to its positions, I have correctly assigned each atom to the appropriate cell. I build the neighbor list for each individual cell $i$. When performing c... |
I have two slightly different but getting the same results MPI code.
The first one is from an open-source package having several data exchange steps in between:
int main ( int argc, char **argv )
{
int i,j,nx=600,nz=300,NP, MYID;
int idum[2];
float v[420][720];
for (i=0;i<420;i++){
for (j=0;j<72... |
Problem
I work for a municipality and we are trying to figure out which sections of sewer lines to replace first or at least identify areas that should be looked at. It was suggested I use a Fast Messy Genetic Algorithm like this.
We have records on the sewer lines like date installed, pipe type(clay, plastic, etc), l... |
I want to minimize a non-linear function $f(x)$ using Newton's method. At each optimization step, I compute a descent direction $d$ to update $x$ using a second-order approximation of $f(x)$:
$$ \nabla^2f(x) \ d = -\nabla f(x) $$
So I need to solve a linear system, but the Hessian matrix $\nabla^2f(x)$ might not be pos... |
I am using a (central) finite difference scheme to solve the eigenvalue problem
$$-\frac{d^2}{dx^2}u = \lambda u$$
with periodic boundary conditions on a unit interval.
I use arpack's zndrv1 and the standard discretization
$$-\frac{d^2}{dx^2} = \left(\begin{matrix}2t_0 & -t_0 & 0 & \cdots & -t_0 \\
-t_0 & 2t_0 & -t_0 &... |
In a quantum physics calculation, I have to deal with a matrix that has a lot of eigenvalues really close to each other ($10^{-6}$ relative difference for example) and I can't manage to obtain accurate enough eigenvectors and eigenvalues. Indeed, I would like to reach machine precision and I get only $10^{-9}$ with zhe... |
I want to calculate the carrier concentration of my semiconductor using this equation:
$$
n(x) = \frac{m^*}{\pi\hbar^2}\int_{E_k}^{\infty}\frac{1}{1+\exp\left(\frac{E-E_f}{k_BT}\right)} \mathrm{d}E
$$
I'm using this straightforward scipy approach:
import numpy as np
import scipy.constants as phys
import scipy.integrate... |
Say, I have this code
double start = MPI_Wtime();
ParallelMatrixVectorProductRotuine(...);
double end = MPI_Wtime();
How do I interpret the numbers I am getting. For instance, with 1 process I get something like
1.7342
For two processes I get
1.0023
1.6432
What can I say about this? Do I take the average of these ... |
I am charged with maintaining a buildserver on Teamcity which is meant to test our in house FE software. Currently our test suite consists of a list of benchmarks which run every time a commit is made using svn as version control software. The benchmarks are fully meshed boundary value problems intended to test various... |
I have an assignment where i got this definition - "The dots velocities following the Maxwell distribution with typical velocity of $$v=<v>^{\frac{1}{2}}$$ and that mean that each of the velocity vector components vave normal distribution with mean zero and $$\sigma = \frac{v}{\sqrt{3}}$$ Someone can explain to me the... |
I did a liquid argon simulation at 100k. I forgot during analysis that I need to accommodate for the Periodic Boundary Conditions before doing any analysis which included distance. What are other such general things I should keep in mind during my analysis ?
I am rather novice to computational Science and might have mi... |
I have a matrix, whose size scales as $2^N$ (assume even $N$). In each row of the matrix, only about $2^{N/2}$ of the entries are filled ($N$ can be somewhere between 10 and 40, depending on what's feasible computationally). I'm not sure whether using sparse matrices would be suitable for storage and computation - ther... |
I want to verify and compare different Discretizations of the anisotropic diffusion equation in 2D / 3D.
In order to both test the timestepping and the spatial discretisations I had a look at using the heat kernels as an analytical solution to diffusion equations. The one dimensional heat kernel (wiki-link) looks like... |
Say if I wanted to parallelise an algorithm. Only certain parts of this algorithm can be parallelised. The other parts are trivial and not worth distributing. Do I do all of these trivial calculations on my master node and then broadcast the data to all remaining nodes OR do I conduct these calculations on ALL processo... |
I read some books and scoured the web about design pattern,but almost all ways of expressing design patterns are the same. They define what is it,draw UML and give an example,but what I want is to suggest me any site or book that writes some bad code and refactor using one of the design patterns?
|
Background
I am using a neural network to calculate the potential energy of atoms in a configuration and then adding energy of all atoms to compare it with the true energy of the configuration(label) to update the weights.
I am doing so for 10000 configurations of 100 atoms each for liquid Argon at 100K.
Note I don't ... |
I often see people using products of 1-D polynomials to do interpolation or projection of smooth multivariate functions over grids or cells because it is intuitive and simple to implement. What are the effects of using these product-type polynomials, which contain terms up to degree $kp$ where $k$ is the number of dime... |
I am looking for a simple usage example/demo of OpenFOAM + CUDA and would like to understand how exactly OpenFOAM benefits from CUDA. The thing is I do not have any background in fluid dynamics and so finding it hard to get a high-level understanding of the matter.
Appreciate if you can point me to a relevant link. I ... |
I am trying to minimize a function where my initial guess is quite close to the minimum.
I'm trying to minimize
$$f(q) = \text{angle}(qw_1q*, v_1) + \text{angle}(qw_2q*, v_2) + \text{angle}(qw_3q*, v_3)$$
with $q$ being a quaternion and it's conjugate $q*$ and $w$ and $v$ being vectors. What algorithms are there tha... |
I'm trying to write a program in python which doesn't need to use extra packages like numpy and scipy. In one part of the project, if I can interpolate a function to a set of data, I can save processing time. Is there a way to fit a function to a set of data with built-in functions of python only?
|
I would like to solve a linear system of the form $ABx=b$ in parallel, where $A$ and $B$ are large, sparse matrices. Currently, I am forming the system matrix $AB$ explicitly, but I would like to avoid the expensive sparse matrix-matrix product. I can think of two alternatives, but I have questions about each of them.
... |
I am trying to run my matlab script on a Xeon Phi node with 68 physical cores. Using parpool I allocate 16 cores to enable SMD parallelization with a parfor loop. The script looks something like this.
parpool('local',16)
parfor i=1:N
foo
end
When I run the script on Intel Xeon Phi processor (with MIC architecture)... |
For spatial accuracy in 2-D Laplace equation, a 9-point stencil is better than a 5-point one.
$$\partial_tq= r\left(\partial^2_x q + \partial^2_y q\right)$$
for FTCS (forward-time, central-space) scheme to converge for 5 point stencil, $r/2\ge \delta t/ \delta x^2$
What would be the condition for 9 point stencil?
|
I'm looking for some guidance on how to write a program to numerically solve a PDE. As an example for comparison in 1D:
$$\frac{d^2u}{dx^2} = f\;\;\;\;u(0) = 0\;\;\;\;u(1) = 0$$
We could try 6 equally spaced nodes between 0 and 1, interpolate within each element with a quadratic, and ensure continuity of $u$ and $du/dx... |
I want to solve the Poisson PDE for heat flow in a 3-D solid cube with given dimensions $x$, $y$, and $z$:
$$\rho C\frac{\partial T}{\partial t} = k \Delta T$$
The cube is irradiated with a constant heat flux $I(x,y)$ at the $z=0$ surface. The boundaries should meet the Neumann condition for radiative cooling given by ... |
I'm using the Convection(/advection)-Diffusion(-Reaction) equation to calculate the temperature over time in different hydraulic parts like a pipe or a heat exchanger.
The flow/convection is always 1D, while the diffusion, in this case, heat conduction, can be 1D, 2D or 3D.
Let's consider an example fully in 1D for the... |
I have a self-written MD code in C++. I am simulating atoms using the Langevin dynamics model. I use the linked-cell method to speed up the simulation; as a result, atomic interactions are only happening among the nearest neighboring atoms. That means, when calculating the distances between atom $i$ and the rest of the... |
I have $q$ $n$-dimensional vectors $\vec y_i$ and a matrix $\hat B$ of shape $n\times m$. I'm looking for $q$ $m$-dimensional vectors $\vec x_i$ such that:
$\vec y_i=\hat B \vec x_i$
each vector $\vec x_i$ represents probability distribution (each entry is non-negative and the $L_1$ norm is 1)
Associated issues are ... |
I've got a system of several PDEs for a multitude of parts which represent real hydraulic parts like pipes or thermal energy storages. Each of these parts may have an arbitrary number of nodes and/or or dimensions.
The PDEs of most parts are non-stiff, while a few parts tend to have quite stiff PDEs.
Thus filling one s... |
My background is in applied mathematics and I'm trying to learn plasticity. I have successfully understood the theory and finite element implementation of: linear elasticity, hyperelasticity (Neo-Hookean etc.), elastic contact problems (penalty and Lagrange multiplier-type methods). Recently I have been studying plasti... |
Suppose a tiling is given in 2D (an embedding of a planar triangulated graph), with all faces convex.
Now suppose one moves each point, one by one, to the barycenter of its neighbors. I think that with such an update one can guarantee that the planarity is preserved at each step (after each point is moved). But could... |
Given a set of $n$ points on which a triangulation is performed, it is possible to construct coefficients $\lambda_{ij}>0$ such that each point $x_i$ is a convex combination of the points connected to it. Suppose $N(i)$ is a set of points adjacent to $x_i$ in a triangulation; then, for each $x_i$,
$$\sum_{j\in N(i)} \l... |
We research the aerodynamics of the vehicle. Usually, there exists turbulence, which will cause the time-varying measurement of the force. The unsteady flow field determines we could not get a definite result. Often, we get a rough result. However, this time I calculate the force with CFD (computational fluid dynamics)... |
Suppose I want to generate a vector y which when circularly convoluted with a vector h gives me a vector x. I can find such a vector through the division of FFT as below:
y = ifft(fft(x)./fft(h)) // (1)
For example:
x = [2,4,8];
h = [1,0.5,0];
then y comes out to be:
y = [-0.8889, 4.4444,... |
I am trying to solve a three-dimensional baroclinic transport problem. The hydrodynamic (three-dimensional shallow water) equations are:
\begin{align}
\nabla \cdot \vec{v} = 0, \tag{1} \\
\frac{\partial u}{\partial t} + \nabla \cdot (u \vec{v} ) + \frac{1}{\rho_0} \frac{\partial P}{\partial x} - f_{\text{coriolis}}v -... |
I'm trying to implement Barnes-Hut algorithm, with a binary tree. My initial conditions are a uniform mass distribution in a sphere with radius $R$. How can I create uniform dots distribution in a sphere?
|
My question is about how I can solve a coupled system of ODE's, and print out the variables in a plot.
I am solving for an q value and an e value, seen in this set of coupled ODE's below:
$$
\begin{aligned} \frac{dq}{dt} &= \frac{48}{5\pi M^2}(2\pi Mq)^{11/3}e\frac{1+\frac{73}{24}e^2+\frac{37}{96}e^4}{(1-e^2)^{7/2}},\\... |
I am using the CUSP CG solver and I ran it on a couple of sparse matrices from the University of Florida sparse matrix collection. The solver was able to solve non positive definite sparse matrices. My understanding is that CG solvers can't solve non positive definite sparse matrices? So is how was CUSP's CG solver abl... |
What is the difference between Simulation-based Optimization and PDE-constrained Optimization?
Would studying a text on Simulation-based optimization be sufficient to understand and apply both?
|
I have 5 million items that have 10 features (all continuous and not categorical) each and would like to select a small subset of these items. Ideally, I want to manually specify 10 features of my own up front and find a subset of items in the pool that are all close to the features I specify. By closest, I mean the di... |
It is so confusing, especially when I learns discontinuous galerkin method in broken Sobolev space and weak Dirichlet boundary condition.
If the trial function is chosen with homogeneous boundary conditions, how can I get a linear discrete equation corresponding to test basis functions with DOFs on the boundary? I mean... |
I am struggling a bit with the concept of preconditioners for iterative solvers and how to implement them efficiently. The literature mostly provides methods to create a preconditioner matrix $M$ (incomplete LU, incomplete Cholesky etc.). But the conjugate gradient methods need $M^{-1}$ during the iterations. As invert... |
I have a 7-14 dimensional piecewise linear cost function I'd like to minimize with two quadratic terms of the form:
$$
f(X) = X^tCX + d \sum_i |x_i-x^*_i|^2 + \sum_i P_i(x_i-x^0_i)
$$
$$ \sum_i x_i = 1, 0 \leq x_i \leq 1$$
where $d>0$, $C$ is positive definite and $X^*,X^0$ are fixed.
The $P_i(x_i-x_i^0)$ are conti... |
I know Lax-Milgram theorem is fundamental to FEM. But it did not explain what will happen if coercivity is not met.
My understanding is if it is met, eigen value of the operator (or its corresponding matrix) is always positive (may be degenerated). If it is not, with the refinement of grid, more and more eigen value wi... |
I have read this question and answer – Interpolation of scattered data to a regular grid in python and I am doing something similar as I have temperature values of the atmosphere at different heights defined on a coarse grid and I want to interpolate this to a regular grid in Python and I also need to weight the matc... |
I want to solve a QCQP in Python. It is a problem from finance: maximise return (linear function) given some linear constraints and one quadratic constraint that turns it into a QCQP. Formally,
$$\begin{array}{ll} \text{maximize} & c^T x\\ \text{subject to} & x^T \Sigma x \le \sigma^2\\ & Ax \le b\end{array}$$
The matr... |
In Finite Difference method or Finite volume textbook. Dispersion/Dissipation can be analyzed by set $u = u_0\exp{\omega t +\mathbf{kx}}$。
However, I cannot find something about this kind of analysis in FEM without convert it to a system of difference equations. And FEM is a little more complex because of there are two... |
I am working on a 2D unstructured code in C++. I am using gmsh to generate a 2D unstructured mesh and reading it into my program with a library called GMSH_IO. Now that I have the data, I would like to write it to a VTK file for visualization in Paraview.
I could do this manually, but I am curious if anyone knows of a ... |
What scientific problems can be simulated with computers that couldn’t be simulated 10 years ago?
I’m particularly interested in cutting-edge scientific simulations, which wouldn’t have been possible (due to computational constraints, or lack of knowledge) 10 years ago.
Please provide links to software, if possible.
|
Given triples of $n$ floating point values
$$(\min_1, \max_1, w_1), \dots, (\min_n, \max_n, w_n)$$
and a value $V$, what is a good algorithhm to assign values $v_i$ to each of the triples such that the following conditions hold?
$\min_i \le v_i \le \max_i$.
$\displaystyle\sum_{i=1}^n v_i = V$.
$\dfrac{v_i}{V}$ is as c... |
For example, for 1D Burgers equation
$$
u u_x = 0 \\
$$
equivalently,
$$
\frac{dF(u)}{dx} = 0\\
F(u)= \frac{u^2}{2}
$$
If I want to obtain $A_{ij},i\ne j$ for two DOFs ($U_i$ and $U_j$) of two elements ($E_0$ and $E_1$) sharing an internal interface $\Gamma_0 $.
I need to substitute $u =\phi_i$ and $v=\phi_j$ to nonli... |
Connected to this question here on Computational Science, I've posted a follow-up question on how to solve a PDE using an implicit scheme like Crank-Nicholson in general in this question on SO.
But I guess it is better to ask here it is correct to solve a PDE with an implicit step in this way in general and ask the mor... |
Assume one has a triangular sparse matrix and want to solve $Lx=b$ where $b$ and $L$ are known. This can be done easily by using forward substitution when $L$ is a lower triangular matrix. Forward substitution is highly sequential and hard to implement in parallel.
I have read some articles about level scheduling where... |
I'm interested to derive the total energy balance from Chapman-Enskog analysis of lattice Boltzmann equation (LBE). I know, I should go to the second moment of LBE (zeroth moment gives mass conservation and first moment gives momentum conservation). In fact, I derived the main equation for the second moment at convecti... |
This is a problem I am encountering in a research project. I have thought of a naive approach to solve it which relies on many assumptions, is not guaranteed to work, and would be tedious and computationally expensive to implement. Hence, I am wondering if there would be cleverer or more general approaches. Below I wil... |
I am trying to solve numerically a constrained optimisation problem in MATLAB, and I am wondering how the fmincon function calculates gradients when one isn't provided. Does anyone here know, or know how I might be able to find out?
Running the optimisation problem takes more time than I'd like it to, so I was hoping t... |
The Navier--Stokes equations are axially symmetric, so with symmetric boundary conditions, how can features such as Karman vortex streets develop?
I understand that in reality symmetry does never completely hold due to minimal fluctuations of geometries, densities, etc., but in the linked article, vortex streets develo... |
I would like to use automatic differentiation to calculate gradients to function written in numpy.
I've come across a number of packages, including
autograd
tangent
chainer
But none of them seem to support things like numba and numexpr, which I'd normally use to accelerate my python code.
What packages do people use... |
I'm new to SOCP and want to try to get familiar with the format and how to solve it with cvxopt in python. However, for a simple toy example I'm struggling to get the right input format.
The problem I want to solve has the form
$$ \max_x c^T x$$
subject to
$$ \| A_ix + b_i\|_2\le c_i^Tx + d_i, i=1,\dots, m$$
$$Fx = g $... |
I'd like to find an algorithm that can solve the following problem:
Consider 4 groups of numbers:
Group 1: [10, 100, 1000],
Group 2: [101, 15, 2000],
Group 3: [20, 1500, 100],
Group 4: [150, 3000, 13].
I need to select one number from each group so that the difference between the maximum and minimum of the four selec... |
I am trying to sort data following a bivariate distribution into a numpy histogramdd, where each bin should contain the same number of data points (to the nearest whole sample).
I expect that some kind of quantile-approach is required, and have tried scipy.stats.mstats.mquantiles, which according to the documentation t... |
A certain filter I'm writing uses two different kernels. The Fejer kernel (which is common) and the Jackson kernel:
$$ \Delta_T(x) = T \,\left( \frac{\sin \pi T x}{\pi T x}\right)^2 \quad\text{and}\quad
J_T(x) = \frac{3T}{4} \left( \frac{\sin \pi T x/2}{\pi T x/2}\right)^4
$$
So I had to remind myself how these tw... |
I want to do somethings similar to the plot found at the bottom of this blogpost, which I found via this post in ParaView, which seems to have been the original Application used to generate the plot.
I have a .csv-file containing data points of the form $(x, y, z, a)$ where $a$ ranges from 0 to 1 and represents gives ... |
I would like to insert elements into a ring (circular) buffer one at a time and maintain a permutation array which keeps track of the sorted elements in ascending order. To do this, I have adapted the "Insertion Sort" algorithm to use circular array indexing:
/* sort ringbuf entries with insertion sort algorithm */
voi... |
There are generic methods for solving systems of ODEs numerically. Are there generic methods for PDEs? If so, what are they? If not, why not? To elaborate...
Any set of ODEs can be written in standard form as a set of n first order ODEs in n variables. A single method can then be used. The number of boundary/initial co... |
I am trying to do integrals of the type
$$
\int d^3\vec{p} \int d^3\vec{p}' e^{-p^2} e^{-{p'}^2}f(\vec{p}, \vec{p}')
$$
where $\vec{p}$ and $\vec{p}'$ are three dimensional vectors represented using spherical coordinates, $\vec{p} = \{p,\theta,\phi\}$, and $f$ is a non-trivial, potentially complex, function. The integ... |
I have a python implementation of calculating the partial trace over select dimensions.
def partial_trace(rho, keep, dims):
"""Calculate the partial trace
Parameters
----------
ρ : 2D array
Matrix to trace
keep : array
An array of indices of the spaces to keep after
being tr... |
Given a fat matrix $B \in \mathbb{C}^{n \times m}$ (where $m > n$) with full row rank, I would like to find (numerically) a full-rank matrix $A$ that minimizes the Frobenius norm of the product $A B$. Formally,
$$\underset{A \in \mathbb{C}^{n \times n}}{\text{minimize}} \quad \frac{1}{2} \|AB\|_F^2 \quad \text{subjec... |
I have a time dependent data set where each frame corresponds to a certain date. I need to show the time annotation, much like what Annotate Time Filter does, but show the date instead of time as a float value. How can I do that?
In python I can convert the time index to a date with datetime for instance:
init_date = d... |
Every real matrix $A$ can be reduce to real Schur form $T = U^T A U$ using an orthogonal similiary transform $U$. Here the matrix $T$ is quasi-triangular form with 1 by 1 or 2 by 2 blocks on the main diagonal. Each 1 by 1 block corresponds to a real eigenvalue of $A$ and each 2 by 2 block corresponds to a pair of comp... |
I would like to determine the number of negative eigenvalues (inertia count) of the $(N \times N)$ symmetric real matrix $K - \sigma M$, with $K$ a positive-definite sparse matrix and $M$ a positive-semidefinite matrix such that $M = Z Z^T$ with $Z$ a dense $(N \times r)$ full column-rank matrix, $r \ll N$, $\sigma > 0... |
I'm trying to solve aerodynamics of whole aircraft by vortex lattice method (or deeper here). The problem is that sometimes trailing vortex filaments from Horse Shoe Vortexes of main wing hits panels of rudder/elevator which leads to singularities (infinite coupling between the two panels).
Is there good way to damp t... |
My question concerns a specific statement in this paper:
N. N. Schraudolph and T. Graepel, "Conjugate Directions for Stochastic Gradient Descent," in Int. Conf. Artificial Neural Networks, Berlin, 2002 pp. 1351–1356. The preprint is available here.
Schraudolph and Graepel address the problem that in stochastic setti... |
I have a situation where I'm interested in solving the same ODE many times, from different initial locations. More precisely, I'm interested in solving an ODE of the form
\begin{align}
\frac{dx}{dt} &= f(x) \\
x(0) &= a \in \mathbb{R}^n
\end{align}
where I know that this ODE has a $T$-periodic orbit $\mathcal{A}$, i.e ... |
I'm trying to solve this equation (Windkessel equation) numerically as:
$$C \frac{d P}{d t} + \frac{P}{R} = Q(t)$$
Where $C$ is compliance, $R$ is resistance, $P$ is pressure, and $Q(t)$ is a known input signal (i.e. volumetric flux). I tried explicit (i.e. Forward Euler Method) as well as semi-implicit (i.e. Backward ... |
Lets say that one has a scalar field defined in 3D space for whose gradient he wants to find the Morse-Smale Complex for later performing an integration of several hexa-dimensional functions over attractor domains. The functions to be integrated are mostly concentrated around the attractor with relatively small contrib... |
I want to solve the time-dependent Schrodinger Equation using the Crank-Nicolson scheme. I end up with the following matrix equation
A_fixed = ... # the matrix that does the finite difference method
B_fixed = ... # the matrix that does the finite difference method
A = A_fixed - diags(V) # Add the potential term V to... |
I want to see tetrahedron volumes generated from STL meshes in ParaView (5.5.2).
From a given STL (simple cube, for example), I can generate a volume mesh using gmsh, and export it as .vtk UnstructuredGrid.
When I open it with notepad, I can inspect that its properly generated, with all the surface and volume elements... |
I am trying to solve a set of coupled, nonlinear ODEs. The only dependent variable is a 1-dimensional spatial coordinate, let's call it $x$. For now, I've managed to approximate away some of the coupling between the equations, such that the first one doesn't depend on the second one at all. I solved it with FEM without... |
1) Which approach from the following approaches "a" and "b" is used while performing crossover?
a) By selecting any 2 parents randomly from selected population, crossing them, forming just TWO offsprings, adding them in population and throwing out just TWO least fit individuals.
Thus, here, the new generation will hav... |
I have an application that is somewhat similar to the situation of computing Gaussian quadrature nodes and weights: simply put, I need to compute the eigenvalues and the last two (normalized) components of the eigenvectors of a symmetric tridiagonal matrix.
I am aware of the Golub-Welsch scheme that uses the implicit Q... |
I am interested in solving the following semidefinite optimization problem:
\begin{equation}
\begin{split}
\underset{X,\lambda}{\rm maximize} \;\;\;\;&\lambda^Tc \\
&-\mathbb{I} \le X \le \mathbb{I} \\
&X - \sum_{k=1}^m \lambda_k A_k \ge 0,
\end{split}
\end{equation}
where $\lambda,c \in \mathbb{R}^m$ and $X,A_k$, for ... |
Suppose I want to solve
$$\text{arg min}_x \frac{1}{2}\|\tilde{A}x - b\|_2^2 + \frac{1}{2}\|x - c\|_2^2$$
where $A$ is a wide sparse matrix and $\tilde{A} = A C_n = A (I - \mathbf{1}\, \mathbf{1}^T/n)$ is the "centered" version of $A$, typically non-sparse. [1]
If I am willing to materialize $\tilde{A}$, I know severa... |
I use interval arithmetic for reliable computing. Now, a procedure coded in a good implementation of interval arithmetic takes perhaps about eight times as much as the same procedure carried out without interval arithmetic (if the lion's share of runtime is taken by floating-point computations). I have sometimes been a... |
I am trying to find the diffusion coefficient ($D$) and the partition coefficient ($KLP$) using experimental data of desorption of a pollutant from a film into a liquid. This process can be modelled, under certain assumptions, following Fick's law (related question here for more details on the model)
I am using Matlab... |
I want to resolve numerically this equation using of difference finite method with Leapfrog Scheme
$$\frac{\partial{u}}{\partial t}+ v \frac{\partial{u}}{\partial x}= 0 $$
I'm trying to write a code that resolves that PDE wit $v=1$ in leapfrog scheme (http://www4.ncsu.edu/~zhilin/TEACHING/MA584/Chapter5_fd_fem.pdf page... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.