instruction stringlengths 43 28.1k |
|---|
I am writing my undergrad thesis on the harmonic oscillator on a lattice. So
far I have implemented the Metropolis Monte Carlo algorithm to generate
trajectories $x_j$ for $0 \leq j < N$, where $N$ is the number of time lattice
divisions.
I get a pretty good histogram for $|\psi(x)|^2$ and it matches the expectation
fr... |
There are several libraries to (iteratively) solve large sparse linear equation systems in parallel on a number of CPUs. Our parallel cluster also has attached powerful GPUs, but so far, I did not find any solver that can use CPUs and GPUs in parallel to solve a sparse linear equation system.
MAIN QUESTION: Are there a... |
Is there a C++/C implementation of the Appell series? GSL and Boost do not seem to have this function.
|
I am trying to reconstruct a 3D surface given the normals of the unknown surface. Reading through this paper on section 4 they say
[...] denote the surface by $z(x,y)$. The directions of the normals are given by $n(x,y) = (p,q,-1)^T$, with $p = z_x$ and $q = z_y$ which denote the partial derivatives of $z$ with respec... |
I'm looking for software recommendations for an electrostatic simulation:
I have a 3d object of uniform, high conductivity, separated from its environment by a high-resistance skin. Inside that object is a dipole, and I want to calculate the strength of the dipole's generated electric field on the surface of the object... |
I have a distance matrix (square, symmetrical, non-negative, dense).
I want to split the objects into two well-connected groups.
Mathematically speaking, I want to group (re-arrange) the rows/columns so that when the matrix is viewed as a 2x2 block-diagonal matrix, the diagonal blocks are "close to zero".
Again: Given ... |
Is there a way to achieve "one cancels the other" semantics (http://www.investopedia.com/terms/o/oco.asp) for qsub jobs submitted to Sun Grid Engine? That is, I submit two (or more) jobs and when one of them runs it cancels the others?
Two examples...
Say I can run for 4 hours on N ranks or 2 hours on 2N ranks. If both... |
I am trying to implement the algorithm presented in this paper which tries to recover a matrix that represent a less noisier dataset of the intensities of the pixels of a set of images. In this case the noise comes from the specularities and shadows of the material of the objects in the images.
I have little (or no) ex... |
Is it possible to use test and trial functions from two different function spaces (defined over two different meshes) in a single weak form? Under what conditions can I do this (eg., each term in the form has functions belonging to only one of the spaces)?
Essentially, I need this to model heat transfer in a block with... |
After realizing that Gauss-Seidel is extremely slow for my simulation, i wanted to try GMRES and luckily found the C++ code here without diving into the theory. The size of the matrix in my case is nxn where n=50,000. However, I even cannot initialize the matrix to zero because the computer freezes while initializing i... |
In methods like gmres or bicgstab it could be attractive to use another Krylov method as a preconditioner. After all they are easy to implement in a matrix-free way and in a parallel environment. For example, one could use a few (let say ~5) iterations of unpreconditioned bigcstab as a precontioner for gmres, or any ot... |
How do we define the matrix for GMRES, if we do not want to solve the boundary elements but only the interior ones.
I am using pentagonal elements so in a row there are 6 elements (cell itself + 5 fluxes) which means that in a row boundary elements are also accounted. But I need to make the matrix square according to t... |
I have the following non-linear equation:
where $w0=0.25,w0=0.5,w0=0.75$. I have to prove that if $k$ is a root, then also $−k$ is a root and that there exists only one $k∈(0,1)$ root, but my MATLAB code doesn't return any solution.
Using wolframalpha I have computed the derivative of w0 and obtained, the constants w0... |
I'm looking for a good way to partition a large, fairly high-dimensional dataset in order to perform fast kNN searches not just in the full $N$-dimensional space, but also in lower-dimensional subspaces of that space.
For example, consider a point $p$ in a 3-dimensional space, $\{X, Y, Z\}$. On the one hand, I want to ... |
I have a little bit of problem figuring out the relation between Fourier series and Least Squares.
As far as I understand, LS is a way of minimizing the quadratic error between a measured value $y_i$ and a linear combination of functions evaluated at points $x_i$. So, in order to solve for least squares we have to have... |
Say I have a vector field with non-zero curl, therefore the potential function depends on the path I choose to integrate.
In this paper the authors proposed to project the vector field into a gradient field of Fourier basis functions in order to make the potential function independent of the path of integration.
I unde... |
Could you tell me please how to obtain separate values of "pi" depending on the value of N (code below)?
For example If I write "pi1" I will get a value of "pi" for N(1) where N(1)=100. If I write "pi2" I will get "pi" for N(2)=1000 etc. I need it to compare the calculation time and the accuracy.
My CODE is:
R=1;
N=... |
This may very well be a silly question but I'm trying to cement my understanding of the material in the SICP (http://goo.gl/QXrbtV). My intuition (common sense) says yes, but wondering from a theoretical point of view if this always holds true.
|
I am trying to implement a simple FEM approach, using p1 triangular elements, for solving the diffusion equation with variable nodal diffusivities and I was wondering how to incorporate the variable nodal diffusivities when computing the element stiffness matrices.
I would really appreciate if someone could point me in... |
$\displaystyle \frac{\partial u}{\partial t}=\alpha(x,t)\cdot \frac{\partial^2 u}{\partial x^2}+b(x,t)$
$u(x,0)=f(x)$ Initial condition
$u_x(0,t)=0$ 2nd type Boundary condition
$u_x(1,t)=0$ 2nd type Boundary condition
There is my code in Maple for the 1st type B.C. And I really do not know, what I should change in this... |
Is it possible to call an external linear solver from Abaqus and/or Ansys?
This solver (which is supplied by me) would get the sparse matrix A and the right hand side vector b as inputs, and would return the solution x (with A x = b) to the program. Ideally, Abaqus/Ansys would also inform the solver about the desired a... |
I have two coupled nonlinear partial differential equations of the form:
$
\begin{align}
\dot{u} -f(u,u',u'',v,v',v'')=0 \\
\dot{v} -g(u,u',u'',v,v',v'')=0
\end{align}
$
The boundary conditions are such that I know $u$ at time $t=0$ and $v$ at time $t=-\infty$. I also know the values of both functions at the two bounda... |
I have a pdb file and I would like to make a pqr one. In GROMACS, I use editconf -mead to produce the pqr file, with topol.top taken from pdb2gmx and use it to produce pdb file, then use pdb2pqr. Which one is the better?
First 10 lines of PQR made from GROMACS
ATOM 1 N PRO A 1 0.63000 39.63000 17.25000 -0.2... |
A small nonlinear equation system (sizes around 12 ✕ 12) needs to be solved repeatedly (millions of times); each time with some variation in parameters/coefficients (although the equation set is always the same).
Most solvers are not very optimized for small systems like this, only achieving higher "GFlops" when using ... |
I am curently using R package nleqslv for solving a non-linear system of equations with 300 variables. I need to scale this to the system with ~50k variables and naturally this does not scale very well, since the jacobian then takes up to ~30G of RAM, and I do not have access to a machine with such amount of RAM. The j... |
I want to add hydrogens to some linear polymer molecules (polyethylenes).
I know some working methods like using PyMOL internal function h_add. This method works, but hydrogens are added at distances from the backbone carbon atoms that vary from 1.07 to 1.1 Ångstroms. I need to control the hydrogen distances from the b... |
As my experience with CFD grows, I start to gain the feeling that turbomacinery is kind of special in CFD: there are special tools tailor for it. For example, ANSYS has TurboGrid or Vista TF for turbomachinery design. And OpenFOAM has special working group for turbomachinery. I wish to know what makes turbomacinery so ... |
I want to solve a poisson problem on two domains,(interface problem: Let $\Omega $ be a square, $\Omega=\Omega1 \cup \Omega2$ and let $\Omega1$ be a circle inside the square.
$\Gamma$ is the boundary of circle.
$$\Delta u_1=f_1 ~~in ~~\Omega1$$
$$\Delta u_2=f_2 ~~in ~~\Omega2$$
$$u_2=g~~on ~~\partial \Omega$$
$$u_2-u_... |
I am trying to solve the Helmholtz equation in some complex unbounded 2D domain:
$$\left( \frac{\partial^2 \psi}{\partial x^2} + \frac{\partial^2 \psi}{\partial y^2} + E \right) u(x, y) = 0$$
However, to start with, I tried doing that in the simplified domain $\Omega = [-\infty, \infty] \times [0, H]$, that is, just a ... |
Consider the following: I would like to solve a differential equation in Fortran (with a Runge-Kutta routine), e.g. x'=-a*x, where a is a constant. I then want to solve this for different a. I now would like to write the code such that it can be applied to other problems. But in general I do not know what additional in... |
The Fast Marching Method is a way of solving the Eikonal Equation on a discrete grid, essentially just computing a wavefront speading out from initial points, IE:
The idea is that we want to compute the time at which a wavefront, moving across a field with a velocity function $F(x, y)$, reaches each point in a grid, I... |
I need an accurate implementation (for use in C/C++) of the logarithm of the incomplete Beta function:
$$\log \mathrm{B}(x,y;\alpha,\beta) = \log \int_x^y t^{\alpha-1}(1-t)^{\beta-1}\mathrm{d}t$$
with domain $\alpha,\beta>0$, $0\le x\le y \le 1$. I need this to avoid overflows with very large values of the incomplete B... |
I like to have a list just like in Python, but for Fortran. I know that there is a generic list type. But here I would have to define a type for each data I would like into the list, e.g. one for Real*8, one for Complex*16,Dimension(:,:) and so on. I would like to put data into the list for which I do not have to defin... |
In the technical report on Galahad[1], the authors state, in the context of general nonlinear programming problems,
To our minds, there had never really been much doubt that SQP [sequential quadratic programming] methods would be more successful [than Augmented Lagrangian methods] in the long term...
What could be th... |
Reading through Tim Davis' book Direct Methods For Sparse Linear Systems, he says that matlab can use a supernodal Cholesky decomposition but never uses a multifrontal Cholesky decomposition. At least when using the backslash operator. By contrast, HSL MA57, used in many optimization codes, is a sparse symmetric indefi... |
Is there a common / good way to represent graphs in Matlab and operate on them? I need to read in an image as a graph and use several algorithms of graph-theory like minimal cut.
|
I am trying to find the solution for the M variables in the following system.
\begin{equation}
0 = C_{b} M^{b}_{x} - M^{a}_{x} k_{2a} + M^{a}_{y} \left(\omega - \omega_{a}\right)\\
0 = C_{a} M^{a}_{x} - M^{b}_{x} k_{2b} + M^{b}_{y} \left(\omega - \omega_{b}\right)\\
0 = C_{b} M^{b}_{y} + M^{a}_{x} \left(- \omega + \ome... |
A consistency notion in constraint programming:
Let $P = (X, D, C)$ be a CSP.
Given a set of variables $Y \subseteq X$ with $|Y| = k -1$, a locally consistent instantiation $I$ on $Y$ is $k$-consistent iff for any $k$th variable $x_{i_{k}} \in X \setminus Y$ there exists a value $v_{i_{k}} \in D(x_{i_{k}})$ such that $... |
To get a numerical evaluation of the first (K) and second (E) complete elliptic integrals:
$$K(k)=\int_0^1\frac{dt}{(1-t^2)^{1/2}(1-k^2t^2)^{1/2}}, \ \ \ \ \ E(k)=\int_0^1\frac{(1-k^2t^2)^{1/2}}{(1-t^2)^{1/2}}dt$$
in a left neighbourhood of the point $k=1$. What numerical methods do you recommend to get a "good" approx... |
I have to solve the problem
$$\min_x 1^Tx+\frac{\lambda}{2}\|\Omega\mu-x\|_2^2+\frac{\beta}{2}\|x-\bar{\gamma}\|_2^2\quad\text{w.r.t.}\quad Px-c=0,\ \ x\geq0$$
and in order to do that with Matlab I am currently using fmincon like that:
FMinValue = @(x) sum(x) + lambda * sum((Omega*mu - x).^2) / 2 + beta * su... |
I'm performing a line search as part of a quasi-Newton BFGS algorithm. In one step of the line search I use a cubic interpolation to move closer to the local minimizer.
Let $f : R \rightarrow R, f \in C^1$ be the function of interest. I want to find an $x^*$ such that $f'(x^*) \approx 0$.
Let $f(x_k)$, $f'(x_k)$, $f(x_... |
Given a triangle mesh $\mathcal{T}$ with vertices $V=\{\mathbf{v}_i\}_{i=1}^n$ in $\mathbb{R}^3$ and triangles $T_{ijk}=[\mathbf{v}_i, \mathbf{v}_j, \mathbf{v}_k]$.
For each vertex $\mathbf{v}_i$, I have a scalar value $f_v(\mathbf{v}_i)=U_i$.
For each edge $\mathbf{e}_j$, connecting vertices $\mathbf{v}_a$ and $\mathb... |
I'm given a stream of acceleration data with timestamps. The sampling is non-uniform.
Apart from Euler, is there a way to integrate the acceleration into velocity? Something more accurate or of higher order?
I can store some past acceleration data, but I'd like to output the velocity as quickly as possible, as new data... |
Let $\mathbf{1}\in\mathbb{R}^d$ be a vector with all elements equal to $1$. Define:
$$\mathbf{D} = \mathrm{diag}(\mathbf{1}^\top,\mathbf{1}^\top,\ldots,\mathbf{1}^\top) =
\begin{bmatrix}
1 \cdots 1 & & \\
& 1\cdots 1 & \\
& & 1\cdots 1
\end{bmatrix} \in\mathbb{R}^{d\times d^2}$$
I would like to compute $\mathbf... |
I want to simulate tidal features in a large body of water using was smooth particle hydrodynamics. For a system composed of an incompressible fluid, what general scale of problem can be tackled with an home computer? That is, how large of a body of water can I accurately represent using Smooth Particle Hydrodynamics?... |
I've been looking through the other answers, and I haven't found a good answer yet. I'll describe the simulation I am running, and then the problems. The program simulates particles undergoing Brownian dynamic motion (thermal motion) alternating with stochastic processes (kinetic Monte-Carlo). When I move to OpenMP ... |
It is necessary for me to produce triangular mesh on a sphere membrane.
I use MATLAB pdetool or delaunay for produce mesh.
How could I do this?
|
Not really much more to say;
Of several computers available for use, these are two of the larger ones; one has 2x E5-2670, and the other has 4x E5-4640. The problems we're looking at essentially boil down to large matrix diagonalisation problems (i.e. i have been dealing with 125K rank matrices, and in the past have lo... |
Essentially this is the problem:
$\hat{F}(\omega) = \int_0^{\infty} f(s)e^{-i\omega s}ds$
The function $f$ is in general complex valued. I know this looks like the fourier transform but I don't want to view it that way. So in my implementation $f(s)$ and $\omega$ are going to be numpy vectors representing the sampled v... |
We all know the problem that computation time explodes when simulating systems with big matrices. I got just this problem, but I have the advantage that I know that my matrices are symmetric.
My question is thus:
Do you know a way to decrease computation time if I know that my matrices are symmetry?
What I want in par... |
First we have Discretization of the Transport Equation
$$
\frac{\partial \rho \phi}{\partial t} + \nabla(\rho U \phi) - \nabla (\rho \Gamma_\phi \nabla \phi) = S_\phi (\phi)
$$
In Finite Volume Method it looks like:
$$
\int_t^{t+\Delta t} \left[ \frac{\partial}{\partial t} \int_{V_p} \rho \phi dV + \int_{V_p} \nabla \c... |
Introduction
I've developed a code to solve for generalised, incompressible 2D Stokes flow
$\eta \nabla^2 \mathbf{v} - \nabla p + \mathbf{S} = 0$
$\nabla . \mathbf{v} = 0$
where $\mathbf{S}$ can include forces or gradients of an additional stress tensor $\Pi$,
$\mathbf{S} = \mathbf{f} + \nabla . \mathbf{\Pi} + \cdots$.... |
I have a sparse matrix coming from the discretization of a 3D elliptic PDE. The matrix is banded with seven non-zeros diagonals. The sparsity pattern of the matrix looks like this (the actual matrix is much larger):
It is worth noting that it is positive definite, but not symmetric.
I would like to compute the eigenva... |
I would like to numerically solve the following system of 2 coupled partial differential equations for the unknown functions $\psi_X(x,y,t)$ and $\psi_C(x,y,t)$:
$\partial_t \psi_X = -i\psi_C - i\vert\psi_X\vert^2 \psi_X$
$\partial_t \psi_C = -i F(x,y)\exp{[i(k^p_x x+k^p_y y - \omega_p t)]} -i\psi_X -i [\delta - \Delta... |
I am using Galerkin's method to set up some pde solver for my problems(1D/2D) at hand.
Some abrupt material interfaces do exist, so far, what I did regarding this is simply:
1) no element across the interface, i.e. nodes exactly lie at the interfaces.
2) no special B.C. imposed on interfaces, just natural B.C.(as it is... |
At the mean-field level, the dynamics of a polariton condensate can be described by a type of nonlinear Schrodinger equation (Gross-Pitaevskii-type), for a classical (complex-number) wavefunction $\psi$. Its form in momentum space reads (in 2+1 dimensions):
\begin{multline}
i \frac{d}{dt}\psi(k) =\left[\epsilon(k)
-i\... |
The classical streaming operator used in FHP lattice gas automata is this:
$$n_i(r - c_i, t + 1) = n_i(r, t)$$
However if you think in terms of the streaming itself, it should be something like $$n_j(r + c_i, t + 1) = n_i(r, t)\qquad\text{where}\,j=(i+3)\,mod\,6$$
This image illustrates my point :
Basically what I am... |
I am comparing the performance several finite difference methods of solving an initial-boundary value problem. There are several dimensions to this comparison:
Number of cells
Number of timesteps
Solution Method:
Explicit (one sweep on a single thread, no iterations)
Alternating Direction Explicit (two sweeps on sepa... |
I was reading Twenty Questions for Donald Knuth and was intrigued by Knuth's argument in question 17 for why he suspects P=NP. In the discussion he asks why you couldn't have an algorithm bounded by a finite but incredibly large polynomial order.
I am not a computer scientist, but I don't know of any really high-order ... |
I have an infinite subset $S$ of $\mathbb{N}^k$ which I know (or at least strongly suspect) is a finite union of regions, each of which is defined by finitely many linear equalities and inequalities (with integer coefficients). I would like to find an explicit description of $S$, i.e., sets of (in)equalities that defin... |
I am doing an undergraduate research to model ocean waves in shallow waters in real time. I am trying to base my research on Navier-Stokes equations since they produce the most accurate mathematical results. As a start I am supposed to study an existing implementation of the 3D Navier-Stokes equations.
Where can I fin... |
Is there a complexity degree that is bigger than $O(n)$ and smaller than $O(n \log n)$?
|
I am currently working on a 2D finite element code with a mesh that contains duplicate nodes at certain interfaces where jumps occur. In order to set up the appropriate linear systems, I have to take the mesh connectivity information and locations of mesh nodes, and manipulate them to determine which elements are adjac... |
I'm writing code that uses a lot of graph operations; many higher-level algorithms iterate over all the graph edges and do some processing on them. There's an iterator method that returns a batch of edges, like so:
G.get_edges(edges,iterator,num_edges);
for (k = 0; k < num_edges; k++) {
i = edges[k,0];
j = edge... |
Which numerical methods would be optimal to find an extremum of a function with an almost flat "valley" (but a single minimum in the middle of the valley)? In this context optimal means the least number of function evaluations.
For simplicity's sake, assume that it's a two-dimensional problem.
Also, of importance may b... |
A PQR file of a protein describes the positions in $x$, $y$ and $z$ and the charges of every atom in it. If you have them, you can construct the charge density $\rho(x)$ of the protein, then use it to find the potential $\phi(x)$. The Boltzmann distribution is useful when you can't or don't know how to build the $\rho(... |
I am trying to accurately calculate $\vec{j} \cdot \vec{E}$ for an electron energy equation on a finite-volume mesh. $\vec{j}$ is the electron current density, and $\vec{E}$ is the electric field. On the vertex centered mesh, I know $\phi$ at the center of each cell (where $\vec{E} = \nabla \phi$) and I also have a f... |
I want to minimize two different functions simultaneously who have the same inputs. The functions are both linear and non-exponential.
$$F_1(X_1, X_2) = a_1X_1 + a_2X_2$$
$$F_2(X_1, X_2) = b_1X_1 + b_2X_2$$
I would prefer to do this in R.
Thanks again
|
Would you know what is the condition for stability for the advection-diffusion equation where we treat the diffusion part using Crank-Nicholson and the advection part using FCTS (forward in time centered in space)? I am applying von Neumann analysis but I am not sure about the final condition for stability. Do you know... |
If one wants to solve a problem in physics, one often has to deal with very small numbers because of the units, e.g. the energy range of interest of semiconductors lies in the region $eV \approx 10^{-19}J$. For a given problem one could derive equations that are using scaled properties, e.g. instead of SI units using a... |
LAPACK has following 4 routines for calculating eigenvalues of a real symmetric matrix; namely DSYEV, DSYEVD, DSYEVX and DSYEVR (DSYEVR being the recommended one).
If I were to calculate both eigenvalues and all the eigenvectors, how many floating point operations would each of the routine take. Are all these routines... |
I am using cvx to solve linear programs with constraints of the form $Ax=b,x\ge0$. However the matrix $A$ is rank deficient and cvx returns a warning and finally displays status as 'Infeasible'. Rank deficient systems can have a solution and my guess is that my system does have a solution. Is there a way to make cvx so... |
What type equation Navier-Stokes is: Elliptic, parabolic, or hyperbolic? Should it give always the same answer no matter what is the initial condition? How these statements could be proved?
|
What are the best FGMRES implementations in various languages/frameworks? In particular, are there any good quality Matlab implementations?
I am referring to the variation of GMRES where a changing or nonlinear preconditioner is allowed by keeping track of the preconditioned vectors as well, as discussed in Saad's pape... |
I wish to model a fishing rod (or a rope) by joining short segments. (The segments may have equal (short) length but each segment should be assigned its own individual mass.) One segment will influence the next by the torque between the segments. For the time being the joints can be regarded as plate springs (torque pr... |
I am trying to solve the 2D Poisson equation numerically:
$ \frac{\partial ^2 \phi}{\partial x^2} + \frac{\partial ^2 \phi}{\partial y^2} = 1 $
with the Dirichlet boundary condition $\phi = 0$.
I used the finite element and finite difference approach on a regular grid of 6 × 6 points. The model size is 1 × 1 m. The res... |
I want to do a 3-dimensional FFT on this function $\frac{\cos (x) \cos (y) \cos (z)-\sin (x) \sin (y) \sin (z)}{\left((1.0001+\sin (y)+\cos (z))^2+(0.0001+\cos (x)+\sin (z))^2+(0.0001+\sin (x)+\cos (y))^2\right)^{3/2}}$ for it looks intractable via analytical Fourier expansion. Let's denote the number of numerical samp... |
I want to model a fishing rod and received a suggestion. I therefore try to follow the mathematics (Lagrange) of the double pendulum. I do not understand how to proceed in the step that Wikipedia calls "Substituting the coordinates above and rearranging the equation gives ...".
What I get is totally wrong.
Thanks
17/6 ... |
If I want to create a high quality figure to illustrate a scientific concept or experiment I usually use tikz together with pgfplots or pstricks. However this is for static content. Both tools are extremely powerfull for it's purpose and give high quality results. Furhtermore there is a large database of examples, very... |
I am a new learner of Unix, python and Gurobi for MIP calculation. I basically finish reading the quick start guide in Gurobi website but still feel that I need more training to use this combination to automatically write MIP input files. Do anyone have some suggestion on any available trainings (especially in using Un... |
I am trying to fit data to a polynomial using Python - Numpy. The points, with lines sketched above them are as in the picture.
I am trying to fit those points to a polynomial of 4. or 5. degree. However, all I can get is nothing more than a line. The coefficients of other than linear terms are too small. I tried to do... |
I'm writing a small library for sparse matrix computations as a way to teach myself to make the best use of object-oriented programming. I've worked really hard on having a nice object model, where the parts (sparse matrices and the graphs which describe their connectivity structure) are very loosely coupled. In my own... |
I'm working on an image processing project and have written some of my algorithms in OpenCL. At the moment I'm using Cloo.
I'm at the stage now where I want to optimise my program, as it currently runs too slowly.
I'm also thinking it might be worth investigating some other implementations of OpenCL.
I have tried to... |
I need to create a program that can simulate the optical system of the human eye. The input will be any image, the output would be the image that is projected onto the retina. I need it to be as accurate as possible. I am a little lost at the moment, I have been reading up on optics, and I get that, but on the computat... |
I want to solve the biharmonic equation numerically, that is:
$$\Delta^2 u=f~~in~~\Omega$$
$$u=g_1~~on ~~\partial \Omega$$
$$\frac {\partial u}{\partial n}=g_2~~on ~~\partial \Omega$$
Using Green's formula, we have that if $u$ is smooth enough
$$\int_{\partial \Omega}\frac {\partial \Delta u}{\partial n}v-\int_{\Omega... |
I have a Voronoi diagram that I need to calculate the area of each cell.
This Voronoi diagram is produced by Voronoi command in MATLAB.
To find the vertices of the Voronoi cell I use Voronoin command in MATLAB, but the problem is that the first row of the v is (inf, inf), so the area of all voronoi cells near the bound... |
I'm looking for some general insight on preconditioning. In particular, relevant references/resources/comments would be greatly appreciated. Note, I have been through some of the literature, but am having trouble finding a reference for a problem similar to the one I am solving.
The system I'm solving takes the form
$Q... |
I am dealing with a system of non-linear equations:
$$
f(\boldsymbol{x}) = \boldsymbol{y}, \;\;\; \boldsymbol{x}, \boldsymbol{y} \in \mathbb{R}^d.
$$
And I know that the Jacobian $J(\boldsymbol{x})$ is positive definite:
$$
\boldsymbol{z}^T J(\boldsymbol{x}) \boldsymbol{z} \geq \epsilon > 0, \;\;\;\;\;\;\forall \; \bo... |
Background:
I am currently running a large amount parameter variation experiments.
They are being run in Python 2.6+, using numpy.
These experiments are going to take about 2 weeks to run.
Roughly I am varying 3 parameters (independent variables) over a range of values.
I am fixing 6 further independent variables (for ... |
I would like to know if there is a commercialization of simulations? Or is it only in academic usage?
|
Good day.
I am trying to implement the EGO optimization algorithm. The algorithm itself is rather long to describe here in full. It is presented here, with another example of usage here.
But before I implement the algorithm, I have decided to test the DACE model on a simple 1-d function.
I am receiving strange results... |
I am solving a system of two coupled PDE's in two spatial dimensions and in time computationally. Since the function evaluations are expensive, I would like to use a multistep method (initialised using Runge-Kutta 4-5).
The Adams-Bashforth method using five previous function evaluations has a global error of $O(h^5)$ (... |
What is a good direct method to compute the spectral decomposition / Schur decomposition / singular decomposition of a symmetric matrix?
"Direct" means as in LU decomposition, Cholesky decomposition, or Golub's SVD algorithm, in contrast to iterative methods.
You can, of course, apply the aforementioned algorithm of Go... |
Is it possible to construct a constrained tetrahedral mesh of a domain using Tetgen or similar software? What I mean by constrained is that there are some nodes or edges that are not free but are predefined by the user.
|
When testing a numerical method for a PDE, I know that it's often useful to compare it to a known analytical solution. If none is available, one can always 'manufacture' a solution, substitute it into the PDE and obtain the source term, boundary conditions, and initial conditions needed for the problem.
But what gui... |
My program needs to perform pivoted QR decomposition on tall (e.g. 1e9 by 100) matrices. I run into the bottleneck that the major computational time of my program is spent on doing serial pivoted-QR decomposition, while the node has 20 threads. For some reason I am confined to one node to perform the decomposition, so ... |
I'm trying to solve the Poisson equation with pure Neumann boundary conditions,
$$
\nabla^2\phi = \rho \quad in \quad \Omega\\
\mathbf{\nabla}\phi \cdot \mathbf{n} = 0 \quad on \quad \partial \Omega
$$
using a Fourier transform method I found in Numerical Recipes. The method uses a discrete cosine transform, if you don... |
I know there are similar questions asked on other StackExchange sites, but I think development in Computational Science may work differently because of the computing environments that are common. I often can not run reasonable tests on my local machine due to time or memory constraints (or maybe I'm developing for inte... |
I have to write an algorithm/code to reconstruct an unknown 3D scalar potential $ V(\mathbf{r})$ up to a specified threshold $E_c$ (assume that the potential is monotonic)
The problem has the following rules:
You start from the minimum of the potential and define a grid
you can only do "small" steps, i.e. you can only... |
I am using Matlab to solve Ax=b and my A is very large, sparse, binary and also rectangular. I saw the Matlab backlash \ operator help and it states that if A is rectangular then it will use the QR solver to solve it. I was wondering if this is the right approach, because QR is not efficient for large sparse matrices. ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.