instruction stringlengths 43 28.1k |
|---|
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... |
I tried to research what exactly is a SOLVER only to find a not clear-cut simple answer. My doubts still remain after going through several sites full of discussions about it.
I need to clarify as to whether it is a software product, or is it an open-source tool, or is it a commercial software package? Or is it like a ... |
Assuming that a program is written in either C, C++, Fortran or python, what do you think is the best format for the input file given that users could be relatively diverse, i.e. not familiar with the source code? My current interest is a thermodynanic property tool but the discussion could be more general. Here is wha... |
I need to find the minimum of a function (a log-likelihood from a Potts model) in tens of thousands of dimensions. The function evaluation is quite fast, takes about $10^{-3} s$, and there is a gradient available (not implemented yet, though, but I expect similar timings). The hessian can be computed analytically, but ... |
The Brinkman equations for steady flow of an incompressible fluid through rigid porous solid are:
$-\dfrac{\mu_0}{k}\mathbf{v} - \mathrm{grad}p + \mu_0 \Delta \mathbf{v} =0$
and $\mathrm{div}(\mathbf{v}) = 0$ in $\Omega$
where $k > 0$ is the permeability of the solid, $\mu_0 >0$ is the viscosity of the fluid, and $p,\m... |
Consider the elliptic PDE
$ -\mathrm{div}(k(x)\nabla u) = f(x) \in \Omega$
and
$u = 0$ on $\partial \Omega$
If $k(x)$ is piecewise constant across an interface $\Gamma$ in the domain, then we have the jump condition
$k(x)\nabla u\cdot \mathbf{n}|_{\Gamma+} = k(x)\nabla u \cdot \mathbf{n}|_{\Gamma-}$ where $\mathbf{n}... |
I have a 2-D mesh of triangles and I have a scalar function $f(x,y)$ defined at all the vertices of this mesh.
I want to accurately estimate the values of $\frac{\partial f}{\partial x}$ and $\frac{\partial f}{\partial y}$.
I am aware how to do this when dealing with finite difference methods on the standard orthogona... |
For activation function in neural network, I have used the function
$$\frac{1}{2}(\sin x +1) \enspace .$$
But this will give me the value of either 1 or 0, allowing me to classify only 2 classes. What if I want to classify more than 2 clusters of data, then what activation function should I use?
|
First I would like to say that I have searched the for uncertain fitting, robust fitting, linear optimization, convex optimization, etc. But I'm lacking the knowledge to solve this problem, and I need your help.
I have a function gnom(x) = sin(x)*cos(x) and an uncertain part dg(x) = alpha*sin(8x)
and g(x) = gnom(x) + d... |
Consider the mixed formulation of the Poisson/Darcy system for a region $\Omega$:
$\alpha \mathbf{v} + \nabla p = f \\
\mathrm{div}[\mathbf{v}] = 0 $
with the boundary conditions
$\mathbf{v}\cdot \mathbf{n} = v_n$ on $\Gamma_v$,
$p = p_0$ on $\Gamma_p$
For the weak form:
$a(\mathbf{v}, \mathbf{w}) := \int_\Omega \... |
I've heard that classical Gram-Schmidt is more amenable to parallelization than modified Gram-Schmidt; apparently the reason has something to do with "level 2 BLAS", which I'm not familiar with. Also, in a comment on this question, @Jed Brown talks about left-looking and right-looking Gram-Schmidt, which I haven't fou... |
Consider the Darcy equation,
$$\mathbf{v} + \dfrac{k}{\mu_0}\nabla p = \mathbf{f} \\ \mathrm{div}\; \mathbf{v} = 0$$
If the coefficient $k$ is piecewise constant across an interface $\Gamma$ in the domain, we have that
(1) $$\mathrm{jump}(k \cdot p\mathbf{n}) = 0 \rightarrow \mathrm{jump}(k\cdot p) =0 $$ over the in... |
I have the program four1.c from Numerical Recipes in C to calculate the Discrete Fourier Transform (DFT) of a one dimensional array. I want to calculate the DFT of a two dimensional array using four1.c, how can I do it?
|
I am looking for the algorithm of Patankar (for example, SIMPLE, SIMPLER, SIMPLEC and PISO) written in Fortran for the simulation of heat transfer and fluid flow.
|
I currently have a functioning and blazing fast model written in C++ and CUDA. However, I'd like to use Scipy.minimize to fit the model to some experimental data. I was hoping it would be easy, but when I try to describe my problem to Google, it keeps telling me that I want to extend Python with C++, the documentatio... |
In Matlab R2013a I have implemented the Implicit Euler (time) integration scheme. To find the $x^{n+1}$ value I use fixed point iterations:
$x^{n+1} = \Delta t f(x^{n+1}) + x^n$
To test this, I use an undamped mass-spring system, which should give a simple harmonic as result. However, I seem to loose a considerable amo... |
I want to solve this equation
$$
-\frac{1}{2}f''(x)+2a\ f(x)^3 = f(x)\mu
$$
One exact solution (there are a lot of different kinds) of this equation is $f(x) = f_\infty \tanh(\sqrt{2a}f_\infty x) $ (where $2a f_\infty^2=\mu$ ) but I want to plot an approximation of it.
I use the finite difference method to write the de... |
I am writing a program that creates a vtk file with a Rectilinear Grid. I am able to save data to each one of the cells using CELL_DATA, but now, I need to save data to each one of the cell faces (x6). How do I do that? Will I will be able visualize it in ParaView?
EDIT: In the VTK file format, if one create a 3d recti... |
I recently had trouble producing a proper streamline plot in Mathematica, and apparently the problem is a good bit harder than I appreciated. I would like to know if there exist general algorithms to produce streamline plots which deal appropriately with line spacings and terminations.
Let me make the problem specific.... |
I am working on an eigenvalue problem in fortran. I have used Lapack to solve the problem and get the eigenvalues and eigenvectors. This is done for $201\times101$ wavenumbers, only half the wavespace due to symmetry, and for each grid-point in a large domain(in the ocean). I am searching for the maximum eigenvalue for... |
Lets assume I have a iterative linear system solver, e. g. this one.
Whats the typical approach on verifying and testing this kind of solvers? Is there a standard test set of linear systems one could use to verify the above BiCGStab-Implementation and if not, how would one create such test data?
|
Is there an analog of perfectly matched layers for finite element methods? References or small examples are much appreciated.
|
I'm currently searching for an elaborate referece that covers most of the approximation errors for elliptic second order problems (like, for the laplacian dirichlet problem) by using finite element methods in 2D and 3D.
For example in 2D, you can receive an optimal error estimate:
$$ \| u - R_hu \|_{H^1} = \mathcal{O}... |
I would like to get to know more in details about Lax-Richtmyer stability analysis (esp in examples), but I didn't manage to find anything except a definition. Could you advice any sources for this subject?
|
How can I calculate the machine epsilon for two numbers then calculate the theoretical limit for machine epsilon in Matlab ?
|
I want to check numerically if a certain vector relation like
$$ \alpha_1v_1+...+\alpha_kv_k=c \ (1)$$
holds (where $v_i,c$ are vectors of $100$ or more components). For this, I use least squares approximation, and to see the error, I evaluate the norm of the difference
$$ \|\alpha_1v_1+...+\alpha_kv_k-c\|.$$
All $v_i... |
Do anyone know what is the algorithm that MATLAB used in its built-in function "pca"?
I have the following data set:
148.9820 55.8438 210.2150
149.3030 56.8891 208.4280
151.4400 55.8180 208.9240
146.5530 55.9677 211.5800
146.5770 57.2682 209.3680
145.5330 58.4735 207.6970
153.9680 55.8386 207.9600... |
I want to solve
$$
\frac{\partial^2}{\partial t^2}u(z,t) + a\frac{\partial^2}{\partial z^2}u(z,t) + k\frac{\partial^4}{\partial z^4}u(z,t) = 0
$$
with $u(z,0) = 1+0.1e^{-\frac{z^2}{2}}$. I'd like to study the dynamic of the wave.
What is the simplest way to do it?
I tried with the finite difference method but my solut... |
What is the state of the art for fastest linear solver for sparse, positive semi definite and strictly diagonally dominant matrix with N varies from ~700 to ~3000, and about a 1/16 of the matrix is non zero values?
(an existing library is preferred over an algorithm - C/C++).
Thanks.
|
I need to find a numerical solution for $-\Delta U = f$, on the $\Omega = [0,1]^2$, with $ U|_{\partial \Omega} = 0$.
I found a method: POISSONFD in NMLibforOctave
with signature: [U,X,Y]=POISSONFD(A,C,B,D,NX,NY,FUN,BOUND),
but I can't understand how I can specify bound. Something like:
BOUND = inline('x * y * (y - 1)... |
I have to compute the accuracy of a new Gaussian mixture fitting algorithm. One of the tests include computing the probabilities in certain intervals in a 6D hyperspace. Also, the integral of the square of the difference between PDF has to be evaluated. But problem is, Matlab doesn't have library functions that handle ... |
I am facing the following problem. I know nonlinear least squares can provide a solution but I am wondering if a linear way to solve this data fitting problem may exists.
This is my input dataset:
I've got three different dataset composed of scattered points
I know a linear equation in the form
$$
y(x) = bx^2 + cx
$$... |
Is there a general approach to finding self-similar solutions; i.e. collapsing several functions onto a single function by some transformation?
I have data from some experiments, and the functions generated clearly appear to have some kind of self-similar solution. They are the result of varying a small number (4) of d... |
I have a system of equations of the form:
$$ l_i^T l_j \cdot m_i^T m_j - m_i^T R l_j \cdot l_i R^T m_j = 0$$
where $R \in \mathbb{R}^{3\times3}$ is an unknown rotation matrix.
$l_i, l_j, m_i, m_j \in \mathbb{R}^{3}$ are known vectors.
The equation can also be rewritten:
$ r^T Q r = 0 $ where
$ r \in \mathbb{R}^9 $
is ... |
I am having issues understanding why different languages are producing different answers for the Schur(QZ) decomposition. I am working on writing some old stuff from Matlab into Julia and Python and am running into some issues with differences between Matlab's qz, Julia's schurfact, and Scipy's qz (Julia and Scipy agr... |
I'm trying to solve a PDE in Python of the form,
$\dfrac{\partial c(\mathbf{x}, t)}{\partial t} = \mathrm{D} \nabla^2 c(\mathbf{x}, t) -\gamma \rho(\mathbf{x}, t) c(\mathbf{x}, t)$
where $c$ represents the concentration of a chemical, $\mathrm{D}$ and $\gamma$ are constants, and $\rho$ represents the density field of s... |
I'm looking to find the most efficient way to change integers from a random number generator to a different inclusive number range.
I know of 2 ways so far:
Change the number into a decimal in the range of [0,1) and multiply it by the difference between the minimum and maximum values* in the new range.
Find the remain... |
I come from a computer graphics background without any professional in computational science. But I find my job(game engine development) being related to this field. May I ask some general questions about computational science?
Last year, we made a product for deformable object(such as hair, cloth, etc.) simulation.
It... |
I'm student of computer science (BS) and considering computational science as the field to major in for MS program.
I have two questions which might look silly but I'm really confused:
1- Are Scientific Computing and Computational Science fields the same?. In Iran we just have Scientific Computing as an MS program in c... |
Although there are similar questions, I am also struggling with the implementation of the following term in "my own code" by Finite Element Method, namely, $\nabla \phi \cdot \nabla \phi$. $\phi$ is a state variable such as scalar potential. I think the descritization of this term is much more difficult than that of a... |
During my wandering in Mathematica.se, I gradually noticed that a certain kind of differential equation solving problem is "troubling" us all the time, that is, the boundary value problem (BVP) of nonlinear ordinary differential equations (ODEs).
The shooting method, which is used by the Mathematica function NDSolve, ... |
I was wondering if anyone has any experience dealing with boundaries when implementing chebyshev differentiation.
I am currently trying to implement a no slip boundary condition to solve the incompressible Navier Stokes equations in 3D, in order to ensure that flow is zero at the boundaries is it really just as simple... |
My data set is a 60x10 matrix. I performed principal component analysis of this matrix with matlab using the princomp(AdjustedData) after I adjusting my original data set by subtracting the mean of each column. Because I was hoping to obtain a data set described by the top five principal components, I selected the top ... |
I have a RKF45 numerical integrator that simulates polymerization of proteins using CUDA. It does so by tracking the populations of discrete length polymers, e.g. monomers, dimers, trimers, etc. all the way up to 8192-mers using the equations of the type that follow.
$$\frac{dc_r}{dt}= k_nc_r^{n_c}+2k_a(c_{r-1}-c_r) +... |
When writing MPI 3.0 code, should I pass argc and argv to the MPI_Init call or not, and why?
EDIT: Since Bill Barth's answer raised some questions I want to make some remarks:
Passing argc/argv is not required since MPI 1.1.
The question is specifically about why should/shouldn't one pass argc/argv (why shouldn't you ... |
Introduction
Let me first state some conflicting assertions of the matter to illustrate what are the issues.
Personally I would like to have my code open at every stage of development, since
others shall see and take advantage of what I am doing
I also like to reuse existing code
third parties can contribute
the pu... |
I created this Python function to generate a sigmoid function where I can modify position and width:
import numpy as np
import matplotlib.pyplot as plt
def sigmoid(x,a,b):
# sigmoid function with parameters a = center; b = width
return 1/(1+np.exp(-(x-a)/b))
For example changing the parameter b I can make it wider o... |
I am trying to write an algebraic multi-grid solver (in c++). At a given level I determine which nodes are c-points and which nodes are f-points (where the total number of c and f points equals the matrix dimension on that level). Therefore I need two arrays: one array to hold the indices of the c-points, and one array... |
I am currently trying to solve the 3D Poisson equation with a Chebyshev discretisation in the $z$ direction (from -1 to 1) and Fourier in the $x$ and $y$ (from $-\pi$ to $\pi$)
I have taken the code into a point where I think it is working but am not totally sure it is outputting the correct result. Does anyone know of... |
How can I test whether a given 1D root-finding procedure is robust? I know that there are data sets and resources online for different kinds of optimization, but I have yet to find anything with regard to 1D root-finding. Do you happen to know of any data sets or functions that are commonly used to test the robustness ... |
I am looking to solve the incompressible Navier-Stokes equations in 3D, using an inflow boundary condition specifying a velocity:
$\mathbf{u} = \mathbf{g}_0 \,\, \forall \,\, \mathbf{x} \in \Gamma_u$
and I want to use a Neumann type boundary condition where I specify pressure at the outlet
$-p\mathbf{I} + \tau = p_0\m... |
My question is related, but not a duplicate of Asymptotic convergence of the solution to a parabolic pde to the solution of an elliptic pde
Suppose I solve the parabolic PDE:
$u_t = \Delta u + f(x,t)$ on $\Omega \times(0,T]$
$\nabla u(x,t) \cdot n = 0 $ on $\partial\Omega$
$u(x,0) = g(x)$ on $\Omega$
and obtain the (un... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.