instruction stringlengths 43 28.1k |
|---|
I am currently working on a project of building a simulator. Up till now I have mostly played around with very simple examples, but with regards to the future I have been thinking that it might be a good idea to use an external library for numerical computations, especially since I might also want to look into the poss... |
given a symmetric matrix $Y \in \mathbb{R}^{n \times n}$, and an arbitrary matrix $X \in \mathbb{R}^{n \times n}$, and a vector $v \in \mathbb{R}^{n \times 1}$, is it possible to compute the following expression in $O(n^2)$ time?
$$diag(X^TYX) \cdot v$$
where $diag(X)$ returns a $n \times n$ matrix with its main diagon... |
I am reading the book "Numerical Recipes in Fortran 77: The Art of Scientific Computing" (Second Edition) and I came across some methods for numerical integration of 1D functions. More specifically the Gauss-Laguerre, Gauss Hermite, and Gauss Jacobi weights and abscissas appealed to me. I need them because I have some ... |
I have just started learning FEniCS and have used: http://www.scientificpython.net/pyblog/fenics-linear-two-point-bvp to write a script for solving:
u'' + u = 1
u(0) = 1, u'(1) = 0
with exact solution,
u(x) = exp(-x)/ exp(-1) + x + ( -1+exp(-1) )/ exp(-1)
Clearly the weak formulation... |
Comsol Multiphysics (a popular FEM package) includes two time-stepping algorithms (IDA aka BDF, and Generalized-alpha), described in their documentation as follows (quoted here under Fair Use; emphasis mine):
• IDA was created at the Lawrence Livermore National Laboratory (Ref. 4)
and is a modernized implementation ... |
I wrote a Fortran 2003 wrapper for the ARPACK routine znaupd, basically translating the the example driver routine zndrv1 into modern Fortran 2003 language with automatic arrays. I initialize every variable passed to the znaupd routine. Everything works perfect as long as i do not call the method zndrv1 more than once ... |
I'm wondering if anyone can help me understand energy conservation when using conservation law methods (i.e. Riemann solver, High-Resolution Wave-Propagation Methods) with the addition of source terms:
$ \frac{\partial \vec{Q}}{\partial t} + \nabla \cdot \vec{F} = \vec{\psi} $,
where, $\vec{Q}$, and $\vec{F}$ are the c... |
To get the hang of Gauss-Laguerre integration I have decided to calculate the following integral numerically, which can be compared to the known analytical solution:
\begin{align}
\int_0^{\infty} s^3 \exp(-s^2 t) \, \mathrm{d}t = s
\end{align}
The result can be seen in the graph below. The result matches the analytic... |
When evaluating the integral below in python using scipy.quad I get the following warning:
UserWarning: The maximum number of subdivisions (50) has been achieved.
If increasing the limit yields no improvement it is advised to analyze
the integrand in order to determine the difficulties. If the position of a
lo... |
Ok, It was hard to explain my problem in the title. I hope it made enough sense to peak the curiosity of some of you.
What I've been trying to do is find the relationship between the amount of random numbers generated (n) and the probability that an equal amount of odd and even numbers are generated. (n/2 odd and n/2 e... |
I have some function $F(k_x,k_y,k_z)$ that I wish to numerically integrate over a polygon domain - physically, I am integrating over the first Brillouin Zone (BZ) of the FCC lattice (a truncated octahedron).
My goal is to tell Fortran what region of $k$-space and which points to integrate over, given this shape.
I ca... |
I was playing with N-body simulations of a game called Kerbal Space Program, which itself uses the patched conics approximation. I have read that for long term stability it is best to use symplectic integrators and one of the simplest would be Störmer-Verlet method:
$$
\ddot{\vec{x}}_n = F(\vec{x}_n)
$$
$$
\vec{x}_{n+1... |
I bought a book where the exercises are given in Maple worksheet format (.mw). Is there an open-source software in Linux able to interpret or to convert this specific file format ?
|
Suppose we have two matrices $A$ and $B$ (we can assume they're symmetric; if absolutely necessary I think they may be positive definite). Then, is there any technique for solving $$(A\circ B)x=b,$$ where $\circ$ denotes the Hadamard (elementwise) product?
I am seeking a direct solver if possible rather than iterati... |
The most up-to-date performance benchmarks comparison between R and Matlab that I could find are several years out of date: 1 2
Is anyone aware of a more up-to-date comparison?
|
I'm trying to analyze a circuit card assembly (CCA). The biggest problem is always trying to mesh the thin copper layers along with the thicker epoxy layers between. I'm making the approximation that because the copper layers are so thin, and copper's thermal conductivity is so high, the normal-direction temperature ch... |
I'm looking for a method to solve a large overdetermined system of linear equations in a least squares sense. The matrix is dense.
I'd like to use a method that works even with limited memory (we can't load the full matrix in RAM).
The matrix dimensions are something like 10,000,000 by 10,000, where I have a very large... |
I've been reading up on the concept of entropy as a useful way of developing a natural residual for a system of equations. For example, the entropy function for compressible Navier-Stokes is
$$H(U)=-\rho \ln(p\rho^{-\gamma})$$
with entropy flux
$$F^i(U)=-\rho \ln(p\rho^{-\gamma})u_i$$
and for isentropic flow the en... |
Helo, every one. May I ask for help about how to solve this problem.
$\begin{align}
& \text{max}_{x_i} \quad |\sum_{i=1}^{4} a_i x_i | \\
& s.t. \quad \sum_{i=1}^4 x_i^2=1
\end{align}
$
The goal is to find the optimal $x_i$, the $a_i$ is known.
Thank you very much. Anyone can give me some tips?
Best
|
This is a follow-up to a different question I asked with more detail.
For $v\in\mathbb{R}^n$, denote $D_v\in\mathbb{R}^n$ as the diagonal matrix with elements in $v$. Given a "tall" matrix $B\in\mathbb{R}^{n\times m}$, I would like to solve the following optimization problem:
$$\min_{v\in\mathbb{R}^n} \|X-B^\top D_v B... |
I want to solve a non linear system of equations of a particular kind. I find it hard to formulate clearly so I directly give a simple example.
$
f''=A(f,g)\\
g''=B(f,g)
$
with the boundary conditions as follow:
$f'(0)=g'(0)=0$
$f'(\infty)=g'(\infty)=0$
At $x=1$, f is continuous but there is a discontinuity for $g$:
$
... |
I am a Java programmer who has reached the limits of brute computer power. My relational database (and non relational databases) is not producing results quick enough and I have hit a bottleneck in the software so I am turning to math possibly improve my algorithm to my problem. I have data, lots of data! I am collecti... |
How do I ensure that my function below is well conditioned as $s$ approaches $\infty$? The problem I get is that for large $s$ the function returns an indeterminate form $\frac{0}{0}$. I would otherwise have expected the function to increase monotonically from 0 to 1 as $s$ approaches $\infty$.
\begin{align}
f(s) = \... |
The solution to the ode below looks like it is monotonically increasing:
However on closer inspection we see that it is not:
How can I ensure that the numerical solution is monotonically increasing?
import numpy as np
import matplotlib.pyplot as plt
from scipy.integrate import odeint
def f1(theta):
return -1*np... |
I want to analyze buckling in a composite using the FEM. So far I have studied this references
Zdenek P Bazant, Luigi Cedolin. Stability of Structures: Elastic, Inelastic, Fracture and Damage Theories. World Scientific Publishing Company, 2010.
Wsben Byskov. Elementary Continuum Mechanics for Everyone. Springer, 2013... |
I would like to model the 2D diffusion equation with Neumann BC's inside the following egg-shaped domain:
I would like to use the finite difference method with the discretization implied by the image above, but while I can handle the interior points, I don't know how to handle the boundary values. I know how to search... |
I am working on the flow stability problem. In this work the main complication is solving generalized eigenvalue problem for a large scale Non-Hermitian matrix. I need only one eigenvalue (most left on real axis), so I used shift-invert transformation. I used SLEPc library to solve this problem, especially Krylov-Shur ... |
I would like to solve a system of differential equations $u+\nabla(\nabla\cdot u)=f$ or in more detail
$a+\partial_t^2a+\partial_t\partial_xb+\partial_t\partial_yc=f$
$b+\partial_x^2b+\partial_x\partial_ta+\partial_x\partial_yc=g$
$c+\partial_y^2c+\partial_y\partial_tb+\partial_y\partial_xc=h$
with periodic boundary co... |
I am trying to solve Euler equations on unstructured grids. Consequently, the problem reduces to solving Ax=b where A is a sparse matrix. Right know I am using Gauss-Seidel (GS) in a serial manner however, I need a parallel code. Since the grid is unstructured I cannot use red-black GS. Is there a fast parallel solver ... |
I have a large system of ODEs. For various reasons, it is natural to store the values of the dependent variables in a multidimensional array. For example, these values might represent the solution of a PDE at a point in a 2D or 3D grid, after semi-discretization.
The function scipy.integrate.odeint takes a vector (i.... |
This is an attempt to reproduce Moon et al. 1995, and the author's copy can be obtained through here.
As a benchmark, we estimate the time-lagged mutual information of a simple sine signal $\sin(0.02\pi t)$ using Gaussian kernels:
$$K(y)=\dfrac{\exp\left(-\dfrac{(y-y_i)^TS^{-1}(y-y_i)}{2h^2}\right)}{(2\pi)^{d/2}h^d\det... |
The field of computational fluid dynamics (CFD) is dedicated to solving the Navier-Stokes equations (or some simplification of them). A subset of CFD, ocean and atmospheric models numerically solve the same equations for realistic applications. What are the differences and trade-offs between the general CFD approaches ... |
I am looking for a method or algorithm to produce a value that describes how different two meshes are geometrically but that have different topologies.
An example would be some CAD data that has had an FE mesh applied and the part after it has been manufactured and then scanned into a 3d triangulated mesh. The manufac... |
I am using nonlinear optimizers such as BOBYQA to train a model with 10-20 parameters. It so happens that some of the parameters have high correlation.
Roughly speaking, imagine that you are fitting parameters $a,b$ in a function like this:
$f(x)=a\frac{x}{1+|x|}-b\frac{x^2}{1+|x|^2}$
The response to the change in pa... |
There's a vast amount of literature about the numerical solution of partial differential equations. But in none of my books or lectures did I find anything about coupled systems. Internet and library research also did not lead to any introductory material.
Could anyone recommend a textbook or a paper with an introducti... |
I have the following set of linear equations
$$a_{m+1,n}+a_{m-1,n}+m(a_{m,n+1}+a_{m,n-1})+(m^{2}+n^{2})a_{m,n}=f_{m,n}$$
Here $m$ and $n$ run from 1 to $N$, so there are $N^2$ equations for the unknowns $a_{m,n}$. Fixed boundary conditions are used such that $a_{N+1,n}=0$ etc.
I would like to solve this system numerica... |
I have a system of coupled ODEs that I want to solve. The functions are A(x), B(x), C(x). It is a boundary values problem. I am using Matlab bvp4c.
So far I am not satisfied with my solutions. For the boundaries that are of interest for me, the solver fail (Matlab return "a singular Jacobian encountered"). For some oth... |
I might have some non-linear ODEs that are being solved by scipy.integrate.odeint. However, a parameter at each time step might have to be updated by using a non-DE rule, which uses the results of the ODE solver at each timestep, together with the variable along which integration is being performed, in order to update ... |
I am using bvp4c from Matlab to solve a boundary values ODEs problem.
Given the ODEs and boundary conditions, is there any way to have more information on the solutions? How many do I expect? 0, 1, several?
What am I supposed to understand from the bvp4c error message "singular Jacobian encountered"? No solutions at al... |
Please recommend me a well documented C++ library that I could wrap with a mex-interface in Matlab.
The library should have the capability to read meshes (optimal in different formats, at least in AVS-UCD-format). To these meshes some operations should be applied:
Smoothing, subdivision, reduction, translations, scalin... |
I have to choose between the PETSc and Trilinos libraries for a project that involves the solution of non-linear systems of equations.
From their web sites they both mention support for GPUs, without giving many details (e.g. here and here).
I would like to know which of these libraries is better for GPGPU. In part... |
I know the method of constructing solutions. For example I have a BVP:
$$ u_{xx} + u = 0 $$
subjected to:
$$ u_{x}(0) = f_1, $$
$$ u_{x}(1) = f_2 $$
If I want to check the correctness of my numerical implementation, just plug in $u(x) = \sin(x)$ and then $f_1 = \cos(0), f_2 = \cos(1)$ and then run the script for implem... |
So far, I have been using scipy.integrate.odeint as my "workhorse" ODE solver. My current problem requires that I solve a large system (up to ~5000) ODEs.
Here's the general workflow of the odeint program, that I have noticed:
get initial values and function to calculate Jacobian (or RHS) of the ODE system at $t = t_0... |
Currently, my problem requires me to solve a system a large system of non-linear ODEs (up to ~5000). So far, I have been using scipy.integrate.odeint as my workhorse.
A simpler subset of my problem only involves ~50 non-linear ODEs. Solving the system over an interval $[0, 10]$ takes about 3 times longer than solving t... |
Suppose $A=uv^T$ where $u$ and $v$ are non-zero column vectors in $\mathbb{R}^n, n\geq 3$. $\lambda=0$ is an eigenvalue of $A$ since $A$ is not of full rank. $\lambda=v^Tu$ is also an eigenvalue of $A$ since $Au=(uv^T)u=u(v^Tu)=(v^Tu)u$. Here is my questions:
(1) Are there any other eigenvalues of $A$ ?
(2) If I have a... |
I would prefer recommendations that don't require the use of proprietary tools (such as Matlab). I know of two ODE solving options for the Python ecosystem:
PyDSTool (Dopri, Radau, other Runge-Kutta methods, and whatever scipy.integrate.ode has access to)
scipy.integrate (scipy.integrate.odeint uses lsoda from the For... |
I am aware of a few:
a) R project
b) Intel® Ordinary Differential Equations Solver Library
But, I'd like to know which are the best tools that have been developed by professional physicists and mathematicians. The reason I ask is that I'd like to build an ODE solver myself from scratch but I'd like to be aware of the s... |
I'm looking for a library or individual package which provides convenient optimization subroutine for Fortran, any suggestions?
I'm testing the codes from Numerical Recipe, downhill simplex method and direction-set method, but the input-output interface is not convenient for chi-squared function, because we generally n... |
For a linear system
$$
M \dot{u} = Au \qquad \textrm{or} \qquad \dot{u} = L u
$$
The generalized eigenvalue problem is
$$
A e = \lambda M e
$$
We can use the time-stepper approach which essentially computes the eigenvalues of the operator
$$
E = \exp(L T)
$$
If $\mu$ is an eigenvalue of $E$ then it is related to the or... |
I am having trouble implementing a function numerically. It suffers from the fact that at large input values the result is a very large number times a very small number. I am not sure if catastrophic cancellation is the correct term so please correct me if it is. Evidence of something going awry:
How can I avoid the ... |
I have been playing with an implementation of Visscher's explicit method for solving the time dependent Schrodinger equation (Are there simple ways to numerically solve the time-dependent Schödinger equation?)
Presumably if I want to simulate two identical, non-interacting particles I need to duplicate the simulation a... |
This question is a search for further answers from a question on maths.stackexchange.com.
I've inherited some numerical quadrature code that is designed to integrate sparse 2D data. The quadrature is not being done in any of what I would consider the "normal" ways, but seems to be using an ad-hoc method based on Vorono... |
I need to fit a model using MLE with Frank copula by linking two discrete univate distribution function $u = F(x)$ and $v = F(y)$ together, and the joint distribution function is
$$
\Phi(x,y) = C(F(x),G(y))
$$
where
$$
C(u,v) = \frac{1}{\theta} \log\!\left( 1+\frac{(\exp(-\theta u)-1)(\exp(-\theta v)-1)}{\exp(-\theta)-... |
I am working with legacy physical codes and I develop new ones based on the output of them.
They all use their own internal normalization of variables (for example all distances are divided by the physical size of the simulation box) which leads to a mess... The goal, I think, is to have all variables near ~1. On the c... |
I am a complete beginner in computational fluid dynamics. I have a 3D mesh in Blender representing the object I would like to do my tests on. I can export it in (I think) any useful format for 3D. I would like to know where I can start to make this kind of simulation with SU2 CFD:
External flow
Air at standard conditi... |
In the framework of Finite Element Method, when the Newton method is used, we solve $J(x^k) \delta x = -f(x^k)$, and the increment $\delta x$ would not change some entries from $x^k$ related to Dirichlet boundary conditions. So, I was wondering about the needs to impose homogenous dirichlet conditions in the Jacobian m... |
I am doing a nondimensional Navier-Stokes simulation, but it's not exactly clear what values to use for the various gas constants: $R$, $C_v$, and $C_p$. Obviously, once I know one of these and $\gamma$, I can define the others. A colleague of mine is using the formula
$$C_v=\frac{1}{\gamma*(\gamma-1)M_\infty^2}$$
but ... |
I am looking for a fast (dare I say optimal?) explicit solution the 3x3 linear real problem, $\mathbf{A}\mathbf{x} = \mathbf{b}$, $\mathbf{A} \in \mathbf{R}^{3 \times 3}, \mathbf{b} \in \mathbf{R}^{3}$.
Matrix $\mathbf{A}$ is general, but close to the identity matrix with a condition number close to 1. Because $\mat... |
Now that Formulize / Eureqa started charging $2500 a year for using it and having crippled the trial version, does anyone know of any replacements that can do similar things like find an equation given data points?
It was free, but is now out of the price range of anyone that's not a company or school.
(it's a symbolic... |
I have tones of geometrical objects (spheres, meshes) I want to render: One way would be to first write a .rib file which could be certainly done and then push that file to a renderman compliant renderer such as the opensource Aqsis render.
The problem is this .rib file is soooo massive (1-10gb) that I dont think this ... |
Just to be more precise, I'll put a worthy example of my typical use case.
Let's say I'm developing a FEM software that produces several temporal solutions and inserts them in an HDF5 file, along with a bunch of correlated data.
If I use a naive approach to writing integration tests, I could do like this:
Write the co... |
I have a bounded non-convex function in 10-dimensional space. The function is quasi-smooth, you can imagine a histogram, here is an illustration, it just shows the idea and not related to my particular function:
The function value is obtained by time consuming simulation (it takes about 10 seconds). Obviously if I wan... |
I want to compute the expected value of a multivariate function f(x) wrt to dirichlet distribution. My problem is "penta-nomial" (i.e 5 variables) so calculating the explicit form of the expected value seems unreasonable. Is there a way to numerically integrate it? Is there some package (e.g in R) that can let me do th... |
I have to solve 4 coupled first order differential equations for $f(t)$ ,$g(t)$, $h(t)$ and $w(t)$ witch are only functions of $t$ , but for every reference link a function of 3 variables is assumed (i.e http://www.phy.davidson.edu/FacHome/dmb/py200/RungeKuttaMethod.htm)
I wonder if anyone could enlighten me on this pr... |
Given a symmetric positive semi-definite matrix $Q\in\mathbb{R}^{n\times n}$, a vector $v\in\mathbb{R}^n$, a matrix $A\in\mathbb{R}^{m\times n}$ and a vector $b\in \mathbb{R}^m$ I'd like to solve the following optimization problem:
$\min_x x^TQx\ \ \text{s.t.}\ \ Qx=(x^TQx)\, v\ ,\ Ax\ge b$
That is, we have a scaled e... |
I'm newbie both in calculus and Python/Scipy so I apologize if this
question is too dumb.
I'm trying to model flow between two pressure vessels. Let's say we have
two points and a link between them like this
[$Vc_1$, $P_1$]----($A$)----[$Vc_2$, $P_2$]
$Vc_1$, $Vc_2$ are constants volumes of the nodes(vessels) and $P_1$... |
The interested equation is advection-diffusion equation. One of the canonical example is Navier-Stokes equations. However, I would like to let the coefficient of diffusion constant goes to zero, $\epsilon \rightarrow 0$, while mesh sizes, $ \Delta x, \Delta dy \rightarrow 0 $, and time steps,$\Delta t \rightarrow 0$, d... |
I want to minimize function:
$f(x) = x^T \cdot A \cdot x + b \cdot x$
given constraints:
$B \cdot x = 0$.
Here: $x$ is a vector ($x \in \mathbb{R}^n$), $A$ is a matrix of size $n \times n$, $b$ is a vector of size $n$ and $B$ is a matrix of size $k \times n$ (we have $k$ constraints).
Without constraint this problem ... |
I am looking for library written in Python which will enable me to solve the coupled nonlinear equations which looks like:
I need the library which will enable me to couple this solver to other models. For instance, I would like to impose different boundary conditions and change them in time (at any time step) as well... |
I am interested in knowing if there is a generalization of the Uzawa iteration for the linear problems of the form
$$\left[ \begin{array}{ccc}A& B^T&0\\
B&0&C^T\\
0&C&0 \end{array}
\right]\left[\begin{array}{c}x\\ y\\ z\end{array} \right] = \left[\begin{array}{c} f\\ g\\ h
\end{array} \right]$$
Here $A$, is symmetric ... |
I am attempting to solve the following ODE problem:
$$-u''+ u = x$$
$$u(0) = 0$$
$$u'(1) = -u(1)$$
The exact solution is: $u(x) = e^{-x-1} - e^{x-1} + x$
I have a Dirichlet at $x = 0$ and a Robin condition at $x = 1$. I refer to the exact solution with "little" $u$, and the approximate solution with "big" $U_i$, where ... |
Is there a test case for 3D incompressible Navier Stokes Equations like the Taylor vortex in two dimensions?
I know, I can easily construct 3D manufactured solutions but I would like to have something more physical.
|
I am trying to optimize a constrained-problem with a discrete, non-linear objective function. Evaluating this function is also fairly expensive. Nevertheless, despite the above two factors, I hope, that it can still be solved efficiently, since the structure of the constrained parameter space should be helpful.
To be ... |
I hope to get one smooth curve on one triangle mesh. I get one path on the mesh at first. The path consists of vertices of the mesh. I can see the path from the image below.
Each one green dot indicates one vertex on the mesh. The method that I am using is to fit one smooth curve using the vertices and project the smo... |
I came across a puzzling remark in the paper
P. J. van der Houwen, The development of Runge-Kutta methods for partial differential equations, Appl. Num. Math. 20:261, 1996
On lines 8ff on page 264, van der Houwen writes:
"For the Taylor polynomials this implies that the imaginary stability interval is empty for $p = 1... |
I am assuming the pardiso solver calculates (or estimates) the condition number before proceeding to the solution phase.
Is there a way to make pardiso output the condition number?
Alternatively, minimum and maximum eigenvalue are of course also okay.
I can also output the matrix in matrix-market format and do the cal... |
In my (admittedly brief) experience, there have been instances in which the code got uglier because []*[] == [], and it would be possible to write more elegant code if it was defined to be 0 instead.
For an example of such a piece of code, this part is supposed to compute x in L*x=b (L being a lower triangular matrix):... |
I'm having difficulties patching together from what I read about obtaining the condition number of a real, symmetric, positive definite sparse matrix.
In my code, I found that there is incomplete Cholesky factorization routine (used as preconditioner I suppose). I also have a ILU preconditioner which I could use as Wol... |
I am optimizing a function of 10-20 variables by running algorithm such as BOBYQA and a few other derivative-free algorithms. The bad news is that each function evaluation is very expensive, approx 30 min of computation. The good news is that I start in the ballpark of the global minimum, and just a few moves in the "r... |
I am trying to use the MPI share memory feature. I have several SMP nodes, and each of them has four cores. I need an array of size N for each node that should be accessed by all four cores in each node. My plan is to construct a shared window of size N/4 using MPI_Win_allocate_shared, and I expect that memory usage of... |
For a personal project, I am attempting to write a fairly realistic collision simulator (for relatively large objects, not quantum stuff). As I was consulting my physics textbook and various online resources such as this hyperphysics article, or this one, it appears that all methods for determining collision force (or ... |
I'm trying to study with a finite difference method the 2D advection equation with a space-dependant flow.
Taking a function $f(x,y,t)$ solution of the equation :
$$
\partial_t\,f+\nabla(\textbf{v}\,f)=0
$$
where $\textbf{v}$ is known to be divergence free :
$$\textbf{v}=a
\begin{bmatrix}
\,y \\ x
\end{bmatrix}
$$
whe... |
I'ld like to calculate the PV of an integral with the form
$$ \tilde{G}_l(\omega) = -\frac{2\omega}{\pi} PV\int_0^\infty \frac{\tilde{G}_d(\omega^\prime)}{\omega^2 - {\omega^\prime}^2}d\omega^\prime$$
in MATLAB. It is not obvious to me how to do this. I've tried using factorization to change the power in the denomin... |
I don't have access to a computer cluster in my university. Is there website that accepts applications for free access to a computer cluster for scientific computing?
Further information: I am in Cuba. I need something on the order of 30 processors, about 50 GB of hard drive, for a week or so. I need to run programs wr... |
I am a newbie in using LAPACK library. I know that LAPACK's internal rountines break the large problem into smaller problems recursively (I am considering level-3 BLAS). If we consider matrix multiplication C= AB+C example, until what size ( maximum and minimum) we can divide the bigger matrices?
(128 x 128) would be... |
I am optimizing a function of 10-20 variables. The bad news is that each function evaluation is expensive, approx 30 min of serial computation. The good news is that I have a cluster with a few dozen computational nodes at my disposal.
Thus the question: are there optimization algorithms available that would allow me ... |
Could you please advise some literature about the numerical method of lines (MOL) for parabolic PDEs? It is a method of solving PDEs with discretizing only by space but not by time. A system of ODEs is obtained and it can be solved with, for example, Runge-Kutta method.
Do you know some solvers (programs, libraries) fo... |
I often find in the literature some numerical tests use CAD and mesh models. I also want to reproduce their results or test my algorithms on those models. But I am not trained to use CAD or mesh tools. I tried to get cad models from CAD website such as `grabcad'. But I often found it difficult to generate a mesh for a ... |
How to estimate the local error and the global error for Runge-Kutta method used for solve a system of differential equations in practice?
I use Richardson extrapolation for select a adaptive step [Solving Ordinary Differential Equations I - Nonstiff Problems 167-168p].
I seen the following formula for estimate a glob... |
In python I have used the ode method from scipy.integrate. There I used the vodeintegrator and the zvode integrator to solve some numerical odes. I am happy with the solution provided by these methods and would now like to know what the equivalent methods are in matlab.
Im not familiar with the intricacies of odes (st... |
I am experiencing some frustration over the way matlab handles numerical integration vs. Scipy. I observe the following differences in my test code below:
Matlab's version runs on average 24 times faster than my python equivalent!
Matlab's version is able to calculate the integral without warnings, while python return... |
I would like to solve an equation that looks like this
UPDATE
$E[(R^{1-\gamma})(r_k+\theta-r_z)]=0$ , where $R=\phi r_z+(1-\phi)(r_k+\theta)$ and $\phi\in[0,1]$,
$\theta$, is a random variable normaly distributed with zero mean, and some variance $\sigma^2$. Thus, the $E[.]$ stands for the expectation operator over th... |
One of the famous and convenient test cases for shock wave modeling is the 1D Sod's shock tube. This is a Riemann problem for the compressible Euler equations of gas dynamics. The initial set up has been done by dividing domain half with diaphragm. The left and right sides of the domain have initial values chosen to g... |
For differential evolution methods in optimization, how many generations does it typically take to reach a global optimum?
How do we know if the values are never going to converge?
|
I can't see any mention of it in job listings. I've seen mentioned integer programming, MIP, mixed-integer nonlinear programming, LP, dynamic programming etc., but no SDP.
Is it much trendier in the academy than in industry?
From my limited exposure to academics and industry participants in electric power systems, I t... |
Could you please advise some programs or libraries for solving parabolic PDEs (or its systems) in 1D, 2D and 3D, for example, with the method of lines? The system of parabolic PDEs can be nonlinear in the right-hand side, for example, $\partial u/\partial t - a\Delta u + u^4 = 0$.
Or it is recommended to use only ODE s... |
Apologies in advance if this has already been asked before (I suspect it has, but I'm not experienced to know what to call it, or how to classify this problem). Given a set of $m$ points in space,
$$\mathbf{X}=\left(
\begin{array}{cccc}
x_1 & x_2 & \text{...} & x_m \\
y_1 & y_2 & \text{...} & y_m \\
z_1 & z_2 & \tex... |
I am trying to use B spline curve fitting. The order of B-spline curve is 4. When I have many control points, it works well.
However if the number of control points is small such as two, my program will crash. I realize that the number of control points is related to number of knots and the order.
Can anyone help me... |
What is the difference between convergence and asymptotic convergence? Why say the convergence is asymptotic?
|
Is the Crank-Nicolson method appropriate for solving a system of nonlinear parabolic PDEs like $\partial u/\partial t - a\Delta u + u^4 = 0$ ?
I tried to apply this method for solving such system but the solution was oscillating (maybe because of a small value of the coefficient of the time derivative) and the implicit... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.