instruction stringlengths 43 28.1k |
|---|
I am looking at Trefethen and Bau Exercise 37.1:
I have two normalizations of the Legendre polynomials with corresponding recurrence relations:
$$P_n(1)=1$$
which follows
$$P_n(x) = \frac{2n-1}{n} x P_{n-1}(x) -\frac{n-1}{n}P_{n-2}(x)$$
and
$$\|q_n\|=1$$
which follows
$$xq_n(x)=\beta_{n-1}q_{n-1}(x)+\alpha_n q_n(x) + \... |
How can I get Gauss-Lobatto points on a quadrilateral or a triangle in $x$-$y$ plane?
I am only getting abscissa coordinates and weights by solving Lobatto polynomials using Lobatto quadrature. Please suggest a method to get the $x$-$y$ coordinates
|
I have an optimization problem with linear objective, and constraints that are all linear except for one constraint of the form
$S^2+C^2=1$,
which corresponds to elements in a rotation matrix.
What are effective ways to solve this? I have never tried sequential linear programming, but is that appropriate here?
|
I am struggling with convergence criteria when performing a Monte carlo simulation on a uniform distribution. Any help would be much appreciated !
Say I want to sample uniformly a 1D interval (for the sake of simplicity).
I use a random number generator (in Fortran) to draw X values between 0 and 1. Then, how do i choo... |
Let's say we want to solve for the eigen-values of a symmetric matrix of size $n$ x $n$.
In the Phase 1 of the computation, the matrix is reduced to a tridigonal form using Householder/Arnoldi's reduction.The theory says that this is $O(n^3)$.
In the Phase 2 of the computation, this tridigonal form is transformed to a... |
I am trying to solve linear equations in c++ using the Eigen library. For the simple equation Ax=b, I have a sparse matrix A that is n x n, and known values for b which is n x 1, but I need to find the values for x. I tried using
x = A.colPivHouseholderQr().solve(b);
but this solves it for a dense matrix and since ... |
I need to know whether my idea for my final year project could be achieved or not. If its achievable please guide me with the relevant language and other frameworks.
The idea
I have a piece of paper (A4) on which I draw a circle. Once it is drawn I need to calculate the area and perimeter. In order to calculate the are... |
I understand what Neumann BC means physically and how to imply them. However, I am not able to perfectly understand it the way it is represented mathematically as $\partial u / \partial n$ where $n$ is the outward normal vector to the boundary and $u$ is the solution.
I understand that the normal vector is essential f... |
I am working on a task for which the object oriented (OO) approach fits well. I am doing it in MATLAB, since I am in the prototyping phase. However, I know that later I will surely have to perform larger scale computations (my university has a cluster). On method is to use mex functions for the computational heavy part... |
I am trying to model the seismic wave equation and have therefore been reading about discretization schemes and their stability. I recently came across an insightful paper on 'Galerkin FEM methods for wave equation' http://www.math.tamu.edu/~bangerth/publications/2010-waves.pdf. In this document and many other document... |
I have my 3 dimensional velocity flow-field u, v and w at a given instant of time from DNS using pseudo-spectral method. I need to calculate the energy spectrum ( in Fourier space ) as a function of magnitude of wave-number, i.e. $E(k)$ as a function of $k$. The equation for energy spectrum I used is as follows:
$$
E(k... |
I tried to discretize an image into black and white and came into some difficult. The difference between the letters and paper is pretty clear to our eyes:
However a simple thresholding trick doesn't work. Here we move everything below 0.4 intensity to 0 and everything above 0.4 to 1:
Now let's try moving the thres... |
Consider a thermo-mechanical coupled problem, where coupling exists from both the sides, mechanical loading producing thermal effects and vice versa. In such a case, is it necessary to always prescribe a thermal boundary condition along with a mechanical boundary condition on the same boundary for the problem to give v... |
I've been working on this code for some hours and it seems I'm doing something wrong which I just can't figure out. I have a function which I integrate and then plot it's values. But the graph I get looks strange. I expected some form of an exponential function but the one I get is far away from my anticipations, and w... |
If cardinal basis functions are used (i.e. $\psi_{ij}=1$ iff $i=j$, and 0 otherwise) in interior penalty methods for elliptic equations such as SIPG & NIPG, shoudn't the jump in basis functions when computing surface integrals be [$\psi$] = 0 ? If that is the case the second term (consistency term) is always zero, righ... |
When reading literatures about finite element method, the term "hanging nodes" can often be encountered. Could anyone tell me what indeed is a hanging node?
|
When learning the deal.II FE library, I am a bit confused about the mechanism of its "SparsityPattern" class. Through reading the documentation, I only got to know that it uses the Compressed Row Storage format to store indices of nonzero entries of a sparse matrix.
To put my confusion be explicit, suppose I have a qu... |
I have written a code in which I find the approximation of the solution of this elliptic problem.
I calculated the error using the following part of code:
http://pastebin.com/7b5mmuRW
but I get the following errors for $a=-1, b=1, k_1=k_2=1$ :
For N=10: er = 9.9920e-016
For N=20: er = 2.4425e-015
For N=30: er = 7.1054... |
We're currently using a Chirp-Z based implementation:
R. W. Cox and R. Tong, "Two- and three-dimensional image rotation using the FFT," IEEE Trans. Image Processing, vol. 8, no. 9, pp. 1297–1299, Sep. 1999
for rotation of astronomical images. I was wondering if there were any algorithms/implementations out there that... |
I'm tryin' to implement this method with python3 but i don't solve the problem. This is my code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
import sympy
import numpy as np
x = sympy.symbols('x')
expr = x ** 2 - 2
fx = sympy.lambdify(x, expr, 'numpy')
def quad_inv(f, x0, x1, x2, tol, maxiter):
fx0 = f(x0)
f... |
I am looking at the LAPACK DPOSV routine that computes the solution to the real system of linear equations A * X = B. The routine description can be found here:
http://www.math.utah.edu/software/lapack/lapack-d/dposv.html
How many floating point operations (flops) would a call to this routine take? What is the algorith... |
The acoustic wave equation in 2D is
$$\frac{\partial^2}{\partial t^2}p(x,z,t) = c(x,z)^2\left[\frac{\partial^2}{\partial x^2}p(x,z,t) + \frac{\partial^2}{\partial z^2}p(x,z,t)\right] + s(x,z,t) \enspace .$$
Can anyone please give an analytical solution to the above, not worrying about the boundary conditions (assuming ... |
This question was previously posted to Math.SE here and had received no answers at the time of this posting.
When performing computational work, I often come across a univariate function, defined in terms of an integral or differential equation, which I would like to rapidly evaluate (say, millions of times per secon... |
I want to solve approximately the following variational problem:
Given a function $c:[-1,1]^2\rightarrow [0,1]$, constants $p_1...p_n\in \mathbb{R}^+$, $\alpha_1...\alpha_n\in \mathbb{R}$, and $\beta_1...\beta_n\in \mathbb{R}$ let
$$V =\sup_{f_i,g_i}\left\{\sum_{i=1}^n \;\;p_i\cdot \int_0^1\int_0^1 f_i(x,y)\cdot g_i... |
I have a eulerian hydrodynamic code, which I have recently implemented the Coriolis force in the integrator. Is there a standard test problem for the Coriolis force?
Since this isn't a Lagrangian code there is no tracking of fluid particles. Right now I am thinking about periodic boundary conditions and setting the ent... |
I have a system of linear equations that is derived partially from experimental data. Theoretically, the system should have a single, exact solution; however, experimental error causes it to not have an exact solution. Is there a good method to find an approximate solution to this system? My idea for a naive implementa... |
Double-precision calculations are significantly slower or more expensive than single-precision calculations. For example, the NVidia Tesla which performs well on doubles is much more expensive then regular GPU.
At the same time I do not know about machine learning cases where double-precision is really needed. Current... |
I am having problems understanding the boundary conditions of the problem described in this paper on researchgate
Essentially the problem consists of a one dimensional fluid chamber in contact with a piston on the right hand side. The problem makes use of the ALE mesh moving technique. The ALE is moved in such a way th... |
Given a matrix $M\in\mathbb{R}^{P\times P}$ , is it possible to sample $P$ vectors $u_i\in\mathbb{R}^N$, $i=1..P$ so that $\|u_i-u_j\|=M_{ij}$.
Obviously for not any $M$ this is possible, i.e. it has to be symmetric, have zero diagonal, etc., but assume $M$ was created from a different set of vectors which satisfied th... |
This question is not homework it is recommended exercises to prepare for the final exam.
Consider the family of linear one-step methods defined by $$y_n = y_{n-1} + h(\theta f_n + (1 - \theta)f_{n-1})$$ where $0\leq \theta \leq 1$.
2) For what values of $\theta$ in the interval $0\leq \theta \leq 1$ is the associated ... |
I have to invert large, but densely populated matrices with higher precision arithmetic. Therefore I am looking for something like the PLASMA library, which can do Cholesky or LU factorization in parallel on shared memory machines. Unfortunately it does support only classical float or double arithmetic. Therefore I am ... |
The basis of Molecular Dynamics simulation is the integration of newton's equations of motion:
$$\frac{F}{m} = \frac{d^2r}{dt^2}$$
I understand that there are various methods based on Taylor's expansion, to integrate forward in time and calculate the new position. Doing this always leaves an error term in the expansion... |
I need to store large sparse matrices in Eigen. I cannot find anything in the library except the function below, in Eigen/Unsupported. The problem with saveMarket is, that it saves in text format. Due to the size of my matrices I need to store my sparse matrices as binaries. Is there an easy way to adjust the function ... |
I know that FVM is based on the integral form of conservation laws, and FDS is based on PDEs. What I'm confused by, is whether FEM and DGFEM formulations are based on integral or pde form of conservation laws.
I have developed FEM formulations starting from integral form of transport equations but I've also found lite... |
Let $x \in R^N$. From a Spectral Chebyshev collocation method, I have a system of quadratic and linear equations. Denote them,
$$
x^T Q_i x + L_i^T x = 0
$$
and
$$
A x = 0
$$
Furthermore, I know the solution will fulfill
$$
B x \geq 0
$$
for $Q_i \in R^{N \times N}, L_i \in R^{N}, A\in R^{M \times N}, B\in R^{S\time... |
This is a question about the computer algebra system Magma. I have been looking for a place to ask this type of question on the SE network and scicomp.SE was suggested to me; hopefully it finds a home here.
Suppose one has constructed a polynomial algebra $A$ over a ring $R$ in Magma. How does one construct the sub-$R... |
Is there an overview available over tensor visualization software?
My personal preference is:
A software which is free, well documented, and offers visualization techniques for different physical second order (or higher-order) tensor fields.
Some modules that I would be interested in
Hyperstreamlines (eigenvector inte... |
In FEM classes, it's usually taken for granted that the stiffness matrix is positive definite, but I just can't understand why. Could anyone give some explanation?
For instance, we can consider the Poisson problem:
$$ -\nabla^2 u = f,$$
whose stiffness matrix is:
$$K_{ij} = \int_\Omega\nabla\varphi_i\cdot\nabla\varphi_... |
Say I have a set of oriented points at locations $\vec{v_i}$ with each some direction $\vec{n_i}$, in practice they represent the normals of some surface that has been non uniformly sampled. How would I calculate the divergence of this vector field? Standard finite-difference methods would obviously not work because th... |
I understand the checkerboard effect due to the use of collocated grid arrangements in FVM. However, I wanted to know whether this problem is definitely bound to effect the results? For instance, I have modelled some problems on 1D structured grids with a collocated arrangement and have produced smooth results. Perhaps... |
I am trying to numerically resolve the equation for an Euler-Bernoulli beam that is inextensible, unshearable, and subject to planar deformations:
$$\rho I(s) \frac{\partial^2 \theta}{\partial t^2}(s,t)
= E \frac{\partial}{\partial s} \left[I(s) \left( \frac{\partial \theta}{\partial s}(s,t) - \kappa_p(s,\theta,t) \ri... |
I'm trying to solve the following first order parabolic partial differential equation,
\begin{equation*}
X \frac{\partial V}{ \partial Q} = -\frac{1}{2} \sigma^2 \frac{\partial^2 V}{\partial X^2} + rV + p \min (X, 0)
\end{equation*}
subject to conditions
\begin{equation*}
\begin{split}
V &= 0 \hspace{27pt} \text{as} ... |
suppose you have this bayesian network: p(a,b,c) = p(c|b) p(b|a) p(a)
a -> b -> c
are a and c conditionally independent given b?
If yes, why are they independent? How can I show that?
|
I am solving the convection-diffusion equation in 2D using Finite Differences with the $\theta$ scheme. The velocity of the fluid and the diffusion coefficient is low in my case (in the range of $10^{-15}$). The boundary conditions are: open boundary on two sides (Robin boundary), and Dirichlet boundary $u=0$ on the ot... |
I'm trying to model the Black-Scholes Equation (transformed into a heat equation) using method of lines in Python.
The transformed formula is basically
\begin{equation*}
\frac{\partial u}{\partial t} = \frac{\partial^2 u}{\partial x^2} + (k-1)\frac{\partial u}{\partial x} - ku
\end{equation*}
where $k$ is a constant a... |
I am writing a FMM (Fast Multipole Method) algorithm in 3D. I generated the mesh and, currently, I am developing the expansion and the three (M2M, M2L, L2L) translation operators using spherical harmonics. See reference [1], more specifically, these equations are taken from equation numbers 3.36, 3.37, 3.55, 3.56, 3.57... |
I know that in FVM, it is possible to show that a discretisation scheme is conservative by adding the discrete terms over a few control volumes and showing that all terms cancel apart from those relating to the flux in and out of the entire domain.
I'm not sure what happens in FEM? My thoughts are: for instance for a ... |
I have a question about the calculation of center of mass (COM) in systems with
periodic boundary conditions. There is a
method introduced here:
https://en.wikipedia.org/wiki/Center_of_mass#Systems_with_periodic_boundary_conditions
But by this method the COM can't be calculated properly, see the image bellow, because t... |
I'm working on the Black-Scholes equation, but I'm pretty new to financial modeling. Right now, I am trying to understand the Black-Scholes PDE. I understand that the Black-Scholes equation is given by
\begin{equation*}
\frac{\partial C}{\partial t} + \frac{1}{2}\sigma^2 S^2\frac{\partial^2 C}{\partial S^2} + rS \frac{... |
I have a plant that can be modeled with nonlinear equations as
$$f(x,u,p)=0$$
where $x$ is the state vector, $u$ the control vector, and $p$ the model parameters.
In order to control this system, I compute the discrete state-space model
$$x_{k+1}=A_p x_k+B_p u_k$$
where $A_p$ and $B_p$ depend on the parameters $p$.
No... |
So far what I understand is that two neighbouring elements are conformal if their edges and faces match exactly, whereas with non-conformal elements this is not the case. For instance, h-refinement gives rise to hanging nodes, and h-nonconforming elements.
But then there is the concept of p-nonconforming. Note sure, bu... |
Suppose that we are given a numerical scheme.
In order to find the CFL condition , we set $U_j^n= \lambda ^ne^{ik x_j}$ and put it into the numerical scheme.
I have shown that the given method is unstable since $|\lambda|>1$.
In this case, how do we calculate the CFL condition?
I get $| \lambda |= \sqrt{1+\gamma^2 \nu... |
I am trying to compute (in C) a sum like
$S = \sum_i \exp( - a_i )$,
where $10^{4} < a_i < 10^{5}$ are approximately normal distributed. So even if I do the Log-Sum-Exp trick
$S = \exp(\log[\sum_i \exp( - a_i + K )] - K)$,
with $K = \min_i(a_i)$, I have exponents of order $-10^5$. That means that almost every term v... |
I'm currently working with "A Multigrid Tutorial" by Briggs et al, Chapter 8.
The construction of the interpolation operator is given as:
Then construction of restriction operator and fine grid operator are given as:
Let's assume we have three grid points x0, x1, x2 with the middle one x1 is fine and the others are c... |
I have the function of an electric dipole expressed in cartesian coordinates and I want to create the vector field using Matlab .
The function is
$$E_z= \frac{p}{4\pi\epsilon_0} \cdot \left(\frac{3z^2}{r^5}- \frac{1}{r^3}\right) $$ and $$E_x=\frac{p}{4\pi\epsilon_0} \frac{3xz}{r^5}\;. $$ .
The code I've come up wi... |
I have 4 ordinary differential equations that are coupled. The variables in the 4 equations are functions of time and space and one of them is second order in space.
\begin{equation}
\frac{ \partial t_g}{ \partial t} = \frac {hp(t_m-tg)}{A(\rho_gCp_g)}- u\frac { \partial t_g}{ \partial x}
\end{equation}
\begin{equat... |
The problem I want to solve is the displacement formulation of the linear elasticity :
$$
\nabla \cdot \sigma = 0 \quad \text{in} \quad \Omega \\
\sigma = \lambda ( \nabla \cdot u ) I + \mu (\nabla \cdot u + \nabla \cdot u^t) \quad \text{in} \quad \Omega \\
u = 0 \quad \text{over} \quad \Gamma_D \\
\sigma \cdot n = ... |
Any differential operator can be written as a finite difference matrix acting on a vector of values. I recently used it to solve $\Delta A = j$ by writing the Laplacian as a finite difference tridiagonal (second order approximation) matrix. I then used SciPy's spsolve, which solves matrix equations of the form $Ax=b$ b... |
Are there libraries for conducting parallel AMR on an unstructured grid ? For a finite volume code, polyhedral cells with arbitrarily shaped faces are as easy to handle as hexahedra, and infact maybe better for AMR because one doesn't have to do anything special for the refined grid. Due to the lack of libraries, I a... |
Now I need to sum up more than one thousands of terms and then make the four-dimmensional integral in my Fortran program. I found that there are some numerical errors. Can you give me some suggestions that how to check and avoid the possible round-off errors for this kind of general problem ?
|
I'm working on a small fun project on the side for a numerical method I've been working a bit with. Roughly, the computational problem I have to solve is the following: Assume you have a collection of $N$ points, call this collection $X$. For each $x_i \in X$, the following steps occur:
1: Find $k$ nearest neighbors to... |
I am in the process of implementing adaptive mesh refinement for a finite element code that solves the Poisson equation. I have had some trouble finding good references on deciding which elements to refine. I have come across the Kelly error estimator from the deal.ii library:
\begin{equation}
\eta^{2} = \Sigma_{F\ep... |
Short version
I'm computing the zero-order Hankel transform of a function $f(r)$,
$$F(k) = \int_0^\infty f(r)J_0(kr)r\,\mathrm{d}r$$
I know $f(r_n)$ at selected $r_n$ but it is impractical to compute $f$ at additional values of $r$.
I need the transformed function $F(k)$ to have the best possible accuracy at large valu... |
I've been given a second-order non-linear ODE:
$$\frac{d^{2}\theta(s)}{ds^{2}} = sf_{g}\cos{\theta} + sf_{x}\cos{\phi}\sin{\theta}$$
where $f_{g}, f_{x}$ and $\phi$ are constants.
The boundary conditions for $[0,L]$ are:
$\frac{d\theta}{ds}\Big|_{s=0} = 0 $
$\theta (L) = \theta_L$
I will be repeating this numerous ti... |
I am considering using petsc4py instead of scipy.integrate.odeint (which is a wrapper for Fortran solvers) for a problem involving the solution of a system of ODEs. The problem has the potential to be stiff. Writing down its Jacobian is very hard.
So far, I have been able to produce reasonable speed gains by writing th... |
In a parallel MPI code, I have load balancing issues. My 2D computational domain is distributed on a 2D MPI Cartesian topology, which leads to equal sized 2D sub-domains per MPI process. However, the amount of work to do per domain is determined by the number of "compute points" belonging to each domain. And the densit... |
I'm working on a computational physics assignment and I was looking for some help as I've got stuck!
The question is:
Write a function to create the finite-difference approximation of the 2nd derivative operator matrix for a staggered grid. Given the inputs $N$ (the size of the matrix) and $\delta x$ (the grid spacing... |
Given the functional $J_A(y,u) = \frac{1}{2}||y-y_d||^2_{L^2(w,\omega)} + \frac{\lambda}{2}||u||^2_{L^2(w^{-1}, \omega)}$ where w is a function belongs to Muckenhoupt class.
Given the optimization problem: min $J_A$ subject to
-$div(A\triangledown{y}) = u$ in $\omega$. Assume matrix $A$ satisfies these inequalities fo... |
As an example for an ODE course I used the ODE
$$
y' = \frac{y}{x} + \frac{1}{\cos(\tfrac{y}{x})}
$$
to illustrate domains of existence. Standard substitution $z=y/x$ turns the equation to
$$
z' = \frac{1}{x\cos(z)}
$$
which can be solved by separation of variables to obtain the solution
$$
\phi(x) = x\arcsin(\ln(x/x_0... |
I like to set my scientific simulation programs to generate a picture after a certain number of iterations, such that I can follow what is happening and maybe cancel the simulation before the initially planned iteration. The periodicity of the pictures must be such that they don't affect performance too much. Sometimes... |
I have some values imported from excel about the annual sell of a product, with 3 var:
month,
price,
sold items
I have seen how to plot a chart using curve fitting tool but I need to define a math expression that can describe the relation between these variables.
How can I do this in matlab? Is there any tool that... |
I have to use the LANL2DZpd basis set. It can be obtained from EMSL Basis Set Exchange.
But trying to calculate simple Me2Se molecule :
%chk=test.chk
%NProcShared=12
%mem=64300MB
# B3lyp/gen pseudo=read opt freq scale=0.9806 Freq NMR=GIAO pop=(Full)
Me2Se
0 1
6 0.000000000 1.497766000 -0.847272000... |
I have:
1) The dark image with few groups of high-brightness pixels and some amount of noise around it.
2) Number of clusters.
Example:
1)
2) 2 clusters
And i need find centers of bright pixel groups.
Centers, in that case, should be placed like this:
Question: Which clustering alghoritm is suitable for this task?... |
I have a matrix P of m rows and n columns. P(i,j) contains the price of occupying position i at time j. I want to plot this in Matlab but in a way to get some kind of density plot with different price levels corresponding to different colors.
An example of the output would be something like this:
|
is there a way to add a user defined convergence criteria to an ode solver so that the solution is stopped?
I know that Matlab uses absolute and relative tolerances but would that suffice in solving CFD equations or is a user-defined criteria needed?
Thank you.
|
I'm looking for an implementation of the ellipsoid algorithm for linear programming since the application I have in mind has the constraints represented as a separation oracle. Is such an implementation available anywhere?
If there isn't, is there maybe an implementation of the interior point method that works with a s... |
Assume I have an expression for an matrix initialization, for example the following:
A[i,i-2*j+k] = B[i-k] * C[i] * D[i+j+k]
In order to execute such a process, I could loop over all i, j and k. The problem is that loops are slow in python, compared to e.g. loops in C.
Is there some way to use compiled packages for op... |
I have been experimenting in building a C++ project for a FDTDS system for Electro-Magnetics. I have implemented a class [see below] which I called mesh using the Armadillo library. The 3D matrices {Cubes} for the fields Ex, Ey, Ez, Hx, Hy, Hz are declared as private members of the class. The size of these 3D Matrice... |
I have the following system of PDEs for which I have given parameters $\gamma, \tau$ and $\mu$,
$$\begin{align}
T_t = &\ \gamma\,(L +\tau F-T)\\
F_t = & -F_x-(F-LT)\\
L_t = &\ \mu L_{xx}+(F-LT)\end{align}$$
with no-flux boundary conditions at $x=0$ and $x=\infty$ for $F$ and $L$. The initial conditions are $L=T=F=e^{-... |
I have a python code that calculates the solution of the inhomogeneous acoustic wave equation for a 2D medium with any velocity and source configuration. It was implemented using Finite Differences from the following set of equations:
$$
\rho( \mathbf{r}) \mathbf{\nabla} \cdot \left( \frac{1}{\rho (\mathbf{r})} \mathb... |
Does the order of accuracy of a combination of schemes applied to solve a system of non-linear equations, match those of the same schemes applied to the linearised version of the system?
In other words, does linearisation alter the order of accuracy of a scheme?
|
I have written a sparse quadrature routine to integrate multidimensional Gaussian integrals. I'm trying to show convergence plots in my thesis and demonstrate that the code works correctly. I am in the process of benchmarking this using multidimensional integrals with closed forms. With normal numerical schemes one wou... |
I want to frame a higher order Central difference scheme of about $20^{th}$ order for first derivative. I'm using $20^{th}$ order because I need one scheme with good modified wave number. To find the co-efficient matrix (eg. for CD-2 it is [-1/2,1/2]), I have to solve $Ax=b$ equation. $x=A^{-1}*b$. I tried to solve tha... |
I have two data sets that are quasi-periodic. They have the same period and can be seen clearly by eye. For example when $x\in(100,200)$, both of them have about 32 periods.
Below is a zoom-in of the data:
You can see that the two data sets have quite different nature.
Question is, how can I count the exact number of... |
If I have a physical system which contains a time reversal symmetry (for example a Hamiltonian $H(x,p)=p^2/2m + V(x)$ with $V(x)$ real) and I want to solve the differential equations which describe this system, which solver for ODEs should I use in order to keep the time reversal symmetry (for example in mathematica)? ... |
I cannot find a reference explaining clearly and rigorously the links between the notions of conservative form for a PDE, a conservative numerical method and discrete conservation.
I would be very grateful for a complete explanation.
|
We have the advection equation $u_t+a u_x=0, a>0, 0<t<T_f, x \in \mathbb{R}$ with initial condition $u(0,x)=u_0(x)$.
Suppose that we have the following sheme:
I want to find the CFL condition using the domain of dependence of the finite difference method.
To calculate $U_j^{n+1}$ we need the values $U_{j-1}^n$ and $U... |
I'm working on a voxel-based modelling application and one of the features that I've implemented is a method to do a 3D mesh reconstruction from a series of 2D image slices (similar to an MRI). I've got a basic brain scan image set that I've been working on, but ultimately I'd like to release a small demo example show... |
I am implementing from scratch an Hartree-Fock calculation in the STO-3G basis set to perform Born-Oppenheimer molecular dynamics. I have a Restricted Hartree-Fock procedure that can reproduce very well the total energies of Ref. [1] and of Gaussian09 with pre-optimized molecular geometries.
Now, during a Born-Oppenhai... |
I am looking for some helps concerning an optimization problem.
I have an optimization problem defined on two sets $\mathcal{X}=\{x_i\}_{i=1}^n $ and $\mathcal{Y}=\{y_j\}_{j=1}^m $ and described as follows
$$
\begin{equation}
\begin{aligned}
& \underset{\alpha, \beta}{\text{max}}
& & \sum_{i=1}^n \alpha_i x_i^T x_... |
I have a certain convex optimization problem which depends on the order of a set of $N$ objects. Meaning, for every possible ordering, I get a different convex optimization problem. My ultimate goal is to find the best optimal solution given all possible orderings. One way of doing that is by solving all $n!$ possible ... |
Here is the function I want to minimize:
$$\sum_i\frac{\rho_{\tau}(1-\alpha-\pmb x_i^{\top}\pmb\beta)}{\sqrt{1+\pmb\beta^{\top}\pmb\beta}}$$
where $\alpha\in\mathbb{R}$, $\pmb\beta\in\mathbb{R}^p$ are the parameters we want to optimize over and $\tau\in(0,1)$ and the $\pmb x_i$ are given and:
$$\rho_{\tau}(x)=\tau\max... |
I need to synchronize intermediate solutions of an optimization problem solved distributively over a number of worker processors. The solution vector is known to be sparse.
I have noticed that if I use MPI_AllReduce, the performance is good compared to my own AllReduce implementation.
However, I believe, the performanc... |
Does anybody know if any graph partitioner library such as Metis, Scotch, or Zoltan can (besides splitting a domain), differentiate between internal (i) and boundary (b) nodes?
|
How can I estimate how much memory will be needed to find eigenvalues and eigenvectors of a given large sparse matrix?
I have a real symmetric matrix with roughly $5 \times 10^4$ rows and columns, and an average of $10$ nonzero elements per row. I would like to find the smallest eigenvalue and the corresponding eigenve... |
I am looking for some production-ready code to update dense QR and/or Cholesky factorizations (by adding / removing rows and columns or making small-rank updates -- yes, I need all these cases).
I have done my Googleliterature research, but I have found very little:
Matlab has this covered, but unfortunately this is f... |
First of all, hope I've found the right forum for this question, if I haven't please pass me on to one which would fit better.
Out of curiosity from an argument with someone who may or may not be more into CPUs than I am. We were arguing about the performance of floating point operations on modern CPUs. Is there any so... |
There are lot of articles being written about how the newly launched Intel Xeon Phi will steal the HPC\Super Computer market share from the competitors. Intel Knights is equipped with 72 cores and 4 sockets making it 288 core system. Whereas a single Gtx980 has 2048 CUDA cores. How can these two compete in terms of Com... |
I recently timed the linsolve direct solver and I was kind of shocked to see that the solver seemed to be scaling quadratically even upto a 1000 dimensions. Specifically I ran the following code and it showed that the cubic coefficient of time taken $a_3 \approx \frac{1}{1000}a_2$. From my recollection the cubic coeffi... |
I have been trying to make a biologically accurate 2D spatial model of tissue layers, where different physiological processes happen. This includes mainly chemical reactions, diffusion and fluxes over boundaries.
I am making this model in COMSOL Multiphysics, a finite element software package that solves different phys... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.