Most Popular

1500 questions
16
votes
3 answers

Is variable scaling essential when solving some PDE problems numerically?

In semiconductor simulation, it is common that the equations are scaled so they have normalised values. For example, in extreme cases electron density in semiconductors can vary over 18 order of magnitude, and electric field can change shapely, over…
boyfarrell
  • 5,409
  • 3
  • 35
  • 67
16
votes
3 answers

What is the fastest way to compute all eigenvalues of a very big and sparse adjacency matrix in python?

I'm trying to figure out if there is a faster way to compute all the eigenvalues and eigenvectors of a very big and sparse adjacency matrix than using scipy.sparse.linalg.eigsh As far as I know, this methods only uses the sparseness and symmetry…
Noam Peled
  • 263
  • 1
  • 2
  • 7
16
votes
1 answer

Why does SciPy eigsh() produce erroneous eigenvalues in case of harmonic oscillator?

I'm developing some larger code to perform eigenvalue computations of huge sparse matrices, in the context of computational physics. I test my routines against the simple harmonic oscillator in one dimension, since the eigenvalues are well known…
seb
  • 994
  • 1
  • 9
  • 22
16
votes
3 answers

Python OSS alternatives for Matlab Neural Network Toolbox. Any intercomparisons?

I'd like to be independent of commercial software for my scientific work. I find a dependence an commercial packages such as Matlab and its toolboxes unsatisfactory, because I do not know if I will have access to Matlab in the future, and because I…
gerrit
  • 260
  • 2
  • 10
16
votes
3 answers

multigrid method to solve PDE

I need simple explanation of the Multigrid Method or some literature about this. I am familiar with iterational methods including BiCGStab,CG,GS,Jacobi and preconditioning, but I am a beginner with multigrid method. Can someone explain this in…
Nurlan
  • 373
  • 2
  • 12
16
votes
4 answers

uniform vs. non-uniform grid

It is probably a student level question but I can't exactly make it cleat to myself. Why is it more accurate to use non-uniform grids in the numerical methods? I am thinking in the context of some finite-difference method for the PDE of the form…
Kamil
  • 1,206
  • 11
  • 23
16
votes
7 answers

Does Computational Science involve programming?

I read about computational science on Wikipedia, but my understanding is not very clear. Does computational science involve programming? How different is computational science from computational _____, where the blank could be any discipline…
Sheryl
  • 169
  • 4
16
votes
2 answers

Estimation of condition numbers for very large matrices

Which approaches are used in practice for estimating the condition number of large sparse matrices?
Allan P. Engsig-Karup
  • 3,226
  • 19
  • 31
16
votes
2 answers

Open source implementation of rational approximation to a function

I am looking for some open source implementation (any of Python, C, C++, Fortran is fine) of rational approximation to a function. Something along the article [1]. I give it a function and it gives me back two polynomials, whose ratio is the…
Ondřej Čertík
  • 2,930
  • 18
  • 40
16
votes
1 answer

How can I estimate the condition number of a large sparse matrix using PETSc?

I have a PETSc Mat and would like to estimate its condition number.
Jed Brown
  • 25,650
  • 3
  • 72
  • 130
16
votes
3 answers

Numerical methods for discontinuous r.s. ODEs

what are state of art methods for numerical solution of ODEs with discontinuous right side? I'm mostly interested piecewise-smooth right side functions, e.g. sign. I'm trying to solve the equation of a following type: \begin{align*} \dot x &=…
16
votes
2 answers

Boost::mpi or C MPI for high performance scientific applications?

The thing I dislike most about MPI is dealing with datatypes (i.e. data maps/masks) because they don't fit that nicely with object oriented C++. boost::mpi only supports MPI 1.1, however, from their website: boost::mpi is a C++ friendly interface…
gnzlbg
  • 1,075
  • 10
  • 18
16
votes
6 answers

Example of a continuous function that is difficult to approximate with polynomials

For teaching purposes I'd need a continuous function of a single variable that is "difficult" to approximate with polynomials, i.e. one would need very high powers in a power series to "fit" this function well. I intend to show my students the…
András Aszódi
  • 321
  • 1
  • 10
16
votes
2 answers

What is counterpoise correction?

What is counterpoise correction exactly ? Can you explain when it is needed and why ?
Stefano Borini
  • 1,599
  • 3
  • 16
  • 20
16
votes
3 answers

How should I study creating and programming HPC systems?

I'm in a field that doesn't necessarily do a great deal of HPC work, and when it does encounter it, it's often the result of researchers from other fields exploring new applications to their methods and the like. Primarily what this means is that it…
Fomite
  • 2,383
  • 1
  • 18
  • 25