instruction stringlengths 43 28.1k |
|---|
What software or sites might simulate an N-body gravitational problem? Application is related to Klemperer Rosette or Iridium Satellites. Bias for C, C++, PHP, or Java. Nice visuals a big plus.
Similar questions are here in Computation Science for binary stars, satellites and comets but I need to simulate several pla... |
I have a nasty system of coupled integral equations, which I managed to discretize and recast a non-linear system, i.e. something like:
$$ \vec{w} = F \left( \vec{w} \right) \hspace{32pt} w \in \mathbb{R}^n$$
I am employing a naive iterative solution method. For some reasonable initial choice of $\vec{w}$ I repeatedly ... |
I am trying to write a 2d pseudo-spectral DNS code with random initial velocities. This is kind of a classic simulation where the very tiny vortices group together forming larger and larger vortices as the spectral energy cascades upward. So far I have done what I think is the intuitive thing to do: I have done a split... |
The model I'm working on is a multinomial logit choice model. It's a very specific dataset so other existing MNLogit libraries don't fit with my data.
So basically, it's a very complex function which takes 11 parameters and returns a loglikelihood value. Then I need to find the optimal parameter values that can minimi... |
Going to teach students of undergraduate level a course titled Introduction to Computer Programming. I am confused a bit. In Computational Physics scientists use C/C++ or Python or Fortran,CUDA etc..... this is time to build their base. What should I use? I know you can learn new programming language anytime in your li... |
I have constructed a function in Matlab that is convex and increasing (qualitatively similar to an exponential function but I am hoping to avoid the successive approximation requirement of exp). In my specification of the function I take a minimum of two convex functions which of course does not, in general, result in ... |
I'm trying to get a frequency plot, or PDF (probability density function) plot for my biometrics project in MATLAB.
I have two vectors genuine_scores and impostor_scores, and I need to have a graph like:
x-axis : value of elements
y-axis : frequency of that value
So the graph should look like this :
I tried probplot... |
I am trying to solve an assignment on solving the Bogoliubov de Gennes equations self-consistently in Matlab. BdG equations in 1-Dimension are as follows:-
$$\left(\begin{array}{cc}
-\frac{\hbar^{2}}{2m}\frac{\delta^{2}}{\delta z^{2}}-\mu+V\left(z\right) & \triangle(z)\\
\triangle(z) & \frac{\hbar^{2}}{2m}\frac{\delta... |
I am stuck with a problem about finding the condition number of an algorithm. I tried to find an example, but i couldn't. Can anybody help me, please?
Given is $f(x)=\ln(x)$. We have the algorithm $f_{A}(x)=[\ln(x)](1+\varepsilon )$, where $\left | \varepsilon \right |\leq 5\mathrm{eps}$ and $\mathrm{eps}$ is the mac... |
The objective function is $L = D(B)$, here $D$ is a function of $B$ and $D$ is a convex function. We have a prior information of $B$: it is rank one and we can write $B$ into $B = pq^T$. So we can change the objective function into $L=D(p, q)$. Obviously, for $p$ and $q$, this problem is not a convex problem anymore an... |
Is there a way of estimating Pi with the Buffon's method without assuming Pi known?
To be more precise: in a Monte Carlo simulation of the experiment invented by Buffon I would (ideally) generate 2 random numbers with uniform distribution within [0,1] and [0,Pi] respectively (the two numbers being the distance of the c... |
I need to get a stability criterion for the numerical scheme for equation
$$\frac{\partial u}{\partial t}-\frac{\partial^2 u}{\partial x^2}-\frac{\partial^2 u}{\partial y^2}-\frac{\partial^2 u}{\partial z^2} -\alpha\frac{\partial u}{\partial x}-\beta\frac{\partial u}{\partial y}-\gamma\frac{\partial u}{\partial z}-f=0 ... |
I want to discretize the LWR(Lighthill-Whitham-Richards)-v partial differential equation (as shown in 1)
$$
\frac{\partial u}{\partial t} + \frac{\partial R(u)}{\partial x} = 0 \quad \text{i.e.,} \quad \frac{\partial u}{\partial t} + \frac{dR}{du}\,\frac{\partial u}{\partial x} = 0 \quad \dots\dots \quad \text{(1)}
$... |
I'm dealing with SVDLIBC library. In order to compute singular values I need to specify my matrix in the Harwell-Boeing format. On Internet I have found next example:
Dense Text Format:
4 3
2.3 0 4.2
0 1.3 2.2
3.8 0 0.5
0 0 0
Sparse Text Harwell-Boeing Format:
SVDLIBC v. 1.32
3 ... |
I want to compute an integral with the following code written in Matlab.
function f = LO_scheme2a(r,kk)
% Run the Prog by : q = integral(@(r)LO_scheme2a(r,kk), 0, inf)
%% System parameters
lambda_m= 10^(-2);
lambda_f= kk.*lambda_m; %can be changed based on scenario
mu= 10^-4; %user density (find the proper user dens... |
Unless I'm mistaken, deep neural networks are good for learning functions that are nonlinear in the input.
In such cases, the input set is linearly inseparable, so the optimisation problem that results from the approximation problem is not convex, so it cannot be globally optimised with local optimization. Support Vect... |
Within the manual, the effective/von Mises stress or Hill's potential for anisotropic bodies is calculated in Abaqus in cartesian rectangular coordinates as
$\sigma_{eff}=\sqrt{I_{1}^{2}-3I_{2}} \\
f({\sigma})_{Hill}=\sqrt{\big( F(\sigma_{22}-\sigma_{33})^{2}+ G(\sigma_{33}-\sigma_{11})^{2}+H(\sigma_{11}-\sigma_{22})^{... |
I am working on analyzing a data set and I was wondering what would be the most statistically valid method of demonstrating that there is a strong spatial correlation between images.
I have a data set with about 50 pairs of images of cancerous tissue samples. The first image in each pair shows the locations of gold nan... |
I need to calculate the integral
$$I = \int_0^R f(r)J_n\left(\frac{z_{nm}r}{R}\right)rdr$$
where $J_n$ is the $n^{\mathrm{th}}$ order Bessel functions of the first kind, $z_{nm}$ is its $m^{\mathrm{th}}$ zero and $f(r)$ is a real function which is somewhat similar to $J_n$ (but not the same, it is quite complicated and... |
The parallel FFTW3 distributes different portions of a large data to different processors, so that each processor obtains and manipulates only a small fraction of the large size data that wants to be fourier transformed.
I am wondering, at the end of the transformation, as the transformed data are locating at differen... |
I am trying to calculate the numbers $n$ for which the $n$-th Fibonacci number $F_n$ is a multiple of $n$; that is fib(n)%n==0.
Here is the best PARI code I could come up with (for the counting function).
fibmod(n)={return(lift(((Mod([1,1;1,0],n))^n)[1,2]));};
S(n)=sum(k=1,floor(n),if(fibmod(k),0,1));
With this, I ca... |
I'm using modal decomposition to predict the steady state response of a beam structure to harmonic loading. The structure itself is very lightly damped, but we know from experiments that the aerodynamic drag force as it moves through the air is very significant.
I have the mass and stiffness matrices for the beam ($\bo... |
I've always heard that easy parallelization was one of the advantages of DG methods, but I don't really see why any of those reasons don't also apply to continuous Galerkin.
|
I'm working on this application where
I get the spectral decomposition (O,D) of a matrix A for free (A is of full rank) but not A itself, and I need to only recover the last column of A. I was wondering if there was a more efficient way to do this than reconstructing the whole of A first?
|
I have installed OpenCV and IntraFace, now the code can detect landmarks on the face, like this :
Now how can I convert this to a smile detector?
I have the landmark points as an array, so I should probably first find which ones belong to the mouth. How can I do that? Are there any tutorials for IntraFace? I could no... |
I have a function called f(x) which is convex and I can have access to its first order derivative , my objective function is
$$\ J(\bf{x}) = f(\bf{x}) + \lambda |\bf{x}|_0 $$
$$\ \bigtriangledown f(\bf{x}) \space is \space available$$
Could you please provide a list of state of the art methods in the literature that ... |
All the papers I have seen on DG methods for hyperbolic conservation laws together with limiters to compute discontinuous solutions make use of Taylor polynomial basis (Pk basis) or Legendre polynomials. In these cases, limiters have been developed. But if I want to use nodal basis on quadrilaterals/rectangles, then I ... |
I am working on a project involving some pattern recognition. For this I need to find the maximum value in a huge multidimensional dataset. For example I have a discrete 5-dimensional space containing 10^10 data points. Of course I can just do an exhaustive search but time is of the essence so I am searching for an tim... |
I would like to perform the numerical integration of an integral of the form
$$ \int_{-\infty}^\infty e^{i \omega 0+} G(i \omega, \mathbf{v}) d \omega ,$$
or, using the symmetry $G(i\omega)^* = G(-i \omega)$,
$$ \int_0^\infty \Re(e^{i \omega 0+} G(i \omega, \mathbf{v}) ) d\omega ,$$
where $\mathbf{v}$ is a vector of a... |
I need the Truncated SVD implementation in java.
I need to pass a matrix of doubles and an integer value representing the rank where to filter out noise. In output i need a filtered matrix of doubles.
Is there something ?
Thank you
|
I am looking for finding the velocity distribution using Principle of Maximum entropy when applied to Tsallis entropy.
Tsallis entropy is defined as:
$$
S_{T} = \frac{1}{q-1}\left(1-\int{f(p)^qdp}\right)
$$
I have the following constraints:
$$
\int{f(p)dp}=1\\
\int{pf(p)dp}=0\\
\int{p^2f(p)dp}=1\\
\int{p^3f(p)dp}=0\\
$... |
$\def\pd{\partial}$
$\def\l{\left}\def\r{\right}$
$\def\mdot{{\dot{m}}}$
$\def\eps{\varepsilon}$
Consider a tube with longitudinal coordinate $x$ from $0$ to $l$ and
varying cross-section $A(x)$. Derek S. Bale (a former student of
Prof. Randall J. LeVeque) gives in his PhD (http://faculty.washington.edu/rjl/students/d... |
I want to simulate the diffusion of initial dye concentration in a small estuary with a 2D depth averaged model. Would a radiation boundary condition for concentration of tracers alone be enough or do I need to define any additional conditions at the open boundary?
|
I had always assumed that the covariance matrix depends upon the amount and quality of your input data, but I am finding out that this is not the case. Is this true?
We want to fit $f(t) = \Sigma_{i=1}^{M} ( x_i t ) $ to the $N$ datapoints $(t_i,y_i)$ by using the matrix
$A_{i,j} = \phi_j(t_i)$ where $\phi_j$ are the ... |
I am trying to solve the time dependent heat equation with backward euler timestepping and second order space finite differences. This results in a Poisson system needing to be inverted. In serial this is trivial to solve, but I am not sure how one would go about doing this parallel with MPI. Does anyone know how to so... |
I am working on a fluid simulation using vortex methods. For this I must compute the vortex sheet on my boundaries given as:
$$
\gamma(\mathbf{x}) - \frac{1}{\pi}\int_S \frac{\partial}{\partial\mathbf{n}}(\text{log}|\mathbf{x} - \mathbf{x'}|)\gamma(\mathbf{x'})d\mathbf{x'} = -2\mathbf{u}\cdot \mathbf{s}
$$
I have two q... |
I want to calculate ${n \choose k}/2^n$ for moderate $n$ and $k$. In Matlab, use nchoosek(n,k) with $n=60$ and $k=30$ will give a warning: "Warning: Result may not be exact. Coefficient is greater than 9.007199e+15
and is only accurate to 15 digits ". I understand that $60\choose30$ is a huge number, but what I really ... |
I have here equations from a paper by E. Bradlow. They're for counting the events in a Weibull-distributed data set.
$$\begin{align}
\Pr(N(t)=n) &= \sum_{j=n}^\infty{\frac{(-1)^{j+n}(\lambda t^c)^j \alpha_j^n}{\Gamma(cj+1)}} \\
E(N(t)) &= \sum_{n=1}^\infty{\sum_{j=n}^\infty{\frac{n(-1)^{j+n}(\lambda t^c)^j \alpha_j^n}{... |
Can anybody recommend me a good introduction to Crouzeix-Raviart Finite Elements? Their motivation is not obvious and the body of literature is hard to overlook.
|
I am trying to understand an example from a book, but I seem to get different answers depending on which spectral decomposition function I use in NumPy.
I am trying to find a spectral decomposition $W V W^\top$ of a given symmetric matrix $G$ using NumPy functions eig and eigh, where the latter is for symmetric matric... |
I am trying to find the effect on turbulence characteristics when flow passes through a converging section. For this experiment I will use a PIV system to gather data about the flow.
However, I could not find any specific literature on flow through symmetric converging channel. (The converging channel I would be using... |
I used MKL Lapack SBGVX because it can solve for "selected" eigenvalues/modes (both positive and negative), thinking it would be efficient, but it is extremely slow when compared with Bathe's subspace iteration eigensolver, which unfortunately can solve only for positive eigenvalues. I need only the smallest positive e... |
For my problem I need to extract the lower convex hull of a set of 3D points (X,Y,Z). In Matlab, one can find the convex hull using the convhull function as follows: K = convhull(X,Y,Z).
Could anybody please suggest me a way to extract the lower hull from the convex hull? I found many references/code for 2D case but fo... |
I have tinkered around with the implementation of hybridizable Discontinuous Galerkin (HDG) methods in DUNE-PDELab and DUNE-FEM for my PhD but since then I have not had the time to work on these codes very much. Some things were possible back then, but others such as element-wise assemblies of the facet contributions o... |
I am reposting here a question previously asked in stackoverflow: as suggested in a reply to my question, scicomp could be a better place to obtain some useful comments/suggestions for my problem.
I am trying to make some tests with BLACS/Scalapack (C interface, Intel MKL version) making use multiple MPI communicators:... |
$\def\rmin{{\mathrm{in}}}$
$\def\l{\left}\def\r{\right}$
$\def\tagl#1{\tag{#1}\label{#1}}$
I am using the one-dimensional finite volume method to calculate the air flow in some tube.
For subsonic flow one can predefine two quantities at the inlet.
The inlet is a wide opening to the ambient.
The overall system deeply i... |
Typical finite element problems assume $L^2$ which is a Hilbert space, but I've heard that $L^1$ for Navier-Stokes results in less overshoots/undershoots, but $L^1$ is not Hilbert. The dual space for $L^1$ is $L^\infty$, so it seems that we might want some sort of Petrov-Galerkin formulation. But practically, do these ... |
I am trying to find specific eigenvalues and -vectors of a large complex symmetric tridiagonal matrix (at least 10000x10000, and ideally larger). I know roughly which eigenvalues I am looking for, so I've been using scipy.linalg.sparse.eigs (really ARPACK) to find them. Unfortunately, this has turned out to be slow for... |
I looked at the list of publications related to deal.II, but it seems that when it comes to Navier-Stokes equations, everyone speaks about Discontinuous Galerkin solver in their papers. I know there's also a Continuous Galerkin method implemented in deal.II. Has it been used for high-order accurate solution of Navier-S... |
I've got a little conjecture I need to prove for a theoretical result related to causal Bayes net search with latent variables under sparsity constraints. If you're interested in the application please feel free to email me at adambrod@andrew.cmu.edu.
Here's the problem:
Suppose we have a $p\times q$ real matrix $A$ s... |
I need to develop a FVM code in C (The multiscale FVM method for heterogeneous media). I know that:
Only uniform rectangular grids will be considered (2d now, later 3d)
Sparse systems will be large
Need to parallelize my code eventually (will be solving local
problems on fine grid and use them to solve PDE on coarse ... |
I have been writing some code in C for particle-in-cell simulation.
One of the steps of the PIC algorithm requires to solve (numerically) Poisson's equation
$$
\Delta \varphi = - 4 \pi \rho.
$$
Initially I want to limit the program to 2d case ( instead of 3d ) and use the finite difference method ( instead of finite el... |
I have a (very) large sparse matrix in CSC form and I'm supposed to factorize it. I've read that between Givens and Householder transformations, Givens is better for a sparse matrix. The problem is that I don't really know how I should do it (everything's fine for a full matrix, but now all I have are three vectors).
I... |
I am measuring the electric field in the closure box with aperture and using probe to achieve that. But I have a problem. When I use the probe for measurement, results are not accurate in transient solver. So, I changed the settings in the transient solver > Specials and I use the program with high number of pulses opt... |
I am taking a course on scientific computation, and we just went over least squares approximation. My question is specifically about approximating using polynomials. I understand that if you have n+1 data points, you can find a unique polynomial of degree n that describes all of these points. But I can also see why thi... |
I have a stochastic process (a Markov chain actually) that has two absorbing states. I am using a difference equation to calculate the first passage time to either of the absorbing states. There are several parameters in the equation.
For set of parameters, the empirical cumulative distribution function looks like the ... |
I am plotting a saturation field (as the solution of a finite element problem, using trisurf in MATLAB). Ideally, I would like to obtain the two-dimensional profile of this surface along $y=0$. See Figure 4 of this paper for an example. I am not really familiar with MATLAB's plotting routines but I noticed there's a fe... |
I searched for Gilbert-Peierls algorithm, but I haven't found anything useful (well, I found this, but it's not working as it should). I think the problem is the second part, and also that those lines:
U(1:k, k) = x(1:k);
L(k:N, k) = x(k:N)/U(k, k);
should actually be (according to this example):
U(1:N, k) = x(1:N);
L... |
I asked a similar question on physics.stackexchange, being ignorant about this website.
I am basically looking for an efficient way to implement gravitational fields.
I have a huge 2D space, with thousands of objects in it. I then need to simulate how these objects are effected by each other's gravity.
I thought it'... |
double trap(double func(double), double b, double a, double N) {
double j;
double s;
double h = (b-a)/(N-1.0); //Width of trapezia
double func1 = func(a);
double func2;
for (s=0,j=a;j<b;j+=h){
func2 = func(j+h);
s = s + 0.5*(func1+func2)*h;
func1 = func2;
}
return s;
}
The above is my C+... |
Suppose I have a box $D \subset \Bbb{R}^2$ (compact set). Denote $\mathcal{P}= \{ (\Omega_1,...,\Omega_n) : \bigcup_{i=1}^n \Omega_i = D,\ \Omega_i \cap \Omega_j =\emptyset\}$ the family of partitions of $D$ into open sets (the sets can overlap on their boundaries...)
Consider a functional $F$ defined on the subsets of... |
The number 1 response to this question was great.
Is algorithmic analysis by flop-counting obsolete?
Now, the only problem is that I don't really understand it. Here's my example of why it's not clear to me. Please let me know what I'm doing wrong.
Applying the above analysis to the FFT:
Say I want to compute the fft ... |
How can a sparse matrix - matrix product be calculated? I know the 'classic' / mathematical way of doing it, but it seems pretty inefficient.
I thought about storing the first matrix in CSR form and the second one in CSC form, so since the row and column vectors are sorted I won't have to search for a specific row / c... |
I would like to numerically solve an equation of a type as shown below. Does anyone of you have an idea how to approach such a problem? Any links to literature or for further reading would be greatly appreciated.
Thank you!
I search a function $f(\vec{x})$ with $f \in \mathbb{R}$ and $\vec{x} \in \mathbb{R}^n$, where ... |
I am trying to compute $x^2$ where $x$ is a double precision floating point number. I need conservative rounding, which means I need $x \cdot x$ rounded up and $x \cdot x$ rounded down. If the rounding mode is set to FE_UPWARDS, the code is
double lo = -(x * -x);
double hi = x * x;
However, this does not work for m... |
Given a plane in 3D Euclidean space is $\pi$: $ax+by+cz+d=0$
and a point $P$:$(X,Y,Z)\in \mathbb{R}^3$.
Find a point $Q:(X^*,Y^*,Z^*)\in \pi$ such that:
$$Q= \arg\min\limits_{Q^*\in\pi}\left\|P-Q\right\|$$
Is it difficult to find the closed form solution to $Q$?
|
I had a general query related to calculation of stiffness ratio evolution for a set of coupled odes over a certain time interval. My question is, while calculating the eigen values from the jacobian matrix do we need to know the exact solution at the different time points or can we use solutions approximated by an inte... |
In times of parallel computing, it seems to me that algorithms (also basic ones, like matrix-vector multiplication) should be measured by their dependent steps (that use results from steps before) rather than in total number of Floating Point Operations.
For example, disregarding memory access, matrix-vector multiplica... |
I'm going to ask some beginners' questions.
Adaptive mesh can save many DOFs than a uniform mesh. But it also needs to solve linear systems changing with mesh adaptive process. Is this not problem?
Now suppose we are going to solve the problem a lot of times with different multiple source/boundary/initial data. What t... |
I'm in the middle of installing GPAW on a cluster but I'm running into problems building the "gpaw-python" interpreter, its job is to allow users to execute parallelised GPAW calculations. Following the Developer Installation guide here, I've downloaded the most recent stable package and got it working fully on my loca... |
I am trying to solve the following set of equations using a finite-difference approach and an iterative solver (Gauss-Seidel).
Continuity Equation:
$\frac{\partial V_x}{\partial x} + \frac{\partial V_y}{\partial y} = 0$
Simplified Stokes-Equation:
$ \eta (\frac{\partial^2 V_x}{\partial x^2} + \frac{\partial^2 V_x}{\pa... |
I am trying to solve a system of coupled ODEs:
$$
\begin{align}
\frac{dn_A}{dt} & = e\left[j(t) - f\, θ_H\sinh\left(\frac{g\,n_A}{T}\right)\right] \\
\frac{dθ_H}{dt} & = a\left[bP\,(1 - θ_H )^2 - c~(θ_H)^2 - f\,θ_H\,\sinh\left(\frac{g\,n_A}{T}\right)\right] \\
\frac{dP}{dt} & =h(i - P) + d\,T\,(P-P_a)\lef... |
Given a triangular plane formed by three points in R3 space {p1, p2, p3}, I want to iterate through all points on the triangle plane by using two variables, x0,y0, something like in this example: http://demonstrations.wolfram.com/DirectionalDerivativesIn3D/ The example in that website uses directional derivatives.
If ... |
Brief explanation of QM geometry optimization
Quantum mechanics packages are often tasked with optimizing a chemical structure. The problem is essentially this: Given a set of points in 3D space and potentials that are strongly correlated with chemical structure (bond lengths, bond angles, torsion angles), minimize the... |
I want to understand how the RATTLE algorithm works.
Can somebody give me an example (in pseudocode or using any programming language like python or matlab) of how would I implement a numerical integrator for the simple pendulum problem?
|
I have an array of 2D points and a known curve geometry (it consists of a straight line segment and a circle segment). The points might rotate slightly and are somewhat noisy. I need to find points in array, which correspond to that curve. I have a feeling, that it should be a pretty common task in image processing, wh... |
I am trying to understand why the amplitude of the FFT (computed with numpy) of a Gaussian differs from its analytic solution.
The $\mathcal{F}\{e^{-\pi t^2}\} = e^{-\pi f^2}$. However if I calculate it with
the FFT function in numpy the resulting Gaussian's amplitude is not 1?
I have already done the following:
I do ... |
In stepwise regression, you step predictor by predictor, each time selecting the one with the greatest correlation with the measurement, subtracting greedily to leave a residual with no correlation to any of the previous predictors.
Why go stepwise? Why not just pick the predictors with best correlation to the measurem... |
I need a hand with the numerical evaluation, in Mathematica, for this integral:
$$f(t)=\int_{-\infty}^\infty Exp\{it(\omega_H-\omega_l-\omega_k) - \sum _{j\neq(l,k)} S_j [1-e^{-it\omega_j}]\}\, dt$$
This is the plot of the real and imaginary part:
And this are the values for the parameters of $f(t)$ employed in the gr... |
I have the following LP problem:
$$
\min \limits_{\varepsilon, x_{1}, \ldots, x_{n}}f(\varepsilon, x_{1}, \ldots, x_{n}) = \varepsilon \;\;\;\;\; \mathrm{s.t.} \;\;C x \geq 0, \;\; x_{i}^{0} - \varepsilon \leq x_{i} \leq x_{i}^{0} + \varepsilon
$$
where $C$ is $m \times n$ matrix, and $x$ and $x^{0}$ are vectors of dim... |
I'm teaching myself this regression stuff, so forgive me if this is a basic question. I can't seem to find a discussion of my particular problem.
So I'm least-squares-ing this overdetermined system $\textbf{Ax}=\textbf{b}$, and I'm interested in minimizing $||\textbf{x}||_1$.
Problem is, my $\textbf{A}^T\textbf{A}$ is ... |
I'm attempting to implement the Weiss and Smith preconditioner in an existing finite volume code and I am struggling with the idea of dual time stepping. My inner time steps are predictor-corrector, second order explicit with local time step acceleration. The time step is based on the stable CFL number based on the con... |
When one want to compute numerical derivatives, the method presented by Bengt Fornberg here (and reported here) is very convenient (both precise and simple to implement). As the original paper date from 1988, I would like to know whether there is a better alternative today (as (or almost as) simple and more precise) ? ... |
To compute the evolution of a free surface between two incompressible, immiscible liquids, two tightly coupled equations have to be solved, the volume fraction advection and the Navier-Stokes equations:
$$\frac{\partial\alpha}{\partial t}=\nabla \cdot (U\alpha)$$
$$\frac{\partial \rho U}{\partial t} + \nabla \cdot (\rh... |
In Jacobi method's Wikipedia article there's a section that describes Weighted Jacobi method: http://en.wikipedia.org/wiki/Jacobi_method#Weighted_Jacobi_method.
I need to implement the Weighted version of Gauss-Seidel but I can't find any references of the algorithm.
Can you provide some information about it?
|
I am trying to solve the 2D convection-diffusion equation, which in non-dimensional variables can be expressed for my problem as:
$\frac{\partial c}{\partial t} = \lambda^2\frac{\partial^2c}{\partial x^2} + \frac{\partial^2c}{\partial y^2} - 6\, Pe\, y (1 - y)\frac{\partial c}{\partial x}$
Here, $\lambda$ is a geometri... |
In short, I'm looking for either:
(1) Publications or other sources dealing with contour/isosurface finding algorithms, so that I can write my own implementation (and parallelize as best I can), or
(2) Suggestions about high-level libraries in Fortran, C/C++, or other languages, that may be useful for finding such su... |
I have implemented a simple logistic regression function with IRLS algorithm using the armadillo linear algebra libray
#include <iostream>
#include <string>
#include <boost/math/distributions/normal.hpp>
#include <boost/math/distributions/students_t.hpp>
#include <armadillo>
#include <cmath>
using namespace boost::mat... |
On a recommendation from Mathematica.SE, I am posting this on Computational Science.SE:
I am trying to quantify stiffness of an ODE by relating it to the fine-ness with which NDSolve treats it's time step.
BACKGROUND
For the uninitiated:
Essentially, when an ordinary differential equation is stiff and we attempt to so... |
I want to integrate a particle path in 2D using the integrate.ode module. Things that are a bit different in my case are that, I only want to integrate up to a certain position, determined by the maximum allowed x coordinate of the particle: x_max.
The main issue I have is that the particle may first move very slowly a... |
In the solution of sequences of linear systems
$$A_ix_i=b_i\quad\text{for}\quad i=1,2,\dots$$
with Krylov subspace methods, data can be recycled from already solved linear systems in order to speed up the computation of subsequent linear systems (complementary to preconditioning). For the analysis of recycling strategi... |
Gaussian09 prints coordinates where the local coordinate system as center at
$C = (\Sigma n_i*X_i)/(\Sigma n_i)$
where $n_i$ is the Mass Numer of the atom. However, the Mass Number is not actually the mass of the nucleus. If we instead choose $m_i$, the true mass of each atom, as the weighting factor, we do not get the... |
I'm looking for a specific type of Delaunay tessellation algorithm.
The algorithm should be:
incremental so that I can add new sites inside known simplexes (i.e. no searching for the right simplex is necessary)
usable with a high number of dimensions (100 or more)
usable with a high number of sites (10000 or more)
(... |
I'm asking about the solution of the Helmholtz equation on a periodic domain with piecewise constant wavespeed in different frequency regimes. One possible approach is to solving this problem is to write down integral equations on the boundary surfaces in terms of the Green's function of the system. Since the domain is... |
I am looking for a C++ tensor library that supports dimension-agnostic code. Specifically, I need to perform operations along each dimension (up to 3), e.g. calculating a weighted sum. The dimensions is a template parameter (and thus a compile-time constant). Another constraint is that the library should be relatively ... |
Every CPU vendor seems to make BLAS libraries that are specialized to run on their hardware. Do they do the same for LAPACK? Or is that a non-issue because LAPACK is written entirely in terms of BLAS library calls?
|
I have a dense Hermitian matrix that is approximately unitary, so it has eigenvalues that are $\sim \pm1$. I would like to compute all the eigenvectors corresponding to the $+1$ eigenvalue (not necessarily a small fraction of the total number of eigenvalues). Is there some more efficient way to accomplish this than tri... |
I am a novice at PETSC, and I have been trying to write an FVM code for steady heat conduction in 2D using PETSC (square, regular grid, Dirichlet boundaries)
Since the large matrix , say A, will be sparse I declare 5 non-zeros per row and use MatCreateSeqAIJ()
My question is about assembling the entries of the matri... |
My question is about implementation alone.
Consider a square domain with regular square, cell centred finite
volumes. This is for the multiscale finite volume method (Jenny and Lunati)
I need to solve the Poisson equation on each cell of the "dual mesh", i.e.,
the mesh constructed by joining centroids of each cell. ... |
I'm looking for a way to optimize this procedure. This is the problem:
I have a list of bit vectors $\mathbf{A} = [ a_1, a_2, a_3, ..., a_n ]$
I have a list of bit vectors $\mathbf{B} = [ b_1, b_2, b_3, ..., b_m ]$
For every $b \in \mathbf{B}$, I need to find the following minimum hamming distance:
$$\min \left\{ \fo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.