instruction stringlengths 43 28.1k |
|---|
I have come across the paper titled:
A monolithic fluid structure interaction algorithm ...
For a 1D grid, at the boundaries the paper uses virtual nodes $x_{0}$ and $x_{N+1}$ (page 372)
and for instance for velocity v at the boundaries ends up via extrapolation with (page 374)
$x_{0} = 2 x_{1}-x_{2}$
and
$x_{N+1} = ... |
I try to write tests to the implementations of numerical methods.
The best way to do this is to study the observed order of accuracy and check that it matches with the theoretical order of accuracy.
However, I noticed that the observed order of accuracy lies in a band
$$ [p_{\mathrm{theor}} - \Delta, p_{\mathrm{theor}}... |
I'm currently attempting to turn my code for solving the laplace equation using finite element approximations into an adaptive one using the dual weighted residual as my error estimator: i.e. my indicator for element i: $η_i=(f[i]−∑_0^N A_{ij}U_h[j])∗z[i]$. i.e. I set up f, A and z over a very fine mesh and solve U_h o... |
As I am new to all these stuff I would like to verify whether my procedure is correct.
I need to calculate the Lennard-Jones potential, potential energy of the system and the forces.
The procedure is as follows:
1) Read the input data: side lenght of the square -a, number of particles -N, the parameters $\sigma$, $\e... |
Lots of algorithms for semidefinite programming make use of the Frobenius projection onto the cone of semidefinite matrices:
$$\mathcal{P}(A) = \min_{X\succeq0} \|A-X\|_{\mathrm{Fro}}^2.$$
Let's assume $A$ is symmetric.
The standard trick for this projection is to compute the eigendecomposition of $A$ as $A=X\Lambda X^... |
would someone be so kind as to explain me the difference between the ordinary givens-rotation and the fast givens-rotation?
I know that the fast givens Rotation reduces the Count of operations to approximately the half. How is this possible?
Thanks in advance for any hints :-)
|
I want to implement an implicit ODE solver, but don't know what to do when the differential equations (DEs) have discontinuities of the form:
More common type:
$$\lim_{x\rightarrow 0}\frac{\sin(x)}{x} \enspace .$$
Less common, as it occurs in only one DE
$$\min(\alpha x, \beta) \enspace .$$
I am trying to implement t... |
I have the function
$f(x) = \begin{cases}
0 \:\: (x < a) \\ 1/2 \:\: (x = a)\\ 1 \:\: (x > a)
\end{cases}$,
where $a$ is unknown. I can compute the function for any value of $x$, and seek to determine $a$ (to some degree of accuracy).
Given an initial bracket $x_{0} < a < x_{1}$, I subdivide the bracket by defining
... |
I want to solve the following differential equation using control volume approach on a Cartesian mesh:
$$\frac{\partial T}{\partial t} + \frac{\partial T}{\partial x} + \frac{\partial T}{\partial y}= \lambda[\frac{\partial^2 T}{\partial x^2} + \frac{\partial^2 T}{\partial y^2}]$$
Probably, there would be no harm in wri... |
Given a 2D stochastic differential equation:
\begin{align}
\dot{x}_{i}=f_{i}(\textbf{x})+g_{ij}\xi_{j}(t),
\end{align}
where $i=2$, $g_{ij}g_{jk}=2\epsilon\delta_{ik}$ and $f(\textbf{x})=-\nabla\phi(\textbf{x})+l(\textbf{x})$ with $\nabla\phi(\textbf{x})\cdot l(\textbf{x})=0$, we have its action functional for trajecto... |
I have a question on the use of moving mesh to solve the inviscid euler equations. I have solved the following equations:
$$\frac{\partial}{\partial t}\left[\begin{array}{c}
\rho\\
\rho u
\end{array}\right]=\frac{\partial}{\partial x}\left[\begin{array}{c}
\rho(u-w)\\
\rho u(u-w)+p
\end{array}\right],$$
where p is a l... |
I'm new to the modelling of inviscid euler equations. I have come across few different upwind schemes that are used instead of central differencing schemes to model such flows, such as flux vector splitting and Godunov. My question is, do I definitely need to know the eigenvectors/eigenvalues of the system if I need to... |
I urgently need help with a problem I am having for an assignment for university. I do not expect a full solution, but I am really in need of guidance.
I am required to write a FEA program in VBA, I have managed to do that. However, I am having problems when trying to find the inverse transformation of isoparametric q... |
I'm implementing a finite-difference WENO scheme for a simple advection equation
$$
\frac{\partial u}{\partial t} +
\frac{\partial u}{\partial x} = 0
$$
with periodic boundary conditions.
I'm not quite sure my scheme is conventional since it is mixing ideas from finite-difference and finite-volume methods in the follo... |
I am trying to solve two non-linear equations self-consistently in a Gummel loop. Sometimes (every once in a while), I get to a situation when the loop repeats itself with wrong solutions and a certain error persists. As a simple example, consider the following two equations:
\begin{align}
&y = -x + 1 \\
&y = \sqrt{x}
... |
I Need to to solve an generalized Eigenvalue Problem and to compare two Methods (QR and QZ) concerning their convergence rate and execution time.
I started with the Basic QR-Algorithm, implemented in Matlab, tested the results and in the last step i included double-shifts and Deflation strategies.
Now it is time to imp... |
I am having problems with solving a hyperbolic wave problem with Dirichlet BCs. I have tried reducing the time step sizes, which does not affect the results, and notices increasing the number of nodes makes the results worse. I have concluded the problem is with the boundary or certainly spatial.
My code is 1D, and the... |
I'm writing up a code to calculate the local energy for electrons in hydrogen like ions for a given wavefunction. My code is giving me weird results, which leads me to believe something is wrong.
Firstly, am I going about accepting/rejecting moves the right way? And am I doing anything weird in the accumulation phase w... |
I need to compute some integrals numerically. The integrand is this:
$$f(x,y) = \left ( \sum_{mn=-j}^{j}A(m,n)\dfrac{\tan^{2j+m+n}(x/2)}{(1+\tan^2(x/2))^{2j}}e^{iy(n-m)} \right )^{N}$$
Note: sums are finite. And I have to compute
$$\int_0^\pi \int_0^{2\pi}f(x,y)dydx$$
I have to do this for different values of $N$. I wa... |
I have an absolute value optimisation problem
$$\min_x \sum |r-Cx|$$
where $x$ is small around 200 dimension. But $C$ has lots of rows, $C_{30000\times200}$ and $r$ is $30000\times1$. So this will introduce large number of help variables for the absolute value.
Could someone recommend a package in Python that can solve... |
Given variables $a_1$, $b_1$, $c_1$ and $a_2$, $b_2$, $c_2$ representing the vertices of two plane triangles, how might one specify the requirement for the two triangles to intersect as an objective in a mathematical programming solver such as CPLEX?
|
Are upwind schemes such as Godunov type methods superior to central differencing schemes? Do the reasons include superiority in modelling hyperbolic problems with Dirichlet BC's?
|
I want to create a stairs plot with solid horizontal lines and dashed vertical lines. You can see an example of what I am trying to do in this question (scroll down a little bit). In the example, however, they use Python, but I want to do this in MATLAB.
My (simple) code is
k=-4:1:4;
a= (2*k +1)/2;
t=-4:0.1:4;
figure(... |
I would like to optimize a function of the following form:
\begin{equation}
\sum_{i,j=1}^N c_{i,j} \mathbf{x}_i \cdot \mathbf{x}_j,
\end{equation}
where $\mathbf{x}_i \in \mathbf{R}^d$. Is it possible to state this as SDP?
I guess that an SDP variable would be somehow related to the Gramian $G$ of the vectors $\{\mathb... |
I am using Fourier series to find the analytical solution to the 2D heat equation. The problem is that the integrals which are used to calculate the coefficients of the series cannot be solved analytically.
I am currently using GSL's Monte Carlo integration to compute them an this introduces error to the series. My qu... |
I am looking for an efficient algorithm to calculate the surface area of an irregular N-dimensional polytope.
I have a description of this polytope both as coordinates of the vertices as as linear inequalities.
|
I'm having difficulty understanding how to apply Newton iteration to nonlinear PDEs and then use a fully implicit scheme to time step. For example, I want to solve Burgers equation
$$u_{t} + u u_{x} - u_{xx} = 0$$
So discretising time using a Backward Euler
$$u_{t} = \frac{u^{n+1} - u^{n}}{h}$$
we find that
\begin{alig... |
I'm interested in how much 'signal' is retained from including k singular values in a Singular Value Decomposition, but I'm having trouble conceptualizing (or creating) a metric for 'signal retention'.
I can create $A_i$, a matrix which is created from the first $i$ singular values of $A$, but how do I compare $A_i$ wi... |
I just read Chapter 3 in "A Multigrid Tutorial" by Briggs/Henson/McCormick, link.
The text is about Multigrid cycles such as V-cycle, mu-cycle, FMG. What caught my eye: In most iterative procedures one checks whether it has converged to the desired tolerance/accuracy and if so, the procedure stops. But Briggs/Henson/M... |
I'm trying to solve coupled PDE by Crank-Nicolson (CN) and Newton-Raphson method with MATLAB. I have used CN method but not for coupled problem. Please if someone could help let me know to add more details about the equation.
Thanks in advance
Detail of coupled equation:
I’m going to solve Poisson-Nernst-Planck system ... |
I am using my own Routine to calculate the Cholesky-Factorization of a complex, positive definite symmetric Matrix.
My Code Looks like this:
void CholeskyDecomposition(Complex **L, Complex **A, const int dim)
{
Complex sum, t;
Complex sum1;
for (int k = 0; k < dim; k++)
{
// First, calculate th... |
I am solving a 1D advection problem of the the form $$d{Q}/dt = [A]{Q}$$ where {Q} is the vector of unknowns and [A] is the matrix of coefficients of spatial discretisation. I have worked out the eigenvalues of [A] to get an idea about the stability of the semi-discretised system and I am getting eigenvalues with posit... |
I have a problem with assesing the accuracy of my numerical calculation. I have a 2nd order ODE. It is an eigenvalue problem of the form:
$$ y'' + ay' + \lambda^2y = 0, $$
and the boundary condiations are:
$$ y(0) = y(1) = 0. $$
This equation describes a vibrating string, clamped at x=0 and x=1, with a certain mass dis... |
I am a bit of SAGE newb, so I apologize if this is a simplistic question.
I want to use SAGE to compute some invariants of elliptic curves defined over rings which aren't the integers $\mathbb{Z}$ or the rationals $\mathbb{Q}$. More specifically, I am interested looking at elliptic curves defined over the ring
$$
\ma... |
This answer to this question works only for situations in which the desired solution to the coupled functions is not restricted to a certain range.
But what if, for example, we wanted a solution such that 0 < x < 10 and 0 < y < 10?
There are functions within scipy.optimize that find roots to a function within a given i... |
I want to solve a pair of ODEs using the FEM solver of Abaqus. Is it possible for the user to supply the equation and ask Abaqus solver to solve the equations?
|
Whilst working with MATLAB recently I encountered something odd that I cannot explain. I was using the ode45 solver to solve a system of two coupled second order ODEs. I wasn't convinced about the results, so I tried something easier, just to see where it goes wrong. I uncoupled the equations and I swapped one of them ... |
I designed an algorithm to find the global minimum of a function and implemented it in MATLAB. And I also implemented the "Tunneling algorithm" for the global minimum of a function in MATLAB.
But now, I want an intelligent way to compare these two algorithms and see which one gets to the global minimum faster. Using th... |
I have seen a lot of literature, lecture videos, etc. on solvers/preconditioners for non-symmetric and/or indefinite systems. However, now I want to solve the mixed poisson/Darcy equation using the least-squares finite element method:
$$\int_\Omega\left(\boldsymbol{u}(\mathbf{x}) + \nabla p(\mathbf{x}) - \boldsymbol{g}... |
I want to build a new desktop PC for MD simulations of relatively simple protein/carbohydrate systems using mainly GROMACS and Amber force field. No ab initio or QM-MM simulations are intended for now. For instance, I have been working with a protein of approximately 1500 atoms in the presence of small carbohydrates (<... |
I am looking to find an algorithm/method by which I can detect regions of flow in a video. The video is that of a grayscale heatmap where the majority of the image is not in motion. The areas that are in motion generally appear as flickering/moving white dots, whereas in the rest of the image the dots do not move. The ... |
I am looking for an algorithm with the following characteristics:
It is used to generate the set of integer vectors $\mathbf k=(k_1,\ldots,k_m)$, where $k_i\leq K_i$, $k_i\geq 0$, and $K_i$ are given positive integers. That is, I am looking for the cartesian product of the sets $\{1,\ldots,K_i\}$.
Call $k=k_1+\ldots+... |
I want to solve a system of 7 coupled differential equations and 1 algebraic equation in MATLAB with the method of lines. I could do it for each independent equation with some assumptions, but I can't solve these 8 equation together. Can you help me?
|
I want to maximize an objective function using quasi-newton optimization method. But i couldn't find any function for maximizing a function. All inbuilt functions are for minimization. For eg. fminunc in matlab. How can i change my objective function to give it as an input to a minimization function, say fminunc and ge... |
You have questions through out the course that are worth 2 (if you get it perfect), 1 or 0 marks. The professor only takes into account the top 80% of questions, for example 2/2, 2/2, 1/2, 1/2, 0/2 and only 2/2, 2/2, 1/2 would count towards your grade. You are given the number of 2's, 1's, 0's and the total amount of q... |
I have an object with surface charge $\sigma$ for which I want to caclulate tangential electric field which would correspond to mathematical formulation:
$$
\vec{E}(\vec{x}) = \nabla_x \int \frac{\sigma_y}{|\vec{x} - \vec{y}|} dS_y
$$
where afterwards normal component $\vec{n} (\vec{E} \cdot \vec{n})$ is substracted.
... |
I have solved a numerical problem using two different sets of non-linear governing equations. I want to get an understanding of the stability of the methods relative to each other. To do so, I solving the problem with each method whilst keeping the time stepping schemes, time step and mesh sizes the same. I then run th... |
I am developing a finite element simulation and want to evaluate the errors in $H^1$ and $L_2$ norms. The problem is the classical Poisson equation, with Dirichlet B.C.:
$$-\Delta u=f\mbox{ in }\Omega,$$
$$u=g_{D}\mbox{ on }\Gamma_{D}.$$
I am using Lagrange bilinear 2/3D elements in the Galerkin approach. The error es... |
I have just started using dl_poly classic to work in Molecular Dynamics simulations. It produces a HISTORY file which records the trajectory after applying boundary conditions. Now, here I don't understand, how I am suppossed to calculate diffusivity using folded trajectories. Secondly is there a way in dl_poly to unfo... |
My question concerns the following paper: A Conservative Adaptive Projection Method for the Variable Density Incompressible Navier–Stokes Equations (http://www.sciencedirect.com/science/article/pii/S0021999198958909)
It describes a second order accurate projection method to solve incompressible Navier Stokes equations.... |
I need to solve a diffusion equation in periodic boundary conditions using fipy but I would like to have a drift term that depends on the position so like this:
$$ \partial_t u(x,t) = \partial_x^2 u(x,t) + \partial_x(\omega(x)u(x,t)). $$
I am new in fipy and I am able to solve diffusion with diffusion coefficient spati... |
I have my own little subroutine for numerical integration (quadrature), which is a C++ adaptation of an ALGOL program published by Bulirsch & Stoer in 1967 (Numerische Mathematik, 9, 271-278).
I would like to upgrade to a more modern (adaptive) algorithm and wonder whether there are any (free) C++ libraries that provid... |
I am solving a 1D advection problem of the the form
$$dQ/dt=[A]Q$$
where {Q} is the vector of unknowns and [A] is the matrix of coefficients of spatial discretisation. I have worked out the eigenvalues of [A] to get an idea about the stability of the semi-discretised system and I am getting eigenvalues with zero real p... |
I'm a little bit about the SVM.
I'm actually understanding for which purpose Support Vector Machines are used.
The aim is to find the biggest (best) hyperplane between two different data clusters.
The question is here do we apply SVM after we have classified data points or is Classification also a task of SVM?
The exam... |
I'm looking for a program to obtain meshes to finite element codes 2D and 3D as complete as possible, preferably in fortran 90 or C/C++.
For example, softwares "Triangle" or "TetGen" generate meshes but I would like a software that creates meshes with more information (for example, normal vectors).
May you suggest to ... |
I acknowledge the following post where a similar question is posed and a very nice answer has been provided:
Is there a mesh generator that will generate zero thickness elements for interfaces?
However, the interface created there consists of 2 noded line elements.
My question is as follows:
Is there a convenient m... |
I want to solve this simple advection equation using the finite element method.
$$\frac{dc}{dt}+v\cdot\nabla c = f$$
What's the best FEM discretization for this? I have tried using the standard/primitive least-squares finite element method for this but it seems I still get oscillations.
|
I have a large matrix $A \in \mathcal{R}^{N\times N}$ which is supposedly positive-definite, but numerically low rank. Instead of $A$, I have its incomplete Cholesky factor $G$, such that $A \simeq GG^\top$. $A$ is very large, so I can't keep it in memory, but $G$ is small enough. I need to numerically solve:
$$ (A^{-1... |
I was having some lectures and I didn't quite understand the following: let's say you have a grid like
$$G=\{ x \in \mathbb{R} : x = x_j = hj, \ j = 0,1,...,n,\ h=1/n\}.$$
And you write in difference form the following 1D diffusion equation (comma before index indicates derivative along the index):
$$-(au_{,1})_{,1}... |
I have a piece of code in Fortran90 in which I have to solve both a non-linear (with the Newton-Raphson method, for which I have to invert the Jacobian matrix) and a linear system of equations. When I say very small I mean n unknowns for both operations, with $n\leq4$. Unfortunately, $n$ is not known a priori. What do ... |
I have an ODE of the form
$$C_1 d_y u + C_2 (d_y u)^n = C_3 y + C_4$$
with boundary conditions $u(0) = 0, d_y u(L) = 0$, where $C_1 \to C_4$ are known constants, and where $0 < n \leq 1$ is a real number.
Special cases:
If $C_2 = 0$, this is a simple linear ODE and is straightforward to solve.
If $C_1 = 0$, I can take... |
I have a program that has a nested loop, together with its parent running at $O(n^2)$ complexity performing floating point arithmetic.
I see that the performance of the code when compiled with icc is comparable to that of g++ -ffast-math.
Does this mean that icc is switching on an equivalent of the -ffast-math implicit... |
First of all, I hope I am posting this in the correct place. If not, I'm sorry and could you please direct me to where I should post this?
Problem: You are given a set of vectors, $\{\mathbf{a}^i\}_{i=1}^{24}$, and matrices $D_1$ and $D_2$ (both of dimension $[10\times6]$. Let the following be true:
$\sum_{i=1}^{24} ... |
I am wondering what chaotic systems are from the perspective of numerical analysis. I am talking about 'deterministic chaos' such as for instance the 'logistic map' exhibits it. That is, the solution after many steps in the iterative solution is highly dependent on the initial conditions. It is clear that it will also ... |
I'm trying to make a neural network using MATLAB. But I'm finding that many problems do not get solved.
These are the formulas on which I based:
$$
Layers\ in\ Neural\ Network = [0, ..., i, ..., out]
$$
$$
W_{i,j} = weights\ of\ the\ layer_i\ to\ layer_j\ \in M_{m\ x \ n}\\
B_{i,j} = weights\ of\ the\ layer_i\ to\ laye... |
I do have a stirred tank reactor with two inlets and one outlet. Several components enter the reactor at inlet 0 and particles at inlet 1. All component from inlet 0 adsorb on the particles from inlet 1.
I can write a mass balance like:
\begin{equation}
C \cdot V_{liquid} + Q \cdot V_{particles} = 0
\end{equation}
C i... |
This question has also been asked at Stack Overflow.
This is a very general question regarding the maximum size of a set of linear equations to be solved by today's fastest hardware, in the form:
$$X = AX + B$$
Where we solve for $X$, and
$A$: $N\times N$ a sparse matrix of floats;
$B$: $N$-vector of floats.
This be... |
This might be better somewhere else, but I'll give it a try here first.
I'm implementing a finite volume scheme for an axisymmetric problem in C, and am looking for a more efficient way to handle all of the necessary parameters each function needs.
Is a pointer to a struct better, more efficient, or easier in implemen... |
I am trying to write a code to calculate the potential and forces, for the same using ewald summation.For this purpose, the formula for potential and force I have used is :
$$
U = U^{(r)} + U^{(k)} + U^{(bc)} + U^{self}
$$
where the k-space contribution of potential is given by
$$
U^{(k)} = \frac{1}{2\pi L^{3}}\sum_{... |
I am trying to think of what this kind of problem is called. I illustrate it with a telegrapher's equation with (hopefully) standard notation.
Find $u:\Omega\times \mathbb{R} \to \mathbb{R}$ such that
$$
\begin{align*}
u_{tt}+u_t-\nabla^2 u &= 0& \mathrm{for}\, (x,t)\in \Omega\times \mathbb{R}\\
u&= u_{bc} \sin(\omeg... |
does anyone know any matlab algorithm that can help me generate a random matrix with REAL EIGEN values?
Thanks.
|
Suppose that there are $N$ pieces of data, each of which contains $M$ parameter values such that $N >> M$. If we put this information into matrix form ($N$ rows, $M$ columns) and then compute the covariance matrix of this data, $C$, then we can consider that $C_{i,j}$ is the covariance between parameter $i$, $p_i$, and... |
I've been working on calculating large factorials ($N>10^9$) and I was wondering if it wasn't faster to use the GPU to run the calculations on something like openCL. What I realized however was that, not only I didn't know if it was worth it in that case, I couldn't tell when it is or isn't appropriate to use a GPU for... |
I want to solve a set of hyperbolic equations (not the Euler equations) using an upwind type method. I am interested in using a first order upwind scheme and one that is not based on the method of characteristic and does not require the eigenvalues and eigenvector. So far, I have understood that I first need to solve t... |
I need to solve to solve a "large" symmetric sparse linear systems, with matrix size 8000?
I heard about HSL, ITPACK, but I don't know how to use them, and I am working in C language.
|
Do all BLAS routines compute the respective operation with minimum error ?
i.e. Is the reduction in sdot computed with least error ?
I need to call these routines through gsl/gsl_cblas.h.
|
I have a matrix which is "almost" like an upper triangular just that the last row has non zero elements. And I want to perform the QR decomposition on that matrix.
Does anyone know the "name" of such a matrix? And also since I don't want to use the built in matlab QR function for such a matrix, can anyone suggest a bet... |
I'm putting together a very simple integration program in FORTRAN using MPI. I have done this with C and all was well.
However, in my "MAP_REDUCE" call, the comm argument seems problematic. I have tried several different values and have gotten several error messages when the program runs.
Note: the program does comp... |
I have to solve the following least squares problem:
\begin{equation}
\| \left[ \begin{smallmatrix} \mathbf{L} \\ \mathbf{I} \end{smallmatrix} \right]\mathbf{x} - \mathbf{b} \|_2^2
\end{equation}
where $\mathbf{L} \in \mathbb{R}^{n\times n}$ is $O(n)$ sparse lower triangular matrix, $\mathbf{I} \in \mathbb{R}^{n \times... |
Question
I am performing least squares fitting using an objective function of the form $f(\mathbf{x})$ where $\mathbf{x}$ is a vector of parameters containing around 20 elements.
The model function is somewhat expensive to evaluate so I am exploring options for reducing the number of parameters in the model. Are there... |
What kind of optimisations does the option -ffast-math do ?
I saw that the time taken for a simple $O(n^2)$ algorithm being reduced to that of an $O(n)$ algorithm using the option.
|
Suppose $A\in\mathbb{R}_+^{n\times n}$ is symmetric. I would like to factorize $A\approx UU^\top$ by solving
$$
\begin{array}{rl}
\min_U & \sum_{ij} \left(A_{ij}\ln\frac{A_{ij}}{[UU^\top]_{ij}}+[UU^\top]_{ij} \right)\\
\textrm{s.t.} & U\geq0,
\end{array}
$$
for a local minimizer.
The objective of this problem is KL di... |
I want to create a finite element code in fortran. There are many libraries out there on internet. Can someone suggest me a good finite element library in fortran?
I am looking for
Ease of use (using fortran language specifically)
Well documented
free
|
I was reading some work by Butcher and I came across Pade approximations and the correlation between them and stability functions for some Implicit Runge-Kutta methods. For example, in this Pade table for the exponential function, we see that the $(2,1)$ Pade approximation
$$\frac{1+\frac{1}{3}z}{1-\frac{2}{3}z+\frac{1... |
I have experimental data containing horizontal and vertical components of speed and I need to evaluate this:
$$
\frac{\partial^2}{\partial x_i \partial x_j}\left(v_iv_j\right)
$$
Denoting $U$ as horizontal component and $V$ as vertical, we should obtain:
$$
\frac{\partial^2}{\partial x_i \partial x_j}\left(v_iv_j\right... |
I would like -if possible at all- to represent and handle missing data (in the statistical sense) within the standard IEEE-754 format. Seeing that for both SNaNs and QNaNs various bit representations are possible, I wonder if they all can arise from standard computations or some can be made inaccessible to paths other ... |
I am facing the following problem. I need to solve numerically a set of coupled equations
$$i\frac{d}{dt}f_{n}^{(i)}(t) = \left[U\cdot n(n-1) + \mu\cdot n\right]f_{n}^{(i)}(t) - \sqrt{n+1}\Phi_i^{*}\ f_{n+1}^{(i)}-\sqrt{n}\Phi_{i}\ f_{n-1}^{(i)}$$
where $U,\mu$ are just constants and
$$\Phi_{i} = \sum\limits_{n=1}^{N... |
Let's say I'm optimizing something. To pick an arbitrary example, let's say I'm choosing the shape of some part to maximize strength-to-weight ratio. So I get some FEM software, parametrize the shape, and run gradient ascent or whatever to find the optimum shape.
When I do this procedure, I would generally expect that ... |
When using many iterative methods, whether for solving linear systems, looking for steady-state convergence in CFD, etc., the semilog plot of the residual often shows "humps" as the residual decays. These humps generally appear in a regular pattern (same number of iterations between them for example). I've seen cases w... |
I am writing a code to perform hybrid monte carlo molecular dynamics. To do this, I need to have a code to initialize the velocities of all particles according to a maxwell distribution. The code is as follows
subroutine thermalize
implicit none
double precision :: MassInv
double precision ::... |
When assembling all the stiffness matrices for each element together, is the final matrix size equal to the number of joints or elements?
|
I am trying to use ARPACK to diagonalize a sparse Hermitian matrix.
My program is executing without error but returning incorrect eigenvalues. I have tried to trace the problem back.
The work is done by two functions:
znaupd and a function I have defined av to perform matrix vector multiplication.
znaupd takes a vecto... |
I work on geological problems and I use the Finite Element Method. But this question can be applied on other classical mechanical problems.
I work on implicit 3D surfaces (which represent the limits between two geological layers aka two media).
I have to impose displacement on these surfaces (Dirichlet Condition). The ... |
I'm working with functions which, in general, are much smoother and better behaved in log-log space --- so that's where I perform interpolation/extrapolation, etc, and that works very well. Is there a way to integrate these numerical functions in log-log space?
i.e. I'm hoping to use some sort of simple trapezoidal ru... |
This is related to a question I had asked earlier, with the distinction that earlier I did not have a non-linear objective functional to minimize. The problem is reproduced below with added information. I used MATLAB to solve the problem posed in that question.
Why I need to minimize the objective functional given belo... |
Let $n,m\in \mathbb{N}$ be such that $m\ge n$.
Let $M_1\in \mathbb{R}^{n\times n}$, $\{M_{2},M_{3} \} \subset \mathbb{R}^{m\times m}$ be symmetric positive definite and computationally cheap to invert. You can think of them as a diagonal matrix. Let $S\in \mathbb{R}^{n\times m}$ be full rank. Let $B\in \mathbb{R}^m$... |
I know that spectral-methods which are weighted-residual methods can be applied to solve for the incompressible N-S equations. In particular, they are applied to Direct Numerical Simulations (DNS) for studying turbulence. However, I'm still unclear how the continuity condition is enforced in such cases, and what trial ... |
Problem statement
I implemented geometric multigrid for $-\nabla^{2}=f$ where $f=\frac{3\pi^{2}}{4}sin \frac{\pi x}{2} sin \frac{\pi y}{2} sin \frac{\pi z}{2}$ on $\Omega \in [0,1]$ on a unit cube. Dirichlet boundaries on the left face, bottom face and front face is 0. Neumann boundaries on the top, right and back face... |
The program should first read from the keyboard the values of a and b then estimate the area under f(x) in
the interval [a, b] using Simpson’s 1/3rd rule and display the estimated area and the error in the estimation. Which that f(x)=sqrt(x+1)+0.25,
I have an syntax error in data array and this function:
float f(float ... |
Suppose I have this set of equations:
$$a = x + z\qquad (1)$$
$$b = y + \frac{z}{2}\qquad (2)$$
$$ z = k_0x\sqrt{y}\qquad (3)$$
Where $a$, $b$ $\in \mathbb{R}$ and $k_0 > 0$. The values of $a$ and $b$ assume that neither x nor y can be less than zero, how do I robustly solve this system? I have attempted the Newton-Rap... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.