instruction stringlengths 43 28.1k |
|---|
Objective: I am trying to solve for $C$ in 2D space (x,y) and time from following PDE.
$$
\text{PDE: }\frac{\partial C}{\partial t} + \nabla\left(v.C - D\nabla{C} \right)= \alpha.C
$$
Method: I discretized the above equation in 2D using finite-difference implicit scheme and as a result I get the following discretized... |
How can I use Fourier Transform to solve Fisher-Kolmogorov Equation in 1D?
\begin{equation}
u_t(x,t) = u_{xx}(t) + u(1-u)
\end{equation}
\begin{equation}
u(0,x) = \phi(x)
\end{equation}
with Dirichlet
\begin{equation}
u(0,t)=0 \\
u(1,t)=0
\end{equation}
and Neumann boundary conditions
\begin{equation}
u_x(0,t)=0\\
u_x... |
I am trying to do SVD of a large block-hankel matrix for model order reduction (Low rank approximation). However, I quickly run into memory issues in forming the large Block-Hankel matrix and CPU issues due to running SVD itself.
In theory, it seems like we don't have to form the Hankel matrix itself. As long as we hav... |
I am trying to solve $Ax=b$ a system of linear equation. The matrix $A=(a_{ij})$ is constructed as $$a_{ij}=\int_0^1\int_0^1 K(x,y)h_i(x)h_j(y) dxdy.$$ The evaluation of integral takes a lot of time, and overall computation is very slow. Can I evaluate these integrals in parallel using GPU cores? Please suggest how can... |
How many CPU cycle is required to simulate a complete human body from it's very initial stem cell using classical algorithms and also is it possible to use similar algorithms for simulating stem cells themselves from their very initial atoms?
How much computing these models will cost based on available hardwares today... |
I have the following quadratic form I need to evaluate:
$x^T A^{-1} y$, where $A$ is a sparse positive definite matrix, $x, y$ are sparse vectors.
Now assume that I am given for free both $A^{-1}$ and the Cholesky decomposition $A = L D L^T$. I understand that it still will be faster to evaluate $x^T A^{-1} y$ using a ... |
I am wondering how can I solve following problem.
Arrange randomly $n$ points inside a square of side $a$ under the condition that the distance between any two points may not be smaller than 1.
I would like to see how can it be solved.
|
I need to know what library, given a vector of coefficients and modulus N return the roots of polynomial modulus N. The library should support big integer. I'm coding in C++.
|
I’m interested in solving nonlinear elliptic boundary value problems of the type
$$
-a\Delta u + f(u) = 0,
$$
$$
u|_\Gamma = u_0
$$
by Newton’s method when its convergence is global and monotonic.
Could you advice some references concerning this problem, containing proofs of global convergence?
Newton's method takes th... |
I am working on a transient heat transfer problem. The problem that I have is as the time goes the range of temperature is changing but Tecplot only use one sort of levels for contour for all of time steps. Therefore the change in temperature is not very sensible at the end of the time which transient diminishes. I am ... |
I am using ANSYS Fluent 15 to simulate a case of fluid flow. In my case, I have three cell zones in my simulation, let's call them top, middle and bottom.
My requirement is to put a vertical constant force in the "middle" cell zone. I can not use gravity because it is then acted in all other cell zones as well. My purp... |
I had written a code a while ago which attempted to calculate $log(x)$ without using library functions. Yesterday, I was reviewing the old code, and I tried to make it as fast as possible, (and correct). Here's my attempt so far:
const double ee = exp(1);
double series_ln_taylor(double n){ /* n = e^a * b, where a is a... |
I need to know what libraries (in C++) support polynomial arithmetic specially over a field. So I can give to it an array of coefficients of polynomial over a field and it returns the roots of polynomial over the field. It also should support big integers, as the coefficients and the roots are big integers.
For securi... |
W==a(x)=2*(W* x)/41;
I'm attempting to make a new type of compression algorithm. A rubber band ball type.
I'm trying to make a software that extracts, from that formula, the secret volumes of number sets within. By taking the the opposite formula, b(x) i should get the answer. But unfortunately, i dont. I have to searc... |
Consider the following example structure of overlapping images marked A,B,C,D. The possible overlaps are marked by gray color:
The structure can be represented by a weighted undirected graph (images being the nodes, edges representing overlaps and the weights representing overlap areas or time needed to process them):... |
I have been struggling for two days with the following problem.
I would like to do a $d$-dimensional interpolation over some data. I tried first
to use polyharmonic splines, but when the size of data increase, the inversion of matrices is problematic because they are almost singular (large condition
number). Therefore,... |
Hello I am trying to shift points which have been previously generated in the square area. I am having a trouble with some additional conditions how they should have been shifted.
xt=x(j)+2*rand()*shift - shift
yt=y(j)+2*rand()*shift - shift
Also I have more conditions to apply:
a) xt<0
b)xt>a
c)yt<0
d)yt>a
d) the di... |
I am trying to do analysis on a data set of atomic coordinates generated form lammps. I simulated an alpha glycine crystal in a triclinic box. The box vectors look like the following, where xy,xz,and yz, are the tilt factors.
xlo = -0.34; xhigh = 40.466
ylo = -1.6283; yhigh = 49.50861
zlo = 0.77; zhigh = 3... |
Ok so I am nearing the completion of my finite element Navier-Stokes solver that uses the $\theta$-method for time stepping and the pressure correction method for the pressure. I am following the notes http://ta.twi.tudelft.nl/users/vuik/burgers/fem_notes.pdf by Ir. A. Segal (page 74-75). So far everything seems to wor... |
I am doing research in electromagnetics (a branch of physics) and I deal with complex numbers in my computing tasks (I use MATLAB). Let's say $z$ is a complex number. To calculate the square of the magnitude of $z$, which is $|z|^2$, I can use two different ways that are mathematically equivalent:
$|z|^2 = \operatorna... |
I am solving a system of linear equations, $\underline {\dot x}=\underline A\cdot \underline x$, numerically. I have done this using the popular of methods of Euler and Runge-Kutta (RK). I have noticed quite a difference between the two in accuracy to the analytic solution.
What is the reason for this?
|
Let us start with a problem of the form
$$(\mathcal{L} + k^2) u=0$$
with a set of given boundary conditions (Dirichlet, Neumann, Robin, Periodic, Bloch-Periodic). This corresponds with finding the eigenvalues and eigenvectors for some operator $\mathcal{L}$, under some geometry, and boundary conditions. One can obtain ... |
I have an ODE of the form
$$ \frac{dy}{dt} = -i H y \enspace .$$
where $y$ is a complex vector and $H$ is a time dependent Hermitian matrix.
The norm of the solution $y(t)$ at any point in time should be 1, but due to accumulation of small numerical errors it ends up being substantially off.
A solution for this proble... |
I was reading about Petrov-Galerkin Enrichment Method for Darcy equations. Here are a couple papers that discuss this in detail:
A Petrov–Galerkin enriched method: A mass conservative finite element method for the Darcy equation.
A Symmetric Nodal Conservative Finite Element Method for the Darcy Equation.
However, I ... |
I need to find C/C++ libraries which offer function for computing Schur complement. I know about MUMPS and Pastix, but I need more of them to compare them in my research.
Do you have any experience with other libraries?
|
I built a sparse matrix A at each step as follows:
% 1 < DX < 120000
A = sparse(i,j,s,DX,DX,6*DX)
b = (1, DX)
The problem that I am dealing with is a discretization problem. I have maximum 120000 nodes. Each of these nodes have special characters and I choose only the ones that meet a (previously) defined criteria.... |
I managed to implement the Nearest-Neighboor Ising Model with periodic boundary conditions, it was doable. I also made a modified version of it, where the interaction would go further than the nearest neighbors. In this case the implementation of periodic boundary conditions got more complicated (matrices instead of si... |
After my first course in the Finite element method I understand that elemental and global stiffness matrices are symmetric. What is the reason behind symmetry of stiffness matrices? Is it because symmetric property of the bilinear term in weak form?
|
I have calculated the first derivative of following equation using Euler method (first order), Three point Finite Difference method (second order) and Four point Finite Difference method (third order).
$$f(x)=e^{-32*(x-5)^2}$$ in the domain $0 \leq x \leq 10$.
I discretized the domain by 50, 500, 5000 and 50000 numbe... |
I am currently trying to reproduce the results published by Hands et al.1 using MATLAB. They calculated the bases of the C60 wave functions of HOMO, LUMO and LUMO+1.
I did the following:
I implemented these functions into MATLAB syntax, e.g.
Tp1uxL5 = @(x,y,z) 35.*z.*(x.^4-6*x.^2.*y.^2+y.^4)-5*x.*(1-14*z.^2+21.*z.^4)... |
Since evaluating a matrix condition number usually takes $O(n^3)$, I wonder whether there is an efficient $O(n^2)$ way to estimate in MATLAB a matrix condition number given its LDL decomposition.
Thank you!
|
I am trying to solve a large scale inverse problem using the Bayesian formulation. To estimate the Maximum a Posteriori Estimation (MAP) solution I will have to minimize the following objective function:
$F(m) = F_d + F_\text{prior} = \frac{(f(m) - d)^T(f(m) - d)}{\sigma^2} + \frac{(m - m_\text{prior})^T(m - m_\text{pr... |
Can you advise me any kind of existing software that can help to solve the disjunctive programming problem?
The problem is the following.
We have unit 3D planes $\Pi_{1}, \ldots, \Pi_{N}$ (they are known). Let us write them as follows: $U_{j} x = H_{j}, j = 1, \ldots, N$.
Having the fixed numbers $n$ and $m$, we want t... |
When we compute the complexity of an image processing algorithm, we get an $O(N)$.
does the $N$ refers to the number of pixels in the image or to the height/width of the image, I mean it is computed related to $O(nm)$ with $n\times m$ the size of the image ?
please, cite some references.
|
I'm trying to install Pastix library, but I'm still having problems with missing libraries and I'm really helpless now.
I started with copying LINUX-GNU.in as config.in, because I'm working on Lubuntu 15.04. I've changed paths to Scotch and Blas.
But now, when I try to make examples_s, it appears ok, but no compiled fi... |
I am interested in approximating the time evolution of 2D curves. Here's an illustration:
An issue that arises when naively making this approximation as illustrated above, is that as one increases the number of "line segments" used to approximate the curve, then one is also introducing extra "flexibility". That is, cu... |
I have the following simple code
v=[];
for i=10:-1:1
for j=0:0.2:5
v(end+1)=i+j;
end
end
min(v)
It returns the minimum of vector $v$ whose length in this case is 260. I would like the code to return the values of $i$ and $j$ that produce the minimum value of $v$. I defined
a=cell(2,2)
and I included the statem... |
I am in the process of writing a finite element solver for the Navier-Stokes equations and am having trouble computing things like the divergence and vorticity correctly. Currently to compute the vorticity,
$\omega = \frac{\partial{v}}{\partial{x}} - \frac{\partial{u}}{\partial{y}}$,
I would multiply the r.h.s by a tes... |
The Darcy equations for porous media flow are given by:
$\frac{\mu}{\kappa}\mathbf{u} - \nabla p = \mathbf{0}$
$\nabla\cdot\mathbf{u} = 0$
where $\kappa$ is the permeability and can in general be spatially dependent.
This can be put into a weak formulation that looks like:
$a(\mathbf{u},\mathbf{v}) + b(p,\mathbf{v}) =... |
Please, I am currently implementing direct multiple shooting methods* and I need one simple but fundamental concept answered:
When I want to provide not only objective function value (the result of ODE integrator) but as well derivatives (for the NLP solver), for the control parameters it is just sensitivity analysis o... |
Objective: I am trying to numerically solve $C(x,y,t)$ from the following advection-diffusion-reaction equation in 2D space (x,y) and time. I will be testing my numerical solution with an approximate 1D analytical solution (given on 2nd page in this file). However, the issue is that I am not able to get correct numeric... |
I am trying to implement a 1D k-$\varepsilon$ turbulent model for a turbidity current, hence the conservation equation for $c$. I'm solving for the variables $u,c,k$ and $\varepsilon$. The remaining terms are parameters.
$$
\newcommand{\cmu}{c_{\mu}}
\newcommand{\cmuc}{c_{\mu c}}
\newcommand{\dervz}[1]{\frac{\partial #... |
I am wondering if I am thinking correctly about the following problem :
Define the box of the dimensions $(a,a,H)$ in the $X$,$Y$, and $Z$ directions, respectively.
Insert $n$ particles into the box using PBC in $X$ and $Y$ directions
Move the particles using a quite analogous condition as in the previous pgms (of cou... |
I want to invert large matrices ($10^4 \times 10^4$ to $10^6 \times 10^6$) but sparse (less than $100$ non-zero entries per line) on clusters with $16$ to $48$ processors per node.
I'm looking for an efficient method to do so. I've tried a few different
solutions but I face some problems.
As the matrix is big, my firs... |
Assume I have a data set $ { \left\{ {x}_{i} \right\} }_{i = 1}^{N} $ which represents the value of each data point.
For each data we have its features $ {f}_{i} \in {\mathbb{R}}^{d} $.
The model I came for the data is $ \arg \min_x {\left( x - \sum_{j \neq i} {w}_{ij} {x}_{j} \right)}^{2} $, where $ {w}_{i, j} = \exp ... |
I like to create interpolation functions for second order finite element meshes. For elements with straight edges all is good, but some of my elements may have curved edges as shown in the figure:
I am looking for references on how to test efficiently and robustly if a query point is inside a curved element. The inter... |
Most authors are very clear that it's very dangerous to just use $\mathrm{H}(curl)$ conforming edge elements, which are divergence free, to satisfy $\mathrm{div}(\mathbf{B})=0$ and implement this condition in no other way.
I just don't understand why. Could anyone explain in which case this could fail or point me to so... |
I have a numerical scheme to solve an hyperbolic system of equations of this type (this a more simple version just for clarity):
$$\frac{\partial u}{\partial t}+u\frac{\partial u}{\partial x}+v\frac{\partial u}{\partial y}=\frac{\partial H}{\partial x}$$
$$\frac{\partial v}{\partial t}+u\frac{\partial v}{\partial x}+v\... |
I would like to solve a generalized eigenproblem of real sparse symmetric matrices. Is there an efficient library which utilizes OpenCL in order to find a limited amount of the smallest eigenvalues in magnitude?
|
I'd like to learn how the Raviart-Thomas (RT) element works. To that end I'd like to analytically describe how the basis functions look on the reference square. The goal here is not to implement it myself, but rather just to get an intuitive understanding of the element.
I'm largely basing this work off of the triangu... |
I'm trying to plot the orbit of a compact binary star system where general relativistic effects become important. I'm using post-Newtonian approximation and I want to solve the orbit numerically based on the equation below:
$$
\begin{aligned}
\ddot{\vec{r}}_{i}
&=& \sum_{j\neq i}^{ } \frac{\mu_{j}(\vec{r}_{j}-\vec{r}_{... |
I am looking for a relatively simple book/paper that explains the basic Streamline Upwind Petrov Galerkin (SUPG) method for solving the incompressible unsteady Navier-Stokes equations. Most of the references I have managed to find online have been papers that more-or-less assume you already know the method well. I plan... |
I hope the following question will not be perceived as to vague. I am trying to ask the question directly, without going into too much information regarding my code. I am currently developing a molecular dynamics code for a custom application, as part of my PhD thesis. I have checked over and over again the validity of... |
\begin{equation}
\frac{\partial C_i}{\partial t} = D_i \nabla^2 C_i - \frac{I \cdot \nabla t_i}{z_i F} - \sum_{i'} \frac{z_{i'}}{z_i} D_{i'}\nabla \cdot (t_i\nabla C_{i'})
\end{equation}
\begin{equation}
\nabla \eta = \frac{I}{\kappa} + \frac{F}{\kappa} \sum_i z_i D_i \nabla C_i
\end{equation}
The dependent variables a... |
As per the suggestion by Christian in the comments here, as part of my continuing quest to understand the Raviart-Thomas (RT) elements I'd like to know how exactly the RT elements are defined globally, and in particular how they have compact support.
For RT0 on the reference square, one of the basis functions is $\mat... |
I run many PBS scripts that take advantage of the job array structure for similar jobs (e.g. 12345[0] through 12345[9]). With the way that the code is written, job [0] needs to run first, and then any other job can start. Preferably, the jobs would run in numerically increasing order.
When I submit an array of jobs, th... |
I'm using scipy.odeint to solve Fisher-Kolmogorov equation:
\begin{equation}
u_t = u_{xx}+u(1-u)
\end{equation}
The code can be found here.
From Ablowitz and Zeppetella we know that the analytical solution reads:
\begin{equation}
u(x,t)=\frac{1}{1+e^{{(-\frac{5}{6} t+ \frac{\sqrt{6}x}{6}})^2}}
\end{equation}
Now, if we... |
Note: I'm trying to implement a Discontinuous Galerkin method, as kind of a way to learn about these things.
As of now, I've taken the acoustic wave equation $c^2 \nabla \cdot \nabla u(x,t) - \frac{\partial^2 u(x,t)}{\partial t^2} = f(x,t)$, rewritten it in weak form with the test function $v(x,t)$, and used Green's fi... |
I am translating a piece of Fortran code into Python and am testing my code with a certain test case.
All the results differ with 0.04% compared to the Fortran results. This is a very small difference and I am not sure if I can almost see this as machine zero or if there are mistakes in my Python implementation.
What i... |
Let's say I have a LDL factorization of a matrix A.
Is there an efficient $O(n^2)$ way to get the eigen decomposition of A given it's LDL factorization?
Is there a more efficient way, in case L and A are sparse and we have a fill-reducing permutation of A?
Thanks!
|
This is a fairly simple question but my Matlab knowledge is still very limited.
I want to take a given binary number (or rather, a bistring) of length $mn$ and generate an $m \times n$ matrix whose entries correspond to the bit values.
For example, if the given bitstring is $b = 1001110101$ (which is the binary value o... |
I was wondering if there is a Fortran library that contains a solver for the Sparse LSE(linear equality-constrained least squares) problem
$$
min_{x}\|Cx-d\|^2 \text{ subject to } Ax=b
$$
where $A$ and $C$ are large and sparse.
For dense linear systems, LAPACK has the subroutine DGGLSE, but I am looking for a solver... |
I am looking for books or articles, or blog-posts, or any published material in general, that address specifically the uses of C++ modern features (move semantics, the STL, iterators, lazy evaluation, etc.) in scientific computing. Can you suggest any?
I think that these new features will make it easier to write effici... |
The original equation is
$$\frac{1}{c^2} \frac{\partial^2 u}{\partial t^2} = \frac{\partial^2 u}{\partial r^2} + \frac{1}{r}\frac{\partial u}{\partial r} + \frac{1}{r^2}\frac{\partial^2 u}{\partial \phi^2}$$
and the finite difference version used is
$$U^t_{i,j} = {c^2 \Delta t^2}\left[\frac{1}{2r_i\Delta r }(U^{t-1}_{i... |
I am dealing with following problem:
$$
\min_{u,\gamma}\Bigg\{ \frac{1}{1000} \iint_{S_2} {\gamma (x,y)^2 dxdy} + \iint_{S_2} {[u(x,y) - u_0 (x,y)]^2 dxdy} + \iint_{S_2} {[\Delta u(x,y) - \gamma (x,y) u(x,y)]^2 dxdy}\Bigg\}
$$
where the unknown functions $u(x, y)$ and $\gamma(x, y)$ are defined on the unit square $S... |
I am facing a simple (at first glance) problem. I need to implement a numerical scheme for the solution of the first order wave propagation equation with chromatic dispersion included. My original problem is (for a forward propagating wave):
\begin{equation}
\frac{1}{c} \frac{\partial u(x,t)}{\partial t} = -\frac{ \par... |
$X_{1} = (A, b)$, where $X_{1}$ is a $n\times p$ matrix, $A$ is a $n\times (p-1)$ and $b$ is $n\times1$. update $b$ with $c$,Is there any update method to compute more efficiently?
|
I want so visualize the spatial density for my simulation. The result of my simulation is a (time-dependent) system of large number (~100k) of moving particles in a confined space. Each particle has its own Cartesian coordinates as well as a weight ($w$) in the form of $(x_i,y_i,z_i;w_i)$.
I am looking for a software... |
I'm a computer science student. Please I need a help in solving a constrained normalized quadratic function. I'm familiar with solving quadratic constrained optimization function with matlab by providing a symmetric matrix and a vector as inputs for quadprog matlab function. Now, I encountered an other form of quadrati... |
I have a matrix A which is of size (n2, n1) and I am multiplying it by a matrix, B, of size (n1, n0). I have identified this single matrix multiplication as the bottleneck in my Fortran code. Out of ~2000 lines of code, this single line takes about 77% of the runtime.
A is a double precision matrix with floating point ... |
I am working on some model analysis, getting two diff equations and
after I convert them into matrix form, I have equations looks like
$$ [A][X]=C\times\big(\exp([B][X])-1\big), $$
where $C$ is a constant
and Both $[A]$ and $[B]$ are found out from two diff equations and boundary conditions.
Now my question is how am I... |
So I inherited from some people a code that solves the advection-diffusion-reaction equation for a particular system. The original code was first implemented in 1D which worked fine in cartesian coordinates. However, now that I'm trying to implement it in 2d I'm having a few problems.
The equation is:
$$\frac{\partial ... |
Character tables are an important tool for symmetry analysis in many computational chemistry software packages. Are there any standardized file formats for point group character tables?
This may seem to be an odd question as I could (and I do) just retrieve this information from other sources. But for code interoperabi... |
I'm familiar with finding the order of accuracy using von Neumann analysis for finite difference schemes formulated using Taylor series expansions.
But is there a similar technique for finding the order of accuracy for schemes that use a least squares fit for approximating gradients?
Currently, I am solving a 1D advect... |
Is there a relation between say the heat equation $u_t -\Delta u = f.$ and advection-diffusion equation $-\Delta u + c \cdot \nabla u = f$? I have heard several people use this argument in many talks and articles but this is particularly not clear to me.
|
I've written a basic 2D Langevin dynamics simulator in C++, for a particle in a potential, solving the equation:
$$M\ddot{X} = - \nabla U(X) - \gamma M \dot{X} + \sqrt{2 \gamma k_B T M} R(t)$$
This relies on a source of random numbers for $R(t)$, and I've been using std::random (in particular, a Mersenne Twister RNG).
... |
When solving semi-discrete equations (originating from finite element models, for example), which are second-order in time of the form
\begin{equation}
M\ddot d + C\dot d + Kd = F,
\end{equation}
where $d$ is the solution vector, $M$, $C$ and $K$ are matrices, and $F$ is a vector, one can make use of methods that damp ... |
How to solve the optimization problem written below?
$$\begin{align}
&\operatorname{argmax}\limits_{a}\; a^T b - \frac{1}{2} a^T X a\\
&\text{subject to } \sum_i |a_i|=4,\; \sum_i a_i = 0
\end{align}$$
where $a$, $b$ are $n$-vectors and $X$ is a $n\times n$ matrix. Also, $b$ and $X$ are constants.
My main issue is ab... |
I am trying to implement the finite difference beam propagation method to study the propagation of a TE light signal through a waveguide. However, my solutions are exponentially growing, and display no propagation. For more information, see "Introduction to Optical Waveguide Analysis" by Kawano and Kitoh, section 4.3.
... |
In the wave equation:
$$c^2 \nabla \cdot \nabla u(x,t) - \frac{\partial^2 u(x,t)}{\partial t^2} = f(x,t)$$
Why do we first multiply by a test function $v(x,t)$ before integrating?
|
I am curious, if there is a function to convert MPIAIJ (distributed matrices in AIJ format) to a SEQAIJ matrix that lie on a single processor. It is possible to do such an operation for PETSc vectors with VecScatterCreateToAll or VecScatterCreateToZero, but I couldn't find a similar function for matrices. It is not a s... |
I'm afraid the title is terrible, but I don't know how to summarize this problem in a few words.
Using an instrument, we are monitoring the trajectory of several objects during a period of time. We take a lot of measurements of the position of the objects in the field of view of the instrument, so we have a list of tri... |
So I'm trying to implement a 9-point stencil discretization to the 2D difussion equation. The stencil is here.
However, most of the literature deals with a Laplacian that has a constant diffusion coefficient. i.e.
$$ f_t=d\Delta f(x,y). $$
However the problem I'm dealing with has a variable diffusion coefficient, i.e.
... |
Given the following system of partial integro-differential equations
$$ \frac{dX(t)}{dt}=\Lambda-\mu X(t)-\beta X(t)Z(t),\\
\frac{\partial Y(t,\omega)}{\partial t}+\frac{\partial Y(t,\omega)}{\partial \omega}=-\delta(\omega) Y(t,\omega),\\
\frac{dZ(t)}{dt}=-\gamma Z(t)+(N-Z(t))\int^{\infty}_{0}\kappa (\omega)Y(t,\omega... |
FEA when applied to solid mechanics / structural engineering result in the solution to the equation
$$ F = K\cdot x $$
$F$ being the forces, $K$ the stiffness of the system and $x$ represents the resulting displacement.
Now if I were to analyse a live experiment where, lets say, I am applying a point load to a beam, ... |
I am working on solving complex system of 2D PDEs governing the behaviour of plasma in a gas lamp during discharge. Recent tests have shown that because of steep gradients in temperature field and overall explosive nature of a process I won't go anywhere further without adding gas dynamics to the model. As far as I kno... |
Is there a Matlab interface for minpack2?
minpack2 http://ftp.mcs.anl.gov/pub/MINPACK-2 consists of Fortran programs , but i would like to call the test problems from matlab.
What can i do ?
|
I'm part of a team trying to generalize a 1D Advection-Diffussion-Reaction code we inherited by extending it to 2D by using dimensional splitting, i.e. solving advection and diffusion for x and y separately with 1D schemes.
Diffusion was (relatively) painless but there are issues with advection.
Originally the code had... |
I am trying to find how much an engine would turn until it stops accelerating with an acceleration of $a = A \sin^2(x)$.
Acceleration
Integrating the acceleration I get velocity $v = A(x/2 - \sin(2x)/4) $
Integrating the velocity, I get the distance $d = A(x^2/4 - \cos^2(x)/4) $
Velocity and distance
Now, I need to ... |
Hi I have made a 3D alternating direction explicit scheme for solving the diffusion equation, which will eventually replace a FTCS scheme in model of bubble dynamics in tissue. I have been testing it and have realized that despite the unconditional stability I get oscillations in the system if the Courant number is gr... |
Let x, y be two floating-point numbers. What's the right way to compute their mean?
The naive way (x+y)/2 can result in overflows when x and y are too large. I think 0.5 * x + 0.5 * y maybe better, but it involves two multiplications (which maybe is inefficient), and I am not sure if it is good enough. Is there a bette... |
I am dealing with following 2-dimensional problem in the unit square domain $S_2$
$$- \Delta u (x,y) = f \ \text{in} \ S_2, \hspace{1.5cm} u(x,y) = 0 \ \text{on} \ \partial S_2$$
where $f$ is such the analytical solution to problem is
$$u(x,y) = \cos [ 2 \pi x (y - x) ]^2.$$
Problem should be discretized by 5-po... |
I want to numerically (with Matlab) solve Poisson's equation : $ \frac{\partial^2u}{\partial x^2} + \frac{\partial^2u}{\partial y^2} = f(x,y)$ On a rectangular domain using experimental data.
From experimental data let's say that I have a $ [1:m \times 1:n] $ matrix that represents the right hand side of the equation. ... |
Given an $n_1 \times \cdots \times n_k \times g \times g$ tensor $A$ (i.e. a collection of $g \times g$ matrices) and an $n_1 \times \cdots \times n_k \times g$ tensor $b$ (i.e. a collection of vectors of length $g$) I want to use Numpy to compute the $n_1 \times \cdots \times n_k \times g$ tensor $c$ where each elemen... |
The Sherman-Morrison formula
$$ (A+uv^T)^{-1} = A^{-1} - \frac{A^{-1}uv^TA^{-1}}{1+v^TA^{-1}u} $$
results in small errors in relation to the standard matrix inverse operation after each application, as shown here. From what I understand, the Sherman-Morrison identity is exact, so the error must come from numerical pro... |
In Nocedal & Wright's book on Numerical Optimization, there is a statement in section 2.2 (page 27), "Generally speaking, it is easier to preserve scale invariance for line search algorithms than for trust-region algorithms". In that same section, they talk about having new variables that are scaled versions of the ori... |
I need to know what library is the fastest one that can factorize a polynomial of large degree whose coefficients are big integers.
I have tried NTL library to factorize a monic polynomial but it is not efficient.
|
I have a density function $f(x,y)$ on a rectangular domain $[0,1] \times [0,1]$
My domain is divided into cells of length $[0,h] \times [0,h]$, and I want to compute mass of each cell. I am going through each cell by using two for-loops, but then the computation becomes really slow even when $h$ is still pretty large... |
I have implemented a basis transformation in C of the following form
kron[A,A]*B*Transpose[kron[A,A]]
where A and B are matrices and kron is the Kronecker product.
However, my naive code is not scalable, and I am looking for a library to achieve this. My starting point was to look in BLAS and LAPACK for Kronecker pro... |
I would like to have a divergence-free formulation of the Navier-Stokes equations for creeping flow (a.k.a. Stokes equation, N.-S. without the inertial terms) in 3D, for purposes of tracking particle deformation in finite elements.
I would also like to be able to specify the usual kinds of boundary conditions (no-slip ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.