instruction stringlengths 43 28.1k |
|---|
My question is probably very simple and deals with separation of degrees of freedom in a Monte Carlo Brownian dynamics simulation.
Dealing with a particle in an external potential, I want to simulate a Brownian motion in three spatial dimensions. Is it possible to evaluate the individual degrees of freedom separately i... |
I am trying to implement ellipsoid-ellipsoid collision in my C++ code.
Briefly this task can described as next: Let's assume that we have two arbitrarily oriented ellipses in the in space and this ellipses are intersected. This ellipses initially located in the center of coordinate system. We need to find how far we n... |
How can one determine the interfacial tension at a solid-liquid interface using molecular dynamics? What are some good articles on this topic?
|
I have to find a solution to a problem and I don't know where to start.
Lets imagine I have a list of n containers and m processes. Each process resides already within a container and have 4 attributes, ex: cpu, memory, IO and network utilization.
The sum of each attribute type of all processes within a host cannot exc... |
Restricted to one dimensional problem, is it possible to dynamically adapt the finite element method (FEM) discretisation based on the local value of the Péclet number ($P_e$) for advection-diffusion problems?
For advection-diffusion problems central discretisation becomes unstable when $P_e>2$, that is, when the prob... |
I am trying to solve the following 1D inhomogeneous wave equation.
Forgive me if I a miss any rigorous mathematical concept.
$$ \frac{\partial^2 u}{\partial x^2} - \frac{1}{c^2}\frac{\partial^2 u}{\partial t^2} = \delta(x)f(t) $$
where $c$ is the wave velocity, $f(t)$ any force function and $\delta (x)$ is the dirac d... |
I have a function that is not only infinitely differentiable, but it is also very cheap to calculate any of those derivatives. It looks like:
$f(\boldsymbol{C}, \boldsymbol{x})=\sum_{i} C_{i} \prod_{j} a_{j}^{x_{i,j}} -\sum_{i}C_{i} $
Where both i run over the same length, and where $a_{j}$ are constants. This functio... |
I modeled the heat equation,
$$
u_t = au_{xx}
$$
using the common 2nd-order Crank-Nicolson scheme,
$$
\frac{u^{n+1}_i-u^{n}_i}{dt} = \frac{a}{2\,dx}\left(u_{i-1}^{n+1}+u_{i+1}^{n+1}-2u_i^{n+1} + u_{i-1}^n+u_{i+1}^n-2u_i^n\right)
$$
and the standard 4th-order Crank-Nicolson scheme,
$$
\frac{u^{n+1}_i-u^{n}_i}{dt} = \fra... |
For example the C++ sparse matrix libraries I used -- Eigen and SuiteSparse, they seem not to have any SVD funcitionality for sparse matrix. So just curious, is SVD more difficult than QR/LU for sparse matrix?
|
I was looking at the documentation for DMDAVecGetArray and was surprised that it could create a plain ordinary C array whose indices somehow ranged from, say, istart to istart + size - 1, rather than from 0 to size - 1, or a multidimensional array (also an ordinary C array) whose indices ranged from istart to istart + ... |
I would like to map each point in $[0,1]$ to $[0,1]^n$ with a Hilbert curve, where $n=10,000$. That is
$$
f: [0,1] \to [0,1]^n,
$$
is the $n$-dimensional Hilbert curve.
I found the library of Cortesi,
or the code given in Sergeyev, Strongin and Lera book.
Cortesi library used a system of index, so I don't have a map $f... |
I'm trying to carry out the following integral numerically
$$\int_{r_\mathrm{in}}^{r_\mathrm{out}} \Sigma\left(r'\right) \frac{r'}{r} \left( \frac{1}{r-r'}\, E(L) + \frac{1}{r+r'}\, K(L) \right) \mathrm{d}r',$$
where
$$L = \frac{4 r r'}{(r+r')^2},$$
and $K$ and $E$ are the complete elliptical integrals of the first and... |
How can I generate realizations of random complex variable $x(t)$ with a given autocorrelation function $C(s)$, defined by
$$C(s) = \langle x(s) x(0) \rangle$$
and obeying the condition $C(-s) = C^*(s)$?
Any link related to similar random variable generation would be great.
|
I'm looking for a piece of software for performing molecular dynamics simulations with the following specifications:
required: well published (as in there are papers citing it in one or more reasonably respectable journals)
required: incorporates some degree of non-determinism in how it runs (ex. each run from the sam... |
Consider the strictly convex unconstrained optimization problem $\mathcal{O} := \min_{x \in \mathbb{R}^n} f(x).$ Let $x_\text{opt}$ denote its unique minima and $x_0$ be a given initial approximation to $x_\text{opt}.$We will call a vector $x$ an $\epsilon-$ close solution of $\mathcal{O}$ if
\begin{equation}
\frac{||... |
What do you actually type into the *ORIENTATION entry in an input file?
Is it a rotation matrix w.r.t. the Global axes?
|
I am trying to solve a "Navier-Stokes"-type problem where the viscosity is negative. Of course this renders the equation unstable and thus I add a fourth order term, so the entire equation becomes:
$$
\frac{dv}{dt} + (v\cdot\nabla)v = - \nabla p+\nu_1 \nabla^2 v - \nu_2 \nabla^4 v
$$
with $\nu_1<0, \nu_2>0$.
Now the fo... |
I am currently fitting above mentioned functions to my data and I can observe, that both lognormal and Weibull are better fits than powerlaw. In literature, it is often suggested, that it is hard to distinguish these functions, but I can in my data.
I do not completely understand the differences between them though. Wh... |
I've inherited a finite volume code that does a second-order discretization of flux terms for a set of mixed parabolic-elliptic equations with discontinuous diffusion coefficients. The impression I get is that Discontinuous Galerkin (DG) methods are preferable for this sort of problem; however, since I have some time c... |
Say I'd like to implement a numerical model of a physical system (e.g. a simple wave equation).
Of course the energy conservation law is valid for this system.
Is there a way to validate that my implementation of the wave equation is implemented in accordance to the law of energy conservation in general?
I do not want ... |
In many areas of application, one needs to solve a nonlinear system of equations
$$
F(x) = 0.
$$
Sometimes, the formulation
$$
\|F(x)\|^2 \to\min
$$
is used. Clearly, every solution $\hat{x}$ of $F(x)=0$ is also a solution of the second problem; the converse is also true (if a solution exists).
The question is if one c... |
As far as I understand, Sumatra does some sort of versioning of simulation scripts and output files. If I start to use Sumatra inside a git working directory, can Sumatra end up interfering with git or vice versa?
|
I want to use the quad function to do the integration today. I wrote a function file:
function z=pdf_y1(x)
z=100;
And then, in the command line, I type:
quad('pdf_y1',0,0.5)
The output is:
??? Error using ==> quad at 79
The integrand function must return an output vector of the same length as the input vect... |
I am trying to solve 1D viscous Burger's equation numerically and I cannot apply von Neumann analysis because the equation is non-linear.
How do I predict the stability criteria for my system?
I also need to predict the criteria when its inviscid(which basically makes it non-linear advection equation).
The FD schemes t... |
Below is a totally made up example.
So let's say on the left we have a weird black-white image or, in other words, a matrix of zeros and ones. We then apply a specific algorithm to the given matrix. The result is shown on the right - it is still represented by a pretty weird image but this time a circle can be visuall... |
I have a question concerning coding boundary conditions for solid mechanics (linear elasticity). In the special case I have to use finite differences (3D).
I am very new to this topic, so perhaps some of the following questions may be very basic.
To lead to my specific problem, first of all I want to show what I alread... |
CS people:
The title is the question, as I will explain. As everyone reading this probably knows, if $A$ is a square matrix of real or complex numbers, then $e^A$, or $\exp(A)$, is the matrix of the same dimensions as $A$ defined by the obvious power series (the only thing that might not be obvious is that $A^0 =I$, b... |
I have the following system of equations which I'm trying to solve using Matlab's pdepe solver.
The 1-D spherical heat diffusion equation with heat generation (source term):
$$
\rho \, C_p\frac{\partial T}{\partial t} =
\frac{1}{r^2} \frac{\partial}{\partial r} \left(r^2 \, k \frac{\partial T}{\partial r} \right) + \D... |
I'm looking for a library to exploit parallelism within a single heterogeneous computing node (possibly using Accelerators like Xeon Phi or nVidia's GPGPU's) in a C++ FV/DG code using hierarchical octree-like grids. It should
support multiple back-ends (e.g. OpenCL, CUDA, OpenMP, OpenACC, ...)
hopefully be generic eno... |
I have a question regarding the FMG (Full Multi Grid) performance while computing Poisson's equation using Higher Order Compact discretization. I am using a sixth order compact scheme to discretize the Poisson's equation and use a Gauss Seidel method for smoothing/relaxing. And I employ Neumann boundary conditions on a... |
I'm doing research for academic credential on the use of metaheuristic optimisation of building envelopes/enclosures, focusing on the aspect of its thermal performance.
The subject was handled with heavy emphasis on the integration of algorithm into the architectural design process by evaluating building thermal perfor... |
I am trying to count the number of cache misses, total cycles, etc. per iteration of a for loop inside MatMult_SeqSBAIJ_2() . I've configured PETSc to use PAPI and I am using the PAPI API like shown in the skeletal code below. PAPI always fails (!PAPI_OK) while running ./main . Is there a setting in PAPI or PETSc that ... |
I want to compute $a = \tan(f \theta)$ for $f\in [0,1]$, given $g = \tan\theta$. Obviously, I can compute $a = \tan(f\tan^{-1}g)$, but I'm wondering if there's a more efficient way that avoids having to evaluate two transcendental functions.
I happen to also want the quantity $b = \tan[(1-f)\theta]$, and I believe the ... |
I have a bunch of polygons and a coarse uniform grid. I want to implement two different range queries, for a rectangle aligned with the uniform grid:
Does the rectangle intersect with any polygon at all?
Give me all the polygons which intersect the rectangle.
A simple data-structure would be to have for each cell a l... |
Given an input parameters for the MARTINI force field such as:
;;;;;; HYDRATED CHLORIDE ION
[moleculetype]
; molname nrexcl
CL- 1
[atoms]
;id type resnr residu atom cgnr charge
1 Qa 1 ION CL- 1 -1.0
I wish to know which parameters go into which term in the equation.
I'm afte... |
Edit:
I am trying to solve
$$\frac{\partial u}{\partial t}+u\frac{\partial u}{\partial x}=\nu\frac{\partial^{2}u}{\partial x^{2}}\\
u(0,t)=0\nonumber \\
u(1,t)=0\nonumber \\
u(x,0)=\sin(\pi x)\\
0<x<1,\; t>0$$
I take $u_n(x,t)$ as an approximation to $u(x,t)$
$$u_{n}(x,t)=\sum_{n=-4}^{2^j-1}\phi_{n}(x)c_{n}(t),\quad j\... |
When you have fine-scale features (e.g. boundary layers) in the solution, its FEM approximation on coarse meshes converge at strange apparent rates. Looking at Cea's lemma, is this behaviour because of:
the best approximation error behaving strangely?
or the constant changing with h?
or should I actually look at Stran... |
I want to use lanczos method to calculate the few lowest eigenvalue and eigen-vector of a large sparse symmetric matrix(~50k x ~50k). In http://www.netlib.org/lanczos/index.html I found the codes leval and levec are suitable for my situation. However, the instruction is too complicated to find how to use it and I don't... |
Given a one-dimensional function (let's say infinitely differentiable) and a prescribed accuracy of an L2 (or H1) norm, what is the optimal mesh and (in general arbitrary) polynomial orders on each element so that the approximation has the least degrees of freedom? (For example if I have three elements, of orders $p_1=... |
Could anybody please help with voro++ cause i am new to this software?My problem is how can i find the coordination number of an atom ,cause i checked it for a bcc lattice and it gave me 24 for all atoms which is correct cause the wigner-seitz polyhedron of bcc is a truncated octahedron with indeed 24 vertices. But wh... |
I have a large, yet very sparse, matrix that I'd like to diagonalize. Both my own Lanczos implementation and the ARPACK that's built in with scipy fail to converge properly, though. I know that my Lanczos code itself is correct, and the ARPACK implementation should be correct too.
One thing that I note about my matrix... |
I have a need to get a variable value from another process rank of which I know. This happens in context of a parallel solver of a "A x = b" equation, for which process with rank 0 knows matrix A, and the other processes put some values (i,j) from this matrix into the matrix of a parallel solver data type (Petsc's Mat)... |
I have the following Max Min optimization problem that appears to be non convex.
link
where t p c are my variables and all others are constants. I took the eigen values of the hermetian part of the hessian matrix of the 1st constraint(keeping all the constants as 1) and it comes out to be negative(hessian is indefinite... |
Given $a\in\mathbb{R}^{mn\times n}$, find a $C\in\mathbb{R}^{n}$, $x\in\mathbb{R}^{m\times n}$ such that
$$
0 = f_{k}(\boldsymbol{C}, \boldsymbol{x}):=\sum_{i=1}^{m} C_{i} \left(\prod_{j=1}^{n} a_{kj}^{x_{i,j}} - 1\right)
$$
for all $k\in\{1,\dots,mn\}$.
(The rows of $a_{kj}$ are vectors of solutions to a system of dif... |
I'm following Paul Constantine's Primer on Stochastic Galerkin Method, Section 3.1 (2D Poisson Example). In this matlab code, the example attempts to solve the PDE
$$\alpha(w)(u_{xx}+u_{yy})=1 \text{ in } \Omega=[-1,1]^2$$
$$u=0 \text{ on } \partial\Omega$$
with $\alpha(w)$ a uniformly randomly distributed variable wh... |
I'm looking at doing a finite-element simulation of air flow essentially for the purposes of approximating the response to an external audio impulse of a smallish (~10-30 cm scale), stationary 3D-printed structure containing a microphone. I'm mostly interested in the human-audible spectrum of 20-20000 Hz. The purpose i... |
I have the following optimization problem and I am trying to check for its convexity.
link
As per the definition of convexity, "a continuous twice differentiable function is convex ON a convex set, iff the hessian is positive semi definite on the interior of the convex set."
The feasible region where I am trying to che... |
For example I have 2 matrices that can't fit in RAM.
I need algorithm or library which can handle this.Preferably Matlab or Python.
I think it can be some block matrix multiplication? Also I think there is an analogy hard drive<->ram, gpu ram<->cpu ram, cpu ram<->cpu cache, so we can take some cpu cache optimized techn... |
I need to find the zero of a function $f(\lambda)$ which is of the form $\sum \frac{c_i^2}{(1+\lambda d_i)^2} -1 $. I tried using Newton's method, and it works sometimes, but it is highly dependent on the initial choice, and the chances of divergence are very high since the function is "almost" flat.
What would be the ... |
I would like to simulate a capacitor in 2d with freefem++. This is the code I used:
int C0=0;
int C1=1;
int C2=2;
border C01(t=0,4.25){x=t; y=0; label=C0;}
border C02(t=0,2.25){x=4.25; y=t;label=C0;}
border C03(t=4.25,0){x=t; y=2.25; label=C0;}
border C04(t=2.25,0){x=0; y=t; label=C0;}
border C11(t=0.25,0){x=1.75+t... |
I have a function $f$ I'd like to determine numerically and I have a bunch of $(x, y)$ pairs which approximate the function in the following sense: all of the points satisfy $f(x) \leq y$, most of the points have $f(x) = y$ (at least to the accuracy I need), a few of the points have $y$ significantly bigger than $f(x)$... |
What open source tool can be recommended for solving 2D instationary Navier Stokes equations (in simple geometries, but with high Reynolds numbers)? Most packages I found, I'm not very lucky with. OpenFOAM seems to be very powerful, but I think it would take some time to learn using it. FEniCS has a Navier Stokes demo,... |
I am trying to reformulate the following problem to be solved efficiently (by MOSEK)
$$
\min_{X} \text{Tr}(CX)+\lambda\sum_{i,j}|x_{i,j}| \\
\text{s.t.} \quad ||X||_F\le1 \quad \text{and} \quad X\ge 0 \text{,}
$$
where Tr() is the trace, $C \in \mathcal{S}^{n\times n}$ a real symmetric matrix, $X \in \mathcal{S}_{+}^{n... |
I'm currently working on my MS in CS and have developed an interest in astrophysics. Luckily one of my professors is a astrophysicist and is currently doing research through computational physics and he agreed to help me get started.
I'm currently reading through Tao Pang's "An Introduction to Computational Physics" (T... |
I'm writing prototypes for solving the Liouville Equations with Mathematica and C++. Perhaps the question about this may not be suited for this forum in a strict way, but it suits the people here because they're researchers who work with this kind of problems, I presume, and hope.
So I'm looking for a model to store an... |
I've seen that in Newton's method for interpolating polynomials, the coefficients can be found algorithmically using (in Python-ish):
a = Y_DataPoints.copy()
m = length(X_DataPoints)
for k in range(1,m):
a[k: m] = (a[k:m] - a[k-1]) / (X_Data[k:m] - X_Data[k-1])
But I don't really understand the model is subtr... |
I am currently testing some new (embedded) processors for their double-precision numeric performance.
The FPU capabilities vary wildly between platforms; For example, the ARM Cortex-A8 has a double precision FPU, takes 9 cycles per operation. The Cortex-A9 also takes 9 cycles, but is able to be fully pipelined, wherea... |
I have a set of points P1(x1,y1), P2(x2,y2), P3(x3,y3), P4(x4,y4), P5(x5,y5) in the Cartesian plane. I am trying to find the closest point to P1 based on the orientation and Euclidean distance. What I mean is the following:
Suppose that P3 is the closet to P1 and P5 is the second closest, but the angle between P1 and P... |
Let $D = \left\{0, t_1, t_2, \ldots, t_n\right\} \times [0,1]$
and
$$
f: D\to [0,1],
$$ be a function of time and a one-dimensional space.
There is no analytical formula for $f$, but $f(t_i, \cdot)$ is Lipschitz.
The function $f$ can be computed with arbitrary precision
at a finite number of points $\{x_{t_i, j}\}_{j... |
I'm trying to apply the stochastic galerkin method to partial differential equation with multiple uniform random coefficients. I'm puzzled as to how to extend the corresponding orthogonal (legendre) polynomial basis into higher dimensions. Is there a systematic method for doing this?
Is there is a paper/book that dis... |
The Legendre polynomials satisfy
$$\int_{-1}^{1}\phi_j(x)\phi_k(x)dx = \begin{cases}
0 &j\neq k\\\\
\dfrac{2}{2j+1} &j=k
\end{cases}$$
Suppose that the best fit problem is given on the interval $[a,b]$. Show that with the transformation $t=\dfrac{1}{2}[(b-a)x+(a+b)]$ and a slight change of notation, we have
$$\int_{a}^... |
I was not quite sure what the right SE for this was, so I posted this also here on DSP. Please tell me which one to remove :)
Problem statement
I have a few hundred unrelated time series, say $P_i(t)$, with $i=1,2,...,N$. The sample times are all unequally spaced.
It is known that during certain (unknown) intervals, th... |
Let's start off by NUMERICALLY solving a 1-D steady-state heat transport problem using IMPLICIT FDM.
$DT_{xx}=0; ~T(x=0)=T_{BL}; ~T(x=l)=T_{BR}$
where $D$ is diffusion; $T$ is temperature; subscript $ _{x}$ is the gradient with respective to spatial coordinate $x$.
To implicitly solving the equation, we discretise as ... |
For the function $f(x)=x$, how to compute the wavelet approximation using Haar basis?
I'm new to wavelet, I'm looking for a package which will do something like this
from mpmath import *
mp.dps = 15; mp.pretty = True
nb_coeff = 3
interval = [0, 10]
fct = lambda x : x
fourier_coef = fourier(fct, interval, nb_coeff)
four... |
Using the recursion formula for Chebyshev polynomials, show that $T_n(x)$ can be written as
$$T_n(x)=2^{n-1}(x-x_1)(x-x_2)...(x-x_n)$$
where $x_i$ are the $n$ roots of $T_n$
The recurrence relation: $T_0(x)=1$,$T_1(x)=x$, and $T_{n+1}(x)=2xT_n(x)-T_{n-1}(x)$
I have an intuition that I need to use induction,but what i... |
Many of the problems in Image processing are embaressingly parallel. But I want to know is it worth solving Image processing using parallel computing? Are there real practical problems in image processing that can benefit form parallel computing? If so what are those? I am not taking about mliticore CPUs, instead I am ... |
Or can they just be used as an interpolation points and use some other "transported property" which are just evolved and propagated from boundary conditions like for eg. heat conduction through a solid metal bar. It seems to be possible, but isn't clearly elaborated. The force computation step is always used for fluid ... |
I'm working on a heat diffusion problem,
$$
\frac{\partial T}{\partial t}=\vec{\nabla}\cdot\left(\kappa T^{5/2}\,\vec{\nabla}T\right)
$$
I know that, after discretization, the time step for the 1D case becomes,
$$
dt= \frac{\rho\,dx^2}{\kappa T_{max}^{5/2}}
$$
Does this imply/mean that the maximum wave speed is
$$
\fra... |
If you have a large multivariable ODE system, and certain processes occur at a much shorter time scale, how can you implement a solver that uses smaller time steps for state variables involved in fast processes, and large time steps for state variables involved in slow processes, while ensuring the result is still math... |
generally, it is natural to use procedural programming approach (PP) to solve a partial differential equation by finite difference method (FDM). That is, one (1) defines matrices to store the properties at nodes and fluxes in between the nodes, (2) assembles linear systems based on discretization to the controlling equ... |
Issue of data dependency with stencil code...
How to parallelise this using openmp? I looked at the openmp manual, I figured out how to use DO ORDERED to get the same result as the serial version, but when run with openmp, it is x200 or so times slower.
This is example code from the internet doing the update from neigh... |
What is exactly the definition of "Straddle"?
Can you please explain what do they mean exactly or a sketch? A segment P1P2 Straddles a line if point P1 lies on the one side of the line and point P2 lies on the other side. A boundary case of P1 or P2 lies directly on the line. (Taken from Introduction to algorithms 3rd)... |
I have a system of 256 differential equations that I want to solve numerically. The system represents the Liouville equation, which is a first order, linear differential equation with complex numbers.
What's the best method to solve this equation in parallel? Please advise.
I'm a physicist, so I'm familiar with the bas... |
How can we define the precision we require in a numerical differential equation solver? What is it that I have to optimize to know? And how do I know that I'm at a sufficient time-step value?
For example, in those programs like Mathematica and Matlab, how does the differential equations solver know the suitable step si... |
In general, is there a partial trace algorithm (ideally for systems of any size) that can be coded using basic matrix operations found in software like Mathematica or Maple? All of the methods I'm aware of seem to be suited for humans, and I am struggling to think of a way of implementing them in any programming langua... |
This question interests me for a while.
At one extreme, I found papers, and some thesis that were outcome of change of a single parameter in a CFD code, like in the case of "Atmospheric boundary layer" turbulence model, that was produced by a single change in $c_\mu$ constant of the $k-\epsilon$ model.
On the other end... |
I'm stuck on this PDE:
$$\rho \cdot C \cdot \dfrac{\partial T}{\partial \tau} + u \cdot \rho \cdot C \cdot \dfrac{\partial T}{\partial r} = \dfrac{\lambda}{r^{2}} \cdot \dfrac{\partial}{\partial r}\left(r^{2} \cdot \dfrac{\partial T}{\partial r}\right) + K - \dfrac{\rho \cdot C \cdot T}{V} \cdot \dfrac{\partial V}{\par... |
I have hjb equation where $V=V(x,t)$ and $u=u(x,t)$
$V_t + \sup(u) [A(x,u)V_x + B(x,u)V_{xx}]=0$ for $x$ in $[0,1]$ and $t$ in $[0,1]$
I have been able to successfuly resolve it numerically having theese boundary conditions:
$V(0,t)=0$ all t in [0,1]
$V(1,t)=1$ all t in [0,1]
$V(x,1)=x$ all x in [0,1]
I used finite dif... |
I am trying to solve a set of couple ODEs:
$V_l(r) - r W_l(r) - f1(r) W_l' = 0\tag 1$
$r^2 h''_l(r) + f2 r h_l'(r) + f3 h_l(r) - f4 U_l(r) = 0 \tag 2$
$\kappa (U_l + h_l) + V_{l+1} + W_{l+1} = 0\tag 3$
$\kappa (U_{l-2} + h_{l-2}) + f5V_l' + f6W_l' + f7 U'_{l-1} +f8U'_{l-2} = 0 \tag 4$
for $V_l,W_l,h_l,U_l$ and $\kap... |
I have implemented Levinson algorithm for toeplitz matrix by book: Blahut "Fast algorithms for digital signal processing". Book said - modification of this algorithm for Hermitian matrices is simple job. But I could not do it. How I can modify this algorithm for Hermitian Toeplitz matrix?
|
In general, is there a partial trace algorithm (ideally for systems of any size) that can be coded using basic matrix operations found in software like Mathematica or Maple? All of the methods I'm aware of seem to be suited for humans, and I am struggling to think of a way of implementing them in any programming langua... |
lets say I have a 5 dimensional grid where each dimension has 10 points. There are 100000 combinations. Let's say I want a subset of 10000, is there a deterministic algorithm that will choose a set of points that "covers" the region the best and converges to the limiting case of choosing every point?
If I had a weighti... |
Does Paraview or Visit have any filters to draw a smooth surface for a set of points?
|
The netlib BLAS implementation is an excellent reference, being mostly un-optimized and well documented (e.g. zgemm). However, it is in Fortran 77, making it somewhat inaccessible to those with a more modern programming education. Is there a reference-level implementation of BLAS, like netlib, in C/C++?
|
This is a peice of code written in Matlab:
while flag==1
flag = 0;
disp('end of loop');
end
Surprisingly, this does not display the string. If I remove the disp statement a figure1 window appears. Can anyone explain why?
|
I want to do a simulation of sound waves including wave propagation, absorption, and reflection in 3D space.
I did some research and I found this question in stackoverflow but it talks about electromagnetic waves not sound waves.
I know I can reimplement the FDTD method for sound waves but how about the sources and doe... |
Introduction:
I have a vertical segment S That i want to move across a plane (Left --> Right), and find intersections with horizontal lines.
Problem :
The problem which i am having is the following: if the vertical segment intersects with multiple horizontal lines, as a result i'll get multiple intersections as you c... |
What is a simple algorithm for computing the SVD of $2 \times 2$ matrices?
Ideally, I'd like a numerically robust algorithm, but I'll like to see both simple and not-so-simple implementations. C code accepted.
Any references to papers or code?
|
Have FETI-DP or BDDC methods been applied to alternative FEM discretizations - for example, least squares finite elements?
My Google searching doesn't seem to yield many results, so I'm wondering if I've missed any field-specific papers. If not, is there a reason for this (beyond "lack of interest or funding")?
Edit:... |
This questions may be a bit off-topic in comp-sci. if it is needed please suggest where does it fit with.
The question is regarding on how to manage all the simulation runs efficiently.
let's say, for instance, a simulation requires fixing 2 parameters which has to be defined at a certain suggested value range.
To fin... |
I am trying to use the nonlinear fitting routines of MINPACK for fitting a rather complicated equation of state to a set of experimental data. A subset of the data is fitted fairly well to a simplified form of the EoS, which gives me some confidence that the implementation is, in principle, working. However, it seems t... |
I am starting a self study course in computational fluid dynamics.
I use ( An introduction to computational fluid dynamics : the finite volume method)
I am learning Python programming language.
The problem is that I cannot understand most things in the book
what do I need before beginning this course ?
Update
My probl... |
Problem
Let's say I can write a model as the Hermitian eigensystem:
$$ A x = \lambda x $$
where $A \in \mathbb{C}^{n\times n}$ is Hermitian, or as the generalized Hermitian eigensystem:
$$ \tilde A \tilde x = \lambda \tilde B \tilde x $$
where $\tilde A, \tilde B \in \mathbb{C}^{\tilde n \times \tilde n}$ are Hermitian... |
I would like use N-body simulation for measure a torque on an object in a liquid (helium). It's a 2D study. On the site : http://www.browndeertechnology.com/docs/BDT_OpenCL_Tutorial_NBody-rev3.html I can understand the method. But it's only for free object. How can I do for compute particles when they reached fixed wal... |
I have a system of nonlinear equations of which I know it has a single root I am interested in, and has a continuum of roots I am not interested in. I am currently using Newton with line-searching in an attempt to find that single root, but the algorithm will obviously always converge to one of the roots from the conti... |
Can anyone tell me some very good/efficient numerial algorthims for GPU/CUDA to compute multiplication/ between sparse matrices (its good if you can recommend me some research papers)?
I googled some papers on sparse vectors, but it looks like they are more interested in the operations involves sparse matrix and dense... |
I have a mixed integer programming problem. And I am current using GLPK as my solver. But I found that GLPK is good for Linear Programming problem, but for Mixed Integer programming, it requires much longer time, therefore doesn't meet our requirement. I am so seeking other software. Is there any other good open sourc... |
Short version: Is it ever a good idea to use multiple languages in scientific codes?
Long version: May be its just me but these days I often see scientific codes written in multiple languages. The argument is that one language is used for performance and other one for ease of use, pretty syntax, because everyone else i... |
As it known, according to the Polar Decomposition, square matrix can be expressed in the next form $$M=QR$$ ($Q$ - orthogonal matrix $R$ - positive-semidefinite Hermitian matrix)
I need to find this $Q$ factor for the case of $3\times 3$ matrix. For this purpose I use next well known iterative formula
$$
Q_{i+1} = \fr... |
Is there a master degree in HPC (High Performance Computing) in US?
I am asking this question because in my early research I found no direct mentioning of HPC instead invidual courese in parallel programming , distributed computing etc in additional to cs generic core course. I did not found so far a focused program in... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.