instruction stringlengths 43 28.1k |
|---|
If I am to solve a symmetric eigenvalue system $A=QDQ^T$, where $A\in\mathcal{R}^{n\times n}$ and $n$ is small (in the range 4 - 64); I want all the eigenvectors and eigenvalues;
There are two major consideration in my design; I wish my implementation to be as fast as possible; I need $Q$ to be as orthogonal possible,... |
I am numerically simulating the Mathieu equation using ODE45 and I have to keep changing the parameters delta and epsilon for each simulation to get the required peiodic solution.
Following is the MATLAB code I am running:
function xdot=trial2(t,x)
delta=0.1045;epsilon=0.0048685;
xdot=[x(2);(-delta-epsilon*cos(t))*x(1... |
Given a desired state $y_0$ and a regularization parameter $\beta \in \mathbb R$, consider the problem of finding a state $y$ and a control $u$ to minimize a functional
\begin{equation}
\frac{1}{2} \| y - y_0 \|^2 + \frac{\beta}{2} \| u \|^2
\end{equation}
subject to the constraint
\begin{equation}
Ay = u.
\end{equ... |
Are there any open-source auto-differentiation libraries for MATLAB?
I am aware of commercial packages such as Tomlab/MAD and plenty of C++ libraries, but I can't find many more for MATLAB other than Automatic Differentiation for Matlab package on Matlab File Exchange which isn't a major package.
Added
As a bare minimu... |
So I'm working on a fitting algorithm using the levenberg-marquardt algorithm and I'm a bit stumped as to how to handle fixed parameters. Looking around at other code, like the minpack version of the l-m algorithm, it looks like they are just setting the columns of the jacobian for fixed parameters to be 0.0, which mak... |
ATLAS is an extremely popular linear algebra library.
When you install ATLAS from source, it tries to automatically tune a number of parameters to give you the fastest code. Does it make sense to do this tuning when installing ATLAS on a cloud server like AWS or GCE? I know that these services often provide shared VMs,... |
Is it possible to run Clp on multiple threads using Julia and JuMP?
|
I need to find the root of a nonlinear system (which comes out of collocation, so I will change the order to test). I will likely have about 50-300 variables, and the Jacobian is going to be somewhere between 1/9 and 1/2 dense, and calculated using auto-differentiation.
What do people suggest for the linear system of ... |
I am writing a global climate simulation software system. My idea is the following :
At the top of everything, I interface to the OS using D, a very powerful language for compile time code generation. The D code gets environmental variables, finds necessary input data, and then according to the config files, initiates ... |
I am trying to use the diary function in Matlab:
delete task1.txt
diary task1.txt
echo on
format long
b = 1:c;
x = 10.^(-b);
y = sin(x)./x;
echo off
diary off
end
When I run the script I get the following error:
"Cannot open file: permission denied"
How can I enable the permission in the script?
|
I have a problem of the following structure: For some scalar $g$, functions $F(z)$ and $h(z)$ defined on $[0,\bar{z}]$ , and a non-linear operator $\phi(F,z)$ (in reality, $F$ and $h$ are vector valued)
The $F(z)$ and $g$ must fulfill the ODE st. boundary values:
$$
0 = -F'(z;g) + \phi(F,z;g)\\
F(0) = 0\\
F(\bar{z}) =... |
Is there a mathematical optimization branch that explicitly tries to optimize this (type) problem?
$$\eqalign{
& \min \cr
& \sum\limits_{i = 1}^N {(J*s[i] + {J_1}*s[i]*s[i + 1] + {J_2}s[i]*s[i + 1]*s[i + 2] + ... + {J_m}s[i]*s[i + 1]*...s[i + m])} \cr
& s[i] \in \{ 0,1\} \quad \forall i \in \{ 1,2...,N + m\... |
What is the current state of the art for solving higher dimensional (3-10) parabolic PDEs in the complex domain with simple poles (of the form $ \frac{1}{|\vec{r}_1 - \vec{r}_2|}$) and absorbing boundary conditions?
Specifically, I'm interested in solving the multi-electron Schrödinger equation:
$ \left( \sum_i \sum_{... |
I am finding the eigenvalues of dense NxN Hermitian matrix which is calculated from a density operator in quantum physics. All the eigenvalues are needed as I need to calculate the sum of the absolute value of them. I would like to know whether there are good solvers for this problem that can run in parallel?
The probl... |
Hibbs et. al use SVD to balance the strength of different underlying signals in gene expression data using the following decomposition:
$X_{m*n} = U_{m*n} \Sigma_{n*n} V^T_{n*n}$
In this case $U$ has the same dimensions as $X$, so the way that they see $U$ as a balanced projection of $X$ makes sense.
I'd like to use th... |
I want to find the minimum-norm solution to a rank-deficient least-squares problem, subject to positivity constraints, e.g.
$$\min_x\ \|x\|^2 \quad s.t.\quad Ax = b,\ x \geq 0$$
where $A$ is large, sparse, rectangular, and rank deficient.
What is the most efficient way of robustly solving this problem? Is there recomme... |
I am trying to create the same outputs in Mathematica and Matlab, however I am running into trouble aligning the eigenvectors with the eigenvalues, I think the Matlab is doing something slightly more complex (Ordering/Sorting) than I anticipated.
using the example in on the Mathwork website, for [V,D] = eig(A).
http://... |
I have a set of points defined by their coordinates $(x_1,y_1)$ after changing some parameters of the problem I obtain a second set of points defined by their coordinates $(x_2, y_2)$. There exists a one-to-one mapping between these two sets of points. Is there a standard way to obtain the most likely mapping between t... |
Not sure if this question is more appropriate for StackOverload, but I'm guessing a bunch of people here have experience with MPI2, so thought I would try here first. I have some large dense complex symmetric matrices that I would like to factor and wanted to try out Elemental for its MPI support. I compiled Open MPI 1... |
Below is a Python code that calculates the periodicity of the middle-square method for a given 4 digit-numbers:
n = int(input("Please enter a four digit number: "))
already_seen = list()
while n not in already_seen:
already_seen.append(n)
n = int(str(n * n).zfill(8)[2:6])
print(n)
print('periodicity = ', le... |
I'm new to the PDE toolbox in Matlab. From the PDE specification window of the toolbox, it looks like one can only solve PDE with constant coefficients.
How can I use Matlab's PDE toolbox to solve PDE like
$$
\partial_t P(x,y,t)=x\partial_xP(x,y,t)+(y-1)\partial_yP(x,y,t)+2P(x,y,t)?
$$
|
I am attempting to translate a dgemm / MPI matrix multiplier onto the GPU through OpenCL C. My issue is that the code below gives the correct output for a 9x6 matrix being multiplied by a 6x450 matrix until the 6x450 matrix changes slightly and the kernel output is shifted by 315 indeces. Included is the dgemm that I ... |
I'm trying to implement the Helmholtz-Hodge Decomposition in 2D, which states that a vector field is composed by a rotational free component, a divergence free component and a harmonic component.
This leads me to a Poisson Equation:
$\begin{equation}
\left\{
\begin{array}{lcl}
\nabla \cdot \mathbf{F} & =... |
I want to numerically solve the following system of differential equations at the steady state:
\begin{equation}
\begin{aligned}
\frac{\partial \rho_{11\mathbf{k}}}{\partial t} =& +\frac{i}{\hbar} V_{0}^{2121}\sum_\mathbf{k'}(\rho_{21\mathbf{k'}}\rho_{21\mathbf{k}}^* - \rho_{21\mathbf{k'}}^*\rho_{21\mathbf{k}}) + \\ ... |
I'm transforming cartesian images into polar images.
(x,y) => (angle, radius)
I fill the polar image by iterating on each of its pixels and filling them by doing the reverse polar transform. For a given (angle, radius) pair, I'm interpolating in the source cartesian image at the following location:
xcartesianpoint = co... |
I have several matlab functions and one script that call those functions. Suppose that they are 'a.m' 'f1.m' 'f2.m' and 'f3.m'. The script 'a.m' must open the functions files when it is manually opened and the run command is used. How can I do that with scripting techniques?
|
I'm trying to understand how the adjoint-based optimization method works for a PDE constrained optimization. Particularly, I'm trying to understand why the adjoint method is more efficient for problems where the number of design variables is large, but the "number of equations is small".
What I understand:
Consider th... |
Is there some flag to let the Fortran compiler pre calculate a math expression before compiling it?. I have to write expressions that contain many small 4x4 matrix multiplications. The thing is, most of the elements of these small 4x4 matrices are zero, so in terms of performance it's better to actually do the multipli... |
At our research facility we routinely perform what are called PALM (Photo-activated localisation microscopy) or STORM (stochastic optical reconstruction microscopy) experiments.
You can read all about it in the links above but in short it boils down to this:
Normal optical microscopy is diffraction limited. We can onl... |
I would like to solve the following equation, wrt $n(e)$
$$f(n(e))=g(n(e)) + \int_{\alpha}^{e} w(n(x))dx $$
The integral there it confuses me.
Any suggestion on how I can implement this on a the computer (I am mostly Matlab user)
thanks
UPDATE
or simplicity assume the integral is between some values $e_1$ and $e_2$ a... |
I'm trying to write a Python program to use Tanh-sinh quadrature to compute the value of
\begin{equation} \int_{-1}^1 \frac{dx}{\sqrt{1-x^2}} \end{equation}
but although the program converges to a sensible value with no errors in every case, it's not converging to the correct value (which is $\pi$ for this particular... |
Is checking the equivalence of two convex polytopes $p^{s}$ and $p^{t}$ NP-hard?
$p^{s}= CH\{ \cup <p^{s,a_1},...., p^{s,a_m}> \} $ // CH is convex hull computed on union of a polynomial number of polytopes $p^{s,a_i}$
$p^{t}= CH\{ \cup <p^{t,b_1},...., p^{t,b_n}> \}$ // CH is computed on union of a polynomial nu... |
I'm using Matlab's fmincon to solve a constrained nonlinear optimization for varying sets of parameters in the objective function. I have 2 parameters and have 400 unique combination of these 2 parameters. Within a particular combination of parameters I use a range of start points (100 start points). Trying to do rough... |
I am applying an iterative method (projected newton) to an optimization problem. Theoretically, the method should converge linearly. I would greatly appreciate it if you could share how should I test the convergence and which stopping criteria should I use?
I used the gradient norm (gradient of the objective function) ... |
Let a system of $n$ polynomial equations of degree $d$ with $m$ variables.
I'm interested in a sparse system with $d = 3$, $n \sim 2000000$, $m \sim 50000$ and integer coefficients.
What techniques can I use from numerical analysis to show the existence of a solution? What numerical methods exist for finding a soluti... |
I what to calculate displacements, stress and strain in a soil slope with a FEM script. The slope moves like a laminar flow.
Can you suggest me some bibliography on this problem?
I've already look on Zienkiewicz - The finite element method vol 1, 2 and 3-
|
I have the following SDP problem:
max: $Tr(CX)$
subject to: $X \geq 0, I - X \geq 0$.
I want to convert it into the standard form specified by CSDP (I'm using the callable C interface), which is:
max: $Tr(CX)$
subject to: $\forall_i, Tr(A_iX) = a_i, X \geq 0$.
The SDP is part of an algorithm which iteratively increase... |
Can anyone explain how the MATLAB functions: stream2(x,y,z,u,v,startx,starty) and stream3(x,y,z,u,v,startx,starty) compute stream lines from vector data u and v? In the stream2.m file, it calls the stream3c function. I assume it is a .c file but unable to see it. Thanks in advance.
|
I have two animal running trajectories. A regular one with repeated back and forth running between point A and B, like the one on top in the figure. The other one is very irregular, animal paused and turned around a lot in the middle. Is there any algorithm to measure the regularity of a trajectory, like repeated acti... |
This is somehow unexpected, but my recent experience with solving a system of nonlinear equations is that treating them as the right hand side of a system of ordinary equations and then evolve the system with an ODE solver can be considerably faster than with the usual Newton-Raphson iteration.
Of course this only appl... |
I am dealing with a highly nonlinear system of two PDEs. I already have a code to solve the system in case of Dirichlet boundary conditions. The explicit system is:
$$
\begin{eqnarray*}
\partial_{t}u & = & D_{11}\partial_{x}^{2}u+\partial_{x}D_{11}\cdot\partial_{x}u+D_{12}\partial_{x}^{2}v+\partial_{x}D_{12}\cdot\parti... |
I have an upper trapezoidal matrix stored in column major format. That is, my matrix looks like this:
I'd like to RQ decompose it, and store Q in the rectangular part of my upper trapezoidal matrix. For QR decomposition, I can store Q in the lower portion of the matrix, as a sequence of column vectors ($v$) which fo... |
This is a somewhat basic question, I guess. Take the ODE boundary value problem
$$ \frac1\lambda y''-y'=0, \qquad y(0) = 0, \quad y(1) = 1, $$
with the solution
$$ y(x) = \frac{e^{x\lambda}-1}{e^\lambda -1}. $$
Discretize it on a uniform grid $x_k = kh$, $h=1/n$, $k=0,\ldots,n$, as follows:
$$ \frac1\lambda \frac{y_{k-... |
I'm reading up on the Parameter ESTimation algorithm, (Link to PEST homepage 1), and having trouble understanding the broad strokes, as I keep getting lost in null spaces, different regularized ion techniques, etc.
Can someone who is familiar with this algorithm, often used in the calibration of environment models, pro... |
I am writing the pre processing program for a porosity based cfd project we just started. Basically I have a 3 dimensional mesh made of cubes and I need to import a STL file over it, and calculate how much space of each cell is being used by the object. The STL file is a CAD format that uses triangles to represent a su... |
I noticed this post, where spalloc and sparse are recommended for efficient assembly in Matlab. I personally use sparse assembling for simple cases.
However, when it comes to the case of coupled PDE, say, 3-PDE coupled, then the scalar unknown becomes a $3\times 3$ tensor. In this case, I can't figure out a way to expl... |
Let $F_1$, $F_2$ be the foci points of an ellipse $\mathcal{E}\colon \mathbf{x}^TA\mathbf{x}=1$, $\mathbf{x}\in\mathbb{R}^2$, $A\in\mathbb{S}_{++}^{2}$. Let also $a$, $b$ be the semi-axes of $\mathcal{E}$. We would like to find the (symmetric positive-definite) matrix $A$.
I tried the following:
I first constructed th... |
If I have N particles how do I assign their x values so that the end result is Gaussian distribution. i.e. particles near the ends are more spread out than particles near the center.
|
I am trying to derive Galerkin type weak formulation for the Stokes equations. I'm having a bit of a problem reconciling the notation in the integration by parts. I know that the answer I'm looking for is:
$
\int_\Omega \Delta\mathbf{u}\cdot\mathbf{v}d\Omega = \int_\Gamma (\mathbf{n}\cdot\nabla\mathbf{u})\cdot\mathbf{v... |
After studying the process of Gradual Underflow, I'm left a little curious as to why machines don't implement Gradual Overflow; where numbers exceeding the overflow level would be stored as un-normalized floats.
Just as the precision of the mantissa is decreased for representation of a larger (in magnitude) exponent (a... |
How can I automatically set the limits of my axis to be e.g. 5% bigger than all data contained in the plot? Of course I could calculate the total max/min values for all the stuff I plot but I would have to do this for each plot separately. Since Matlab somehow must know all min/max values (it computes a decent limit it... |
I need a numerically stable way to compute the following ratio:
$$\frac{_{2}F_{1}(a+1,b;c;x)}{_{2}F_{1}(a,b;c;x)}$$
All the parameters are real numbers, with $a< 0$,$\ $ $b,c > 0$ and $0<x<1$.
Right now I am using GSL's implementation of the hypergeometric function, but I keep getting under/over-flows.
Is there a simpl... |
In Fortran, given arrays A(1000000) and B(1000000), and to compute the sum you simply write:
C = A + B
However, when I want to implement OpenMP, I have to write an explicit loop:
!$OMP PARALLEL DO
DO I = 1, 1000000
C(I) = A(I) + B(I)
END DO
!$OMP END PARALLEL DO
Is there a better way to do this? I know there is -para... |
I am seeking the optimal method for implementing DG on a parallel system. For my research, I come across two types of problems.
For the first problem, I am solving a time-independent (steady-state) boundary value problem. I end up with the stiffness matrix multiplied by the vector of my unknowns equal to the vector of ... |
I asked this question to help me understand what is going on in one of Maxwell's equations. I am happy with following through the maths on paper now, but would like to use MATLAB to take it one step further, and actually DO the maths on a computer. This is where I really struggle, because most of what I have used compu... |
I am trying to solve governing equations of laminar diffusion flame jet for steady state case. In the next step, I will solve for unsteady case.
I have non-dimensional continuity, axial momentum, mixture fraction and energy equations. Axial momentum, mixture fraction, and energy equations have same form and boundary co... |
I'm trying to solve variable density and viscosity Navier-Stokes equation using lagged pressure projection method. I'm solving for cavity problem as a test case now (once I get projection right, I will be solving a multiphase problem). The problem is I get oscillations developed in the solution as I march in time. .
I'... |
Most numerical algorithms require an epsilon to be chosen in order to be robust and provide meaningful results. Choosing machine epsilon is usually too aggressive. Barring any special knowledge about your problem, one rule of thumb I remember is to use $\sqrt{\epsilon_{\text{machine}}}$. Eg: it's mentioned in this w... |
If you call a library like LAPACK or BLAS (which are written in FORTRAN and use column major order) from a C-like language that uses row major order, won't you lose performance and use a lot of memory due to the creation of transposed matrices? Tests are best, of course, but can anyone with experience tell me whether o... |
I am trying to calculate the second and third invariants for a turbulent flow. I have the second order statistics (both transient and averaged). i.e $uu$, $vv$, $ww$, $uv$, $vw$ and $uw$. These are supposed to be expanded as
$$II = b_{ij} / 2 \, ,$$
and
$$III = b_{ij} b_{jk} b_{ki}/3 \, ,$$
but I am stuck at this poin... |
I asked a similar question on MathSE but with more added fluff, but didn't really get any straight answers, so I figured I'd ask here. Computing Fourier coefficients of a function using the FFT is notoriously inaccurate whenever the magnitude of the coefficients is small, and 13.9 of "Numerical Recipes in C" makes a pa... |
I have a bunch of points in $\mathbb{R}^3$ that I would like to translate and rotate so that their center is at the origin and the variance along the $x$ and $y$ axes are maximal (greedy, and in that order). To accomplish this I am trying to use python's principal components analysis algorithm. It is not behaving as I ... |
I have some code illustrating my problem below. As you can see from the results- Matlab is significantly faster than python. It seems that the function which performs the levinson durbin recursion in Matlab is a Mex file. Could this be why Matlab is significantly faster? How would I make the Python implementation on pa... |
I would greatly appreciate it if you could share some reasons the Conjugate Gradient iteration for Ax = b does not converge? My matrix A is symmetric positive definite.
Thank you so much!
Edit with more information:
My matrix is the reduced Hessian in the optimization algorithms for problems with simple constraints. T... |
I'm trying to plot some vector fields using LIC technique.
More specifically, I'm using the Python solution for this kind of plot.
Before applying that approach, I was plotting my vectors as quiver. This give me results like this:
However, for large data, this technique is not recommended because the larger the data, ... |
I want to perform gradient descent optimization of the probability of a sample under a multivariate normal probability density function. For your convenience I state the PDF here:
$$\mathcal{N}(\boldsymbol\mu,\,\boldsymbol\Sigma) = (2\pi)^{-\frac{k}{2}}|\boldsymbol\Sigma|^{-\frac{1}{2}}\, e^{ -\frac{1}{2}(\mathbf{x}-\... |
I get a distance map output after using a Fast Marching Method. The PDE involved is the Eikonal equation which take the form : $$\begin{cases}
c(x).|\nabla u| =1\\
u(x) =\phi(x)
\end{cases} $$ where c is a speed function and u the unknown distance/time we compute. Below an example of a 2D distan... |
Is there a python library that would keep track of uncertainty in measured data? i.e. if I put in a figure of a±b is there an easy way to track the propagation of error through calculations.
|
While continuously reading about Dynamic Programming I have a problem, implementing it in a practical application.
Let's assume we want to optimize our way to school which we go daily by bicycle. Because the way is a bit hilly in addition to resistance due to friction $F_F$ adn air $F_A$ we have also a force dependent ... |
Since upgrading to Octave 3.8 I have been unable to export plots with LaTeX labels. When the figure is displayed the labels render fine but when I try to export the figure using the print command the labels come out as a raw string.
For example:
x = 0:0.01:(2*pi);
y = sin(x.^2 + cos(x)).^3;
plot(x,y)
xlabel('x')
ylabel... |
I am finding minimum of the potential function $f=f_1+f_2$, where $f_i: \mathbb{R}^3\to\mathbb{R}$. I was about to use Levenberg-Marquardt as the quick starting point, since it is already implemented in Eigen which I use. For a reason I don't understand, it requires the dimension of the solution ($\mathbb{R}$ in my cas... |
I'm entering my 3rd year of my PhD program, and up until now my research code (numerical inverse problems/medical imaging/image processing/etc) consists mostly of disorganized MATLAB scripts and functions, with a few MEX'd C++ and CUDA routines thrown in for some added speed here and there. Working with MATLAB has bee... |
I am having an issue with the implementation of NLOPT in Python. My objective is to minimize a somewhat complicated Maximum Likelihood function.
My function is called mle and there are 6 parameters to estimate.
Finding the gradient to this MLE is not trivial, so I decided to turn to a numerical gradient function:
def ... |
I am working on a physics problem which requires obtaining the exact eigenvalues and eigenvectors of Hermitian and Unitary matrices numerically. Naturally I would like to ask the experts what are the most efficient libraries to diagonalize the referred matrices. In particular, I would like to diagonalize efficiently ma... |
I would like to use Runge-Kutta 8th order method (89) in a celestial mechanics / astrodynamics application, written in C++, using a Windows machine. Therefore I wonder if anyone knows a good library / implementation that is documented and free to use ? It is ok if it is written in C, as long as there aren't any compila... |
I need to know if there is some function in BLAS/LAPACK or some other Scientific Library that returns a non absolute sum of a vector/matrix.
I've found the 'asum', but it returns only the absolute sum.
Thank you.
|
I need a numerically stable way to compute the following ratio:
$$\frac{_{2}F_{1}(a+1,b;c;x)}{_{2}F_{1}(a,b;c;x)}$$
All the parameters are real positive numbers, with $0 < a,b,c$ and $0 < x < 1$.
Right now I am using GSL's implementation of the hypergeometric function, but I keep getting under/over-flows.
Is there a si... |
If you use a FEM (on the variational formulation), you can discretize some continuous eigenvalue problem, $$L u = \lambda u \ \ \text{on} \ \Omega,$$
into some discrete, generalized eigenvalue problem, $$ K v = \lambda M v, $$
(here with K the stiffness and M the mass matrix; both symmetric and M additionally positive ... |
Some older books I've seen say that the minimum number of stages of an explicit Runge-Kutta method of a specified order is unknown for orders $\geq 9$. Is this still true?
What libraries are there for automatically working with high order Runge-Kutta methods?
|
I am working in level set method, specially Lankton method paper. I try to implement Histogram Separation (HS) Energy problem (Part III.C). It based on Bhattacharyya to control the evolution of contour.
To understand it, the first consider the global method in which we are given an input image and a contour. The contou... |
I want to extract the data from the boundary surface of a cylinder (in a .vtu file) and plot it onto a plane, where the coordinates are theta (rotation angle) and Z(height) of the cylinder. I know that this could be done in many ways, but i am looking for a simple clean solution, using Paraview, python or both (i.e. a ... |
I'm doing work in computational geometry where the robustness of the algorithm is important. On two separate occasions now have I come across a scenario where I compare the numerical size of two expressions where the final inequality ends up looking something like this:
$$\sqrt{A} + \sqrt{B} < C$$
where $A$, $B$ and $C... |
I need to calculate these ratios:
$$\frac{\mathrm{B}_{x,y}(\alpha + 1,\beta)}{\mathrm{B}_{x,y}(\alpha,\beta)} \tag{1}$$
where $\alpha,\beta > 0$ and $0\le x\le y \le 1$. Here $\mathrm{B}_{x,y}(\alpha,\beta)$ is the incomplete Beta function, defined as:
$$\mathrm{B}_{x,y}(\alpha,\beta) = \int_x^y t^{\alpha-1}(1-t)^{\bet... |
I'm working on a Multibody dynamics code using the finite element method to simulate the behaviour of flexible beams (using this paper if anyone is interested/ it is relevant). I'd like to model joints, and as I only need spherical friction free joints I believe this should be easy using Lagrange multipliers.
My unders... |
I was wondering if anyone knows of any algorithms or projects that can detect the frequency of a motion from a video clip.
Like if I had a video of a bouncing ball with constant frequency, could an algorithm tell me the approximate frequency (e.g. 1 bounce/s)
Cheers,
|
I'm implementing basic fluid flow simulator using SPH method basing on e.g. https://www10.informatik.uni-erlangen.de/Publications/Theses/2010/Staubach_BA10.pdf.
EDIT (dead url): https://www10.cs.fau.de/publications/theses/2010/Staubach_BT_2010.pdf
So far I've implemented:
uniform grid constructing
density and pressur... |
I have calculated the temperature of the section of a cylinder, which is subjected to a heat flow on its upper surface. Getting the temperature distribution in the 2D section. As shown in the following image.
From this temperature distribution would represent the upper part of the cylinder as in the picture below.
|
I'm working with an RKF45 integrator that I have programmed using CUDA C++ on my GPU and am pondering a few questions as I'm trying to track down some issues with my code.
I'm using double precision values in the calculation. Is it feasible of me to demand of my integrator that the difference between the 4th and 5t... |
I'm wondering if there is something analogous to a PCA for data sets where there is a dependent variable. (Though I am interested in any method of dimensionality reduction, PCA is just an example.) A PCA will take a 64-dimensional data set (say) and might return 4 dimensions which explain 95% of the variance. From a... |
I am trying to do something fairly simple somehow I have made it hard.
Is there an example of how to send a 3D array to a binary file?
|
I am using in Python mpi4py to process in parallel 20 minimization functions. Each of the 20 worker processes the same algorithm but with different random initial starting values. What I don't understand is the time it takes to process my job. I expect each of the workers to take roughly the same amount of time to mini... |
Is it possible to simulate interaction of Smart Fluids with Solids? Is
there a software capable of doing so?
What I Know:
The two software that I know of are Autodesk Simulation Mechanical and Computational Fluid Dynamics. The brochures and information about these software do not mention Smart Fluids anywhere.
What... |
I was 7 years old when I learnt BASIC. Then I learnt C and Visual Basic till the age of 13. I stopped programming for 4 years continuously, and don't remember much about it now. I have lost the skill, and need to do learn it all over again.
How can I learn basics and the terminology of programming all over
again usi... |
I am using scikit-image's points_inside_poly function, and in my code I am calling it enough times that it takes up about 50% of my running time (determined via profiling).
I now have two options before me: 1) reduce the number of calls I make to points_inside_poly and/or 2) find (or make?) a speedier version of points... |
There is a lot of talk about exascale computing these days, and whether we will be able to reach that goal by 2018, 2019 or whatever.
I have what is probably a naive question. What are the issues with doing it now?
Specifically, today we have the AMD Radeon 295x2
It has a computing power of 11.5 TFLOPS. Combining a h... |
Are there any good books or references on implementing finite difference methods for PDEs? Specifically, I'm looking for something comparable to Gockenbach's book Understanding and Implementing the Finite Element Method. Even more specifically, I'm looking for information on
Appropriate data structures for regular m... |
I am writing a program that is supposed to use multiple GPUs on a single node using CUDA Fortran. Although I've looked through the Portland Group CUDA Fortran Reference, I am still unclear about how to make memory allocation work in my case.
I am trying to split a simulation domain between multiple GPUs, such that the ... |
I have a binary volume consisting of a number of disconnected objects. (coming from a noisy, anatomic dataset)
However, some of the objects are 'somewhat' connected. Picture a big cylinder and a small cylinder with a few streamers connecting them.
Is there a relatively computationally inexpensive way to measure 'how c... |
What algorithm is more practically suited in terms of performance for solving the $\mathbf{Lx=b}$ equation, where $\mathbf{L}$ is a generic Laplacian matrix (associated to a strongly connected graph, its first eigenvalue being null in most cases). $\mathbf{L}$ can have more than 1 million rows and less than 15 non-null... |
I need to translate a point (P1) in 3D a certain amount, call it stepSize, along a vector described by a heading composed of three angles (basically pitch, roll and yaw). I know that in homogeneous coordinates the following translation matrix would be used
and I can multiply my existing point by Tv to get the new poi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.