instruction stringlengths 43 28.1k |
|---|
I have an ordered list of (2d-)points that are forming a (not axis aligned) rectangle and I'd like to recover that rectangle. Approximations like a minimal enclosing rectangle can't be used so that I'm looking for an algorithm that minimizes the least-squares norm or the hausdorff distance.
The rectangle can be a squ... |
I am facing a problem with MPI (Fortran). I have a really big matrix at each node and they differ at different nodes. At some point of my calculations, each node needs the matrix from all other nodes, so that the MPI communication is between every node. Each node is a sender at the same time it is also a receiver. The ... |
A few days ago, I asked how constraints like $A^T A = I$ can be implemented if one wishes to integrate differential equations of the form $\dot{A}=f(A,t)$. Kirill was so kind to point out that a projection step on the Stiefel manifold after one integration step (for example after one Runge Kutta step) is sufficient to ... |
For the past several weeks I was attempting to adapt Lax-Wendroff or some similar scheme for polar coordinates. The process was complicated due to me being unable to find step-by-step derivations of used schemes, so i had to guess the process for cartesian coordinates and to repeat the same for polar ones.
I managed to... |
I have a 2D triangle which deforms with each vertex moving by some small ($\sin(x) \approx \tan(x) \approx x$) displacement vector. The displacement of any point in the triangle is linearly interpolated from the displacements at the vertices.
How can I find the rotation angle of any point in the triangle?
I want the ro... |
I am having trouble indexing correctly the below statement in C inside a function and then returning it as a pointer. The returning part should not be confusing - hopefully - however the indexing is a nuisance. P can be just about any real number greater or equal to 0 and $O_{j-n}^{k-m}$ is supposed to be a pointer to ... |
I consider ordinary wave equation
$$ u_{tt} - u_{xx} = 0 $$
with initial conditions
$$u(x, 0) = \exp (-2 x^2) \\
u_t(x, 0) = 0 $$
To solve this problem I approximate $u_{xx}$ with 4-th order difference scheme and find time evolution with symplectic 4-th order method.
I use following parameters:
$$x_{min} = -500 \\
x_{... |
While reading Boyd's paper on ADMM I encountered an issue.
Consider the following problem:
Problem. Minimize $f(u) + g(v)$ subject to $Au + Bv = c$, where $f$ and $g$ are closed, proper, convex and differentiable.
Denote by $\lambda$ the dual variable. On page 18 of the paper, it is stated that the necessary and suffic... |
I have been looking to do a 3D mesh for a shallow tunnel FE analysis.
The output of mesh node orientation along the element should be counter clock wise direction.
How and which material helps me best as I am a programming beginner?
|
Assuming I have a length-$n$ real vector $x$ and have already computed its Fourier transform $\hat x$ (in time $O(n\log n)$), I would like to compute the Fourier transform of $y = x + \delta x$, where $\delta x$ is a small perturbation.
Does there exist a method for computing the Fourier transform of $y$ in less than $... |
I am simulating unsteady flow around a circular cylinder (using FLUENT). I am facing the following problem. Kindly please help me.
OBJECTIVE:
To find out the Reynolds number at which vortex shedding actually starts during a flow around a circular cylinder.
Note: This study is already available in literature. Literatur... |
I have a CFD code that I want to run on an HPC cluster. Of course, before it can be run, it first needs to be compiled.
What is the best option between compiling on the head node and compiling on one of the compute nodes ? The hardware specifications of head and compute nodes are not necessarily identical, and sometime... |
I have a question that relates to the classical "longest common subsequence" problem. I'll give the background to the problem, but you could skip to the formulation below if you like
Let's think of genes on a bacterial chromosome as beads on a string - atomic, unique objects, with an ordering.
I'm deliberately ignoring... |
I know that incompressible and compressible flow solvers are specifically designed to solve different types of problems with different fluid properties/flow conditions. Clearly, among the advantages of using incompressible flow solvers for modeling problems with incompressible fluids is that the energy equation can be... |
I am solving one relatively simple problem with two different algorithm: one which uses brute force while the other is optimized. For a variety of reasons I actually cannot show the codes here but I do not think this is of importance.
Here is how I am currently comparing the two algorithms (I use Fortran):
CALL CPU_TI... |
Problem statement:
I'm trying to solve a problem statement using C# as programming language. In the problem system for an input (double/decimal) say $H_i$, the output generated is a form of dataset containing number of parameters ($F_i$, $P_i$ and $T_i$). I somehow have to filter out only those entries in the data set ... |
In the the Finite Element Method (FEM), we attempt to obtain the Weak Form of the described equation. I understand that this is an attempt to reduce the order regularity of the equation, but what are the actual benefits and disadvantages of using the Weak Form? What does regularity mean in this sense?
I've checked out ... |
I trying to do a simulation where there are two quantities, $\Delta\theta(x,t) = \theta(x,t) - \theta_{o}$ and $\Delta\nu(x,t) = \nu(x,t) - \nu_{o}$. These quantities are chemical concentrations resultant from reactions. There is no significant convective flow only diffusive flow.
The quantities $\Delta\theta $ $\Delt... |
In presenting geochemical data, I would like to try a statistical method that presents the data in an ISOCON diagram. This method requires scaling all the data to be the same distance from the origin (i.e., normalizing so that the sums of squares = 1). Result: all data points lie along an arc of a circle centered on th... |
What does it mean: to force a line through the origin?
I interpret this to be making (forcing) the intercept as (0,0) in the regression procedure of an x-y scatterplot, but am not sure.
|
I have a model of a system which consists of diffusing reactants and intermediates. For each variable, $u_i$, the final representative equation looks like the standard reaction-diffusion form:
$$\frac{\partial}{\partial t}u_i(x,t)=f_i(\bar{u}(x,t))-D\frac{\partial^2}{\partial x^2}u_i(x,t)$$
where $f_i$ is a non-linear ... |
I wrote a small simulated annealing library in C++. Right now is just a few classes, a toy project I want to use to test some ideas. But before I move on I want to be sure that it works. Meaning, that if I give it a difficult problem it will work. I won't be fast, or efficient, or whatever. I just want to be sure it wo... |
I am solving differential equations that require to invert dense square matrices. This matrix inversion consumes the most of my computation time, so I was wondering if I am using the fastest algorithm available.
My current choice is numpy.linalg.inv. From my numerics I see that it scales as $O(n^3)$ where n is the numb... |
Let $u_h$ be the finite element solution of a fourth order equation (like biharmonic equation), using polynomial degree two.
If the convergence rate of $u_h$ is $2$, what is the convergence rate of the second order derivatives of $u_h$? Is it possible they do not converge?
|
Background
I am a graduate student and a researcher. I do not like to rely on commercial products due to cost and also because I feel more comfortable in using and extending existing tools based on languages such as Java, Python, C#, and R.
Right now I want to establish a base line of classic neural networks before I ... |
I haven't much experience with conservation laws, shocks, etc. After reformulating my wave equation to 1st order system (velocity-stress):
$$
\frac{\partial v}{\partial t} + A \frac{\partial v}{\partial x} + B \frac{\partial v}{\partial y} = 0
$$
where: $v=(v_{x},v_{y},\sigma_{x},\sigma_{y},\sigma_{xy}) \\ A = A(\rho, ... |
After running several calculations with numpy, I end with the mean vector and covariance matrix for a state vector. Is there a way with numpy or scipy to sample a random vector around this mean and covariance?
|
I was wondering if anyone knows about the differences between the large HPC resources available to US researchers. I am currently using a startup allocation (through the NSF GRFP) on XSEDE but was thinking about helping my PI apply for a research allocation. However, I was wondering what the other options are. I have h... |
For a system $\mathbf{x=Da}$, there exist a lot of algorithms to estimate sparse vector $\mathbf{a}$.
I wish to know the big-O mathematical complexity of
1) orthogonal matching pursuit (OMP) both with fixed sparsity and error tolerance criteria.
2) L1-magic (which is based on interior point methods) algorithms.
|
I need to implement a structural analysis code, and I turn to you for advice. My needs are simple:
Library must be integrable in a C++ code
I want to express a weak form, without manual intervention
The second point leaves libraries like deal.II out of my scope. I've tried FEniCS, but it is a nightmare to make it wor... |
I have a conic section in the real projective plane. This is represented by its real symmetric 3×3 matrix. I verify that the conic section is real and non-degenerate by computing the eigenvalues of the matrix, finding that it's of full rank and indefinite, and follow a different code path if it isn't. The conic coul... |
I have two line segments given by their endpoints $(a_1,a_2)$, $(b_1,b_2)$ in $R^3$ and want to know if they have the same length (up to some error), so that the naive test looks like
$$|\, \Vert a_1-a_2\Vert- \Vert b_1-b_2\Vert\, | < d_\text{threshold}$$
However, I need to test a large set of segments so I would like ... |
I am looking to implement GMSh into a simualtor that I am going to create. I am looking to integrate the geo, mesh, and post processor modules.
However, looking online, it appears the documentation for the GMSH function calls are non existent. I was wondering if anyone on the forum has ran into some sort of documentati... |
For those familiar with more of these tools than I am, what are the pros and cons of the various tools available? Right now I exclusively use Tecplot for CFD visualization, but it leaves a lot to be desired. The vector graphics are okay, but not great, and it's not clear to me how to have the fonts be correctly generat... |
I'm looking to solve a matrix equation and not sure where to start looking for resources.
The equation is
$$AX + XB = C\,,$$
where $A\in\mathbb{R}^{n\times n}$, $B\in\mathbb{R}^{m\times m}$, $C\in\mathbb{R}^{n\times m}$ and $X\in\mathbb{R}^{n\times m}$.
(Alternatively $AX + XA = C$ with $n=m$ would be useful.)
I can se... |
Given that $R$ is a rectangular matrix, $D$ is a diagonal, square matrix and $S$ being a square matrix along with the fact that both $D$ and $S$ are invertible. $S$ in this specific case can be assumed to be symmetric, positive-definite.
$R$ is actually the first few columns of the discrete Fourier Transform matrix. Th... |
I am confused.
I read an introduction to finite element method where it was derived for the poisson equation:
$$-\Delta u + cu = f,\qquad, u = g_0 \text{ on Dirichlet boundaries},\qquad\partial_n u g_1 \text{ on Neumann boundaries}.$$
It introduced the concept of the weak form:
Find u such that $u=g_0$ on Dirichlet b... |
I am trying to evaluate this integral directly using numerical integration functions in Mathematica and Python.
$$
\int_0^\infty {y^{-(n+1)}\prod_{i=1}^n \gamma(a_i+1,b_i y) }dy
$$
where $\gamma(a,x)=\int_0^x dt\ t^{a-1}e^{-t}$ is the lower incomplete Gamma function. In my actual problem $n$ can take values from 10 to ... |
Our task is to implement a factorization routine that given A in a suitably efficient data structure returns the factors $L$ and $U$ where $L$ is unit lower triangular and $U$ is upper triangular. In order to guarantee that pivoting is not required you may restrict $A$ to be a diagonally dominant matrix. You must also ... |
I am a beginner user of R. I am trying to maximize log likelihood function with the bounded parameters. The function is a kind of gamma mixture model which try to capture unobserved heterogeneity across individual. I chose the optim's L-BFGS-B given that the function contains two parameters (i.e., alpha and r) which sh... |
Consider a discrete constrained optimization problem:
$$
\mathbf{q}_*^h= \arg \min {\cal J}^h(\mathbf{x}^h[\mathbf{q}^h],\mathbf{q}^h)
$$
subject to the (weak-form) constraint
$$
F^h[\mathbf{x}^h(\mathbf{q}^h),\mathbf{q}^h](\mathbf{w}^h) = 0 \; \forall \, \mathbf{w}^h
$$
with $\mathbf{x}^h \in \Omega^h$ (the discrete d... |
I'm trying to assemble global matrices for the following system.
$$
\begin{bmatrix}
K& Q\\
Q^T&S
\end{bmatrix} \begin{bmatrix}
u_h\\
p_h
\end{bmatrix} = \begin{bmatrix}
f_u\\
f_p
\end{bmatrix}$$
In which,
$$ K, Q, Q^T, S $$
are matrix generated from element integral, which I know how to compute. Likewise,
$$f_... |
I am trying to implement a solver for the Euler/Navier Stokes equations. I have a problem implementing boundary conditions for the wall. I am using an unstructured solver.
A lot of literature says that at the wall you simply reflect the normal velocity, and then pose it as a Riemann problem. So let me take the momentu... |
My question falls under purview of turbulent flows. I want to add an initial perturbation, for which I have a given energy spectrum (say$ E(k)=ak^4e^{-bk^2} $). The steps involved in getting these perturbation is as follows:
Choose random values for $u\in (-1,1)$
Fourier transform: $u(x,y,z)\rightarrow\hat{u}(k)$
Mak... |
I want to simulate the electric fields in simple circuits using Python and only free software. My first goal is to reproduce the images given in (1) which are made by the commercial ANSYS Maxwell software. Where to start for such a project? Which libraries are suitable to attack this problem by solving Maxwell's equati... |
Specifically, how does one go about writing code that works with, say, both MPICH and OpenMPI?
I am currently in the process of cleaning up the build scripts and code for a distributed-memory stochastic mixed-integer linear programming package we aim to release this Spring. One of idiosyncrasies of the code (or rather,... |
Suppose I want to numerically solve for $f(x,k)$ the one-dimensional Boltzmann equation for electrons in steady-state condition, given as:
\begin{equation}
\left( \dfrac{\hbar k}{m} \right) \dfrac{\partial f}{\partial x}
+ E \dfrac{\partial f}{\partial k} = \dfrac{f-f_0}{\tau}
\end{equation}
where all other symbols rep... |
I am trying to figure out at exactly what dimension it is better to use Strassen algorithm rather than the standard multiplication. I know that there is 18 addition and subtraction in Strassen algorithm but I don't know how I must calculate it. This is a homework so I don't want direct answer without any explanation. A... |
To solve the heat equation from implicit scheme subject to Neumann boundary condition we can write:
$$
T_i^{j+1}-T_i^{j}=\alpha (T_{i+1}^{j+1}-2T_{i}^{j+1}+T_{i-1}^{j+1})
$$
$$
\textbf{A} T^{n+1} = T^n
$$
$$
-\alpha T_{i-1}^{n+1}+(1+2 \alpha)T_i^{n+1}-\alpha T_{i+1}^{n+1} =T_i^n
$$
Initial and boundary conditions are ... |
I can not undrestand when we have jump on interior boundaries, if the solution be continuous. In the interior boundaries, derivatives have only different unit outward normal vector and this means we can discard all interior derivatives terms. But in some text i see that they are different and the notation of $[\frac {... |
I am looking for an algorithm to search a substring in a string. I know there are a number of wellknown Algorithms like Knuth-Morris-Pratt, for instance, and I suppose most preimplemented functions use one of those. However, I remember a lecture, long ago, where the lecturer said that the usefullness of such an algor... |
I have to write a program where I have to perform matrix-vector multiplication and the matrix is sparse matrix. Most sparse matrices available online are in Harwell-Boeing format and they have to be read in compressed sparse row format in order to do operations on it. How should I read such a file and convert into comp... |
I am looking for credible references stating how much resources supercomputers spend on coordinating versus doing actual task-related work. Resources could be available processing power but even Watts seem like a valid unit.
I believe one of my professors or text books once said that in massively parallel systems, up t... |
I implemented an $LU$ factorization algorithm on c++ for a $n$ by $n$ matrix $A$, and I wanted to now write a routine that solves the systems $Lv = f$ and $Uv = f$. How would you recommend writing such a routine. I am aware of using a linear algebra package on c++ in which I could take the inverse of $L$ and $U$ and so... |
I want to solve two dimensional Navier Stokes equations on a staggered grid for the case of Taylor-Green Vortex. My initial conditions are standard sine and cosine functions. As I am aware, I should use periodic boundary conditions on all the four boundaries. I am facing some trouble regarding implementation of this BC... |
I am trying to solve $Ax=b$ using the conjugate gradient method. However, it is important to me to obtain a bound not only on the usual residual $||b-Ax_k||_2$ but also on the quantity $||b-Ax_k||_1$.
I have two questions:
Is it true that $||b-Ax_k||_1 \leq C ||b-Ax_0||_1$ for all iterations $k$ where $C$ is some con... |
This might be the wrong stackexchange site for this question. math.SE, cs.SE, programmers.SE, and of course stackoverflow are all possibilities. I'm hoping to reach an audience that might actually use this function, to get some feedback on how they'd like it to work.
C's double nextafter(double x, double y) function ... |
I just started working on my master thesis in the theoretical particle physics and my supervisor asked me to start working with FORM, a script interpreter with basic knowledge of lorentz and dirac structures implemented, for the evaluation of some feynman diagrams. As my first glimpse on how FORM looks and works it doe... |
I googled about some code on the complex polygamma function especially C++ code, but can't find anything. Does anyone know where to find such code?
The complex digamma function does exist but not the complex polygamma function.
|
I'm trying to express the following semidefinite program: for given $A \in R^{m \times n}$ and a scalar $\epsilon \in (0,1)$,
\begin{align}
&\gamma_{2}^{\epsilon}(A):= \min\,t\\
&\text{subject to} \left( \begin{array}{ccc}
W_1 & B \\
B^T & W_2 \\ \end{array} \right)\succcurlyeq 0,\, \operatorname{diag}(W_1)\leq t,\, ... |
In this previous thread the following multiplicative way to combine symmetric preconditioners $P_1$ and $P_2$ for the symmetric system $Ax=b$ was suggested:
\begin{align}
P_\text{combo}^{-1} :=& P_1^{-1} + P_2^{-1}(I - A P_1^{-1})\\
=&P_1^{-1} + P_2^{-1} - P_2^{-1} A P_1^{-1}.
\end{align}
This combined preconditioner i... |
I have learnt about Finite Element Method (also a little on other numerical methods) but I don't know what are exactly definition of these two errors and differences between them?
|
I have the following problem:
Given a matrix with n rows and m columns. Some elements of the matrix are unavailable. For each column, you have a set containing a number of zeros and ones which must be distributed over the available elements in that column. The total number of zeros and ones in a set is equal to the num... |
In Gmsh mesh option list ,there is a smoothing concept, what does this mean and what is the effect of its number to the mesh quality?
|
This may be a trivial question, but I've always wondered...
For the classical, central finite difference schemes, if I'm interested in determining the second derivative, does applying the first derivative scheme recursively (2x) give the same answer as performing the second derivative scheme once? What about the behavi... |
I'm currently working with a system where the long range Coulomb interactions are described with the Ewald summation method.
I am using DL_POLY Classic. The Ewald summation method used is described in pages 46-48 in the user manual which I unfortunately can't link because of my low ranking.
I'm working with two paper... |
If we have a discrete saddle point problem with the coefficient matrix
$$ \mathcal{A} =
\begin{bmatrix}
A & B^T \\
B & 0
\end{bmatrix},
$$
then $\mathcal{A}$ is invertible, supposing $B$ has full rank and $A$ is positive semidefinite (which hold in my case), if $\mathrm{ker}(A)\cap\mathrm{ker}(B) = \{0\}$. The... |
I want to discretize and numerically solve the following PDE:
\begin{equation}
v(k)\dfrac{\partial f}{\partial x} + E(x)\dfrac{\partial f}{\partial k} = S\{f\}
\end{equation}
using finite volume (box integration) method.
Since the direct discretization results in an oscillatory solution, I have used the upwind discreti... |
I am looking at a real-world resource allocation problem that is cast as a quadratically-constrained linear program of the form
$$
\max\langle f,x\rangle
$$
subject to
$$
\begin{aligned}
m \leq\,\, & x \leq M, \\
A\cdot x & \leq b, \\
A_{eq}\cdot x & = b_{eq}, \qquad\text{and} \\
\langle x,Q\cdot x\rangle & \leq \alpha... |
Yesterday I was wondering how floats are handled in a computer and what they look like in binary... I learnt about the single-precision floating-point and I tried to see the limit of that format...
I first wrote this little Python (3.4) script
a,b = 1,1
while (a+b)-a-b == 0:
a*=2.0
while (a+b)-a-b != 0:
b+=1.... |
I've been having fun playing around with a simple model for reaction in a co-flow fluidized bed (I'm afraid I'm a chemical engineer, not a computer scientist). Unfortunately, simple physical assumptions often lead to terrifying equations. I've reduced the problem to solving the following set of simultaneous integro-dif... |
I read reference (1),but I am confused about how to introduce a distance vector in Lorentz force like the author does it in equation (11):
$$\rm J\times B = -J\cdot \nabla \left(
B\times r\right)+\left(J\cdot \nabla B\right)\times r$$
$\rm J$ is a current, $\rm B$ is magnetic field, $\rm r$ is the distance vector
and e... |
There are $n$ points in a 2-D plane and each is given by its $x$ and $y$ coordinates. They are stored in an array in an ascending order with respect to $x$.
All points are connected together by line segments ($n\choose 2$ lines). Within the complete graph created by these line segments, how can we find a line which ha... |
This may be a trivial question, and I apologize if so. Consider the following simple problem: We have a 2D, regular grid of points (say $X = [0,5000] \times [0,5000]$) spaced uniformly by units of 1 (e.g., $(0,0), (0,1), (1,0) \in X$ and there exists a function $f(x,y)$ that we aim to approximate on $X$. Let's assume ... |
I am trying to solve the following optimization problem:
\begin{align}
&\min\limits_{s} \rm{tr}\left(S^T S\right) + \mathrm{tr}\left(\left(S^T S\right)^{-2}\right)\\
&\text{subject to }\rm\left\|S^TS-Z^TZ\right\|_{norm}\leq \epsilon\end{align}
Where $\rm \|\cdot\|_{norm}$ could be either the Frobenius norm or the $\ell... |
I am having a really hard time getting any kind of reliable / consistent result from my Metropolis code. I have torn it apart and am now examining just the randomness in my random number generator.
I decided I would just run many iterations over a spread from -1 to 1 and it should give me an average of 0. I was complet... |
Webster equation is a popular generalization of 1D wave equation used for ducts of variable cross-section $S \equiv S(x)$. Assuming harmonicity in time, the spatial equation for propagation of variable $\Phi(x)$ is:
$$
\frac{\partial^2 \Phi}{\partial x^2} + \frac{\partial (\ln S(x))}{\partial x}\frac{\partial \Phi}{\pa... |
I am very new to optimization. so, sorry If I ask a simple question. I have a problem with a dozen of variables. I want to use Augmented Lagrangian for solving the problem. I write a code based on the method(in matlab). Unfortunately, the code doesn't work And I don't know how to understand what's going wrong?
How to ... |
I'm trying to find inverse of a matrix using c++ library armadillo or eigen. But first row of the matrix is wrong, please note that other elements are correct. I'm unable to understand what mistake I committed, please help me.
My code is:
#include <iostream>
#include <armadillo>
#include <cmath>
#include <Eigen/Dense>
... |
Computers can work only with computable numbers, while most of the algorithms are based on analysis of real numbers (real analysis).
When I heard of the existence of computable analysis I immediately had these questions:
Can it help numerical analysis in some way?
Can we for example, help prove convergence of algor... |
I have been doing finite element analysis using Matlab. I look for many examples and tutorials producing only the stiffness matrix letting elements being weightless. However, in my case, I need to do a soil deformation where the self-weight of elements is significant.
Any guidance will be appreciated.
|
I have a problem that I've framed out in a particular way, but I don't know if I'm re-inventing the wheel here. Is there an existing literature base in this problem? Does it have a corresponding term of art? Where would you recommend that I start reading about this type of problem?
The basic problem that I have is that... |
After doing some mathematics related to the stability of elements in 3D Stokes problem I was slightly shocked to realize that $P_2-P_1$ is not stable for an arbitrary tetrahedral mesh. More precisely, in case you have an element where all nodes and three out of four facets lie on the boundary of the domain with a Diric... |
I have a matrix, $X$, it is symmetric. I project $C \odot X$ and $D\odot X$ to semidefinite cone. $C$ is a Gramian matrix with some elements near zero and of course semidefinite, with one row and column equal to zero. $D$ is a matrix of ones except one column and row equal to zero (not the same column and row as $D$). ... |
The free-streaming term in stationary 1D Boltzmann equation satisfies the equilibrium distribution function, that is:
\begin{equation}
\text{Fr}\{f\} := v(k)\dfrac{\partial f(x,k)}{\partial x}
- \dfrac{d\varepsilon_\text{sub}(x)}{dx}\dfrac{\partial f(x,k)}{\partial k}
\end{equation}
equals zero by putting $f_0(x,k) =... |
I have implemented the Richardson extrapolation of the Euler-Maruyama method to 4th order, to estimate the moments of SDE.
The Euler-Maruyama works, and I would expect the Richardson extrapolation to work too, because when I suppress the noise contribution it gives the correct solution in the resulting ordinary differe... |
I'm looking for a benchmark for the lid-driven cavity problem in 3D to compare the results of my code.
In 2D I used:
U. K. N. G. Ghia, K. N. Ghia and C. T. Shin (1982)
High-Re solutions for incompressible flow using the Navier-Stokes equations and a multigrid method. Journal of computational physics.
Do you know a benc... |
I understand how MH work, I'm able to use it to simulate e.g. 2D Ising model. What I don't understand is what you actually take average of.
When I run the simulation, it reaches equlibrium after some time:
Now each new state is going to be the same, so I see no point in taking the average or variance of the sequence t... |
I am trying to solve a singular linear least square problem:
$$minimize: \phantom{2} ||Ax-b||^2 \\
subject \phantom{2} to: \phantom{2} x \ge 0$$
Here $ A \in R^{n \times m} $, and $ n\lt m$. here m is a very large number and the matrix $A$ is dense and almost full.
The least square solution for this is equivalent to so... |
I am trying to learn the Lattice-Boltzmann method and was looking for some good beginner resources explaining the method. I have been looking at some codes online, but have been having trouble understanding them.
Can someone suggest some good introductory resources about the Lattice-Boltzmann method? If you know of an... |
I want to solve the PDE equation numerically. For this, I started my study with something simple; heat equation
$$
\frac{\partial u}{\partial t}=\frac{\partial^2 u}{\partial^2 x}
$$
with the initial condition
$$
u(x,0)=1\qquad(-1<x<1)
$$
I assumed the constant is set to zero.
My next step was to turn this into discrete... |
I searched the web and found some C code for calculating the determinant of a $n\times n$ matrix. This code however seems timing complexity, and run pretty slow especially when handling a larger matrix, for instance, $1000\times1000$ matrix. I need calculate the determinant of a covariance matrix of a multivariate norm... |
I am reading a paper [1] where they solve the following non-linear equation
\begin{equation}
u_t + u_x + uu_x - u_{xxt} = 0
\end{equation}
using finite difference methods. They also analyse the stability of the schemes using the Von Neumann's stability analysis. However, as the authors realize, this is only applicable... |
I need to calculate the inverse of a dense matrix, with some elements taking values as high as 1e9 and some around 1e2. What would be the best method to do it?
Note:
I am more concerned about the precision of the answer rather than minimizing the computational time.
I explicitly need to find the inverse and not the ... |
I am using FEM to do an assignment on a heat conduction problem on a complex domain, which needs me to get the variation of the temparature distribution subject to the variation of boundary conditions, and its exact solution is unknown. Also I have to show the correctness and convergence of my solutions numerically.
I... |
I was wondering what is a more optimized open source BLAS/LAPACK package with respect to modern multi-core processors (Haswell and beyond). Is there any distribution that can attain performance close to that of Intel MKL for instance?
In addition to Intel, which libraries may perform well on AMD architectures for Zen ... |
I have an equation of the form $J^Te=f$, where $e$ and $f$ are known vectors and $J$ is an unknown matrix.
How can I efficiently compute $J^T(JJ^T)^{-1/2}e$ ?
My motivation to address this problem is that, as a part of a bigger problem I need to compute matrix $J$ then compute $J^T(JJ^T)^{-1/2}e$. However, computation... |
I have an interesting problem from my research that I have been struggling to solve. One part of the problem involves generating all possible matrices, where each set contains three integer vectors, of a given volume $V$. That is the determinant of the matrix should be $V$. The constraint is that the maximum of the abs... |
I need to compute a lot of $3\times3$ matrix inverses (for Newton iteration polar decomposition), with very small number of degenerate cases ($<0.1\%$).
Explicit inverse (via matrix minors divided by determinant) seems to work, and is about ~32~40 fused flops (depending on how I compute reciprocal of the determinant). ... |
As per suggestions of the people from MathOverflow, I'm reposting my question here:
I'm currently trying to solve a linear system $Ax = B$, where the matrix $A$ is ill conditioned (i.e. nearly singular), with a condition number of $~10^7$. The aforementioned linear system arises from a finite difference discretization.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.