instruction stringlengths 43 28.1k |
|---|
Consider the Laplace problem:
\begin{align}
-\nabla^2 u = f \qquad \text{in } \Omega \\
u = 0 \qquad \text{on } \Gamma
\end{align}
The weak problem is find $u_h \in V \subset H^1$ such that $\forall v_h \in K \subset H^1_0$, $u_h$ satisfies:
\begin{equation}
\int_\Omega \nabla v_h \cdot \nabla u_h \, d\Omega = \in... |
I am trying to evaluate and analyse a NURBS curve to generate a mechanism. I understand that the general form of a NURBS curve is commonly written as a parametric equation in the form of $f_{par}(t)$.
Now, the criteria to generate the above mechanism from a curve are well-established. However, they are based on the imp... |
Consider the problem $-\Delta u = f$ in $\Omega$, with $u=0$ on $\partial \Omega$. Suppose that $\Omega$ is a polygon and that we approximate the solutions to the previous problem using Lagrange finite elements on a triangular mesh. When solving such a finite element problem there are multiple sources of error:
The di... |
Edited
Given a computer model $F:\mathbb{R}^3 \to \mathbb{R}$, with inputs $x, w$ and $z$, and output $y=F(x,w,z)$, where for any input, we are able to evaluate the output, my goal is to tune the inputs to achieve a certain state change (change in output).
More precisely:
Goal: Given an input $x_0, w_0, z_0$ and an out... |
The first guess is using the forward Euler approach. The first jacobian is using finite differences. Then NR method is used to solve for the next iteration and Broyden's method is used to update the jacobian until tolerance is met. The figure shows the results that I got compared with correct results. What improvements... |
I have written block version of GMRES by referring [1] and MATLAB implementation of gmres. I need to write it for complex matrices. My block implementation when run on single RHS is giving correct answer but when run with block RHS is converging but LHS is not matching. Can anyone please help me to debug or point in di... |
This question is neither scientific nor technical but more career related.
I am at a junction in my professional life where I need to make a decision with regard to the future of my career. At the moment I am an R&D manager and my job is very management-oriented (supervising, problem identification) so I asked my own m... |
I often hear that cell centred finite volume is second order accurate but at the same time I come across notions of high order FVM flux schemes. Is there a distinction between the two? If I were to use something like a first order upwind referencing vs something like a third order MUSCL would that make my entire FVM sc... |
I want to solve a 2-dimensional particle in box problem with two electrons in the quantum well.I would like to take into account spin of electrons and Coulomb interactions to compute singlet and triplet eigenstates.
My question is it possible to solve this problem using finite difference method, if yes then please guid... |
This is the same question as this one, except for Python instead of Mathematica. Basically, the MATLAB software PPLANE is a staple in ODE courses. Is there a Python equivalent?
I don't know much about the software since my class just started using it, but I basically need it for plotting nullclines and trajectories, as... |
I have a linear* problem which arises from an integro-differential system, and writes:
$$
(\mathbf{I}+\lambda \mathbf{A})x = b
$$
where $\mathbf{A}$ is a real full matrix, size $n\times n$, but is not symmetric and has some zero eigenvalues. I know what these eigenvalues correspond to.
When $\lambda$ increases (but is ... |
I'm implementing a solver of Finite Element Method, and to solve the linear system of equations I'm using gmres from MKL of Intel. Exists the option with and without a preconditioning. In what case it is not necessary the preconditioning?
The matrix is sparse and not symmetric.
|
I do a lot of 2D discrete FFT in python using np.fft.fftshift(np.fft.fft2(y)), then throw away 90% or more of the array, keeping only the central low-frequency area.
I understand that there's .rfft2() for cases where the input is real.
I'm wondering if there are significantly faster ways than numpy's fft to do this, es... |
This is a continuation of my previous question. I am trying to effectively compute a bound for the roundoff errors in some FEM computation (2d polygons, triangular meshes). Below I will write some of my computations which lead to a quantifiable bound (if I'm not mistaken), but the error is quite large for small mesh si... |
I am following this example
https://scikit-fuzzy.github.io/scikit-fuzzy/auto_examples/plot_tipping_problem_newapi.html
from documentation of scikit-fuzzy library,but I have a question in the figure why the triangle of both low and high is colored when the result is for example is 14.5%?
Is that righ? the low and high i... |
Engineering FEM
When I studied engineering, I learned the traditional approach for finite elements for elasticity. The point was to solve the PDE $-div(\sigma)=f$ as:
Multiply your PDE with a test function, integrate, find the weak form: $\int \sigma(u): \epsilon(v) - \int v f = 0$
Interpolate $u=\sum_i u_i N_i$, set ... |
To compute the $N$-point DFT
$$ X[k] = \sum_{n=0}^{N-1} x[n] W_N^{kn} $$
where $N = N_1 N_2$, we can write the indices as $n = N_2 n_1 + n_2$ and $k = k_1 + N_1 k_2$, (effectively packing the data into a 2D array) and then
$$
X[k_1 + N_1 k_2] = \sum_{n_1=0}^{N_1 - 1} \sum_{n_2 = 0}^{N_2 - 1} x[N_2 n_1 + n_2] W_N^{kn}
$... |
I'm following this low-pass filter example in the text "Image Operators: Image Processing in Python 1st Edition" by Jason M. Kinser, but can't seem to duplicate their results.
The text's code:
import imageio
import scipy.fftpack as ft
import mgcreate as mgc
amg = imageio.imread('data/reschartsmall.png', as_gray=True)
... |
I have been using Pointwise for grid generation and found the quality of smoothed grids to be stunning.
I am not aware of any free/open source alteranative that offers the same capabilities for structured grids (I am not interested in unstructured meshes).
I am aware of Meshlab but never used it (it doesn't even have u... |
Consider the following differential equation
\begin{align}
\frac{\partial f(u)}{\partial x} &= g(x), \ \ x\in [x_{L},x_{R}] \label{Eq2.2} \\
u(x_{L}) &= g_{1}
\end{align}
where $f(u)$ is a nonlinear function. Let $\{x_{i}\}_{i=1}^{N+1}$ be a partition of $\Omega$ with $N$ elements such that
\begin{equation}
x_{L} = x_... |
I am currently solving the harmonic equation using a P1 FEM discretisation. The resulting matrix $A$ is SPD and fairly sparse so I use a preconditioned conjugate gradients (CG) solver to find a solution. I have tried to accelerate the convergence both through a Jacobi preconditioner and an incomplete Cholesky precondit... |
I have always taken for granted circuit simulators and I didn't spend time understanding now. I wish to understand better now.
Normally when you forward simulate ODE systems there is a single dynamic equation which you forward integrate(ex, simplest way is Eulers method). What I am wondering about is in the case of cir... |
I did this simple analysis on RFEM, of a rigid-supported beam loaded with a point moment. Before analysis, I didn't assign any kind of mesh manually. When I turn on the FE Mesh visible on Project Navigator, RFEM highlights the two end nodes of the member. I assume that if no mesh is defined manually, RFEM uses the end... |
I am looking for some LBB-stable velocity-pressure combinations for incompressible Navier-Stokes where the pressure space is element-wise discontinuous, preferably with a linear variation elementwise. I can think of two options: (i) Discontinuous Galerkin and (ii) Crouziex-Raviart element, but I am not sure which one w... |
For the past couple of days, I have been thinking a lot and searching online for an algorithm capable of estimating the number of Self-Avoiding Walks (SAW) of length $n$ in $\mathbb{Z}^2$. There is a very simple way to do so by simply generating all random walks of length $n$ and then checking whether each one is self-... |
Suppose I have a triangular element with vertices ${\vec{r_1},...,\vec{r_3}}$ and a function $f(\vec{r})$. I want to calculate the fourier integral over this triangle such that:
$$F(k_x,k_y)=\int \int f(x)e^{-j2\pi(k_xx+k_yy)}dxdy \, .$$
Normally, for any integral inside such a triangle element, I would do the master e... |
I want to simulate the hyperbolic partial differential equation
$$W_{tt} + V W_{tx} + k_E V W_x + k W_t = 0,$$
but I am having trouble finding a discrete analog of this equation which is numerically stable.
I introduced central differences in both space and time. Time and space are discretized via
$t_n = n \Delta t$ an... |
Any literature that extensively discusses the ability to strongly inter-/extrapolate computationally on little empirical data?
This topic has fascinated me, but I find that it seems a bit novel.
Particulary, instead of gathering large amounts of empirical observations, is there something that could guide interpolating ... |
I am trying to import data generated external to Fluent using CGNS (CFD General Notation System) files. The data consists of velocity vectors, temperature, pressure, density, and species mass fractions.
The procedure I have followed :
Export an empty mesh (variables were initialized with junk values) form fluent in th... |
To investigate a counter-current flow heat exchanger while considering temperature dependent physical properties (such as specific heat $c_\textrm{p,i}$, heat conductivity $\lambda_\textrm{i}$, viscosity $\eta_\textrm{i}$ ...) I am trying to solve a system of equations by finding its roots using scipy.optimize.fsolve()... |
Suppose for a grid-based calculation a grid is used such that the grid Jacobian is discontinuous. For example, in 1D, for a domain $x \in$ [0,1], one half of the domain is covered uniformly by twice as many grid points as the other side of the domain (and this always remains so as the number of grid points is increased... |
I am trying to simulate light propagation on python using FFT following the Fresnel diffraction equation given on Wikipedia:
The problem with this is that the output matrix from the DFT would be given in coordinates $(p,q)$, which would inversely scale with my variable propagation distance $z$. To use the new $(x,y)$ ... |
I’ve been facing a problem of solving linear systems Ax=b arising from discretized PDEs (Stokes equations in particular). Nively, it seems that solving Ax=b should not take much more time than simply multiplying matrix A by some vector v as long as A is sparse. More specifically, when discretizing a linear PDE, one end... |
I am new to the field of magnetostatics. I wish to write a 2D finite element code for obtaining the magnetic field inside a solenoid coil. I have started with a 2D code and have followed the method as described in the book by J.Bastos and N Sadowski. I managed to get the solutions and verified it from FEMM (a open sour... |
Is there a method for finding the number of eigenvectors with a given eigenvalue? I do not need the eigenvectors themselves, and to find the eigenvectors seems quite tough, given the comments on the answer to the question Compute eigenvectors of a matrix with known eigenvalue spectrum.
I have many randomly-generated ... |
I am a newbie in CFD and single/multiphase flow and transport in general. As part of my quest to learn, I am trying to model solute transport around a solid object in the center of a 2D domain. The governing equation is the advection-diffusion equation, given as:
where C is the concentration, v is the flow velocity, D... |
I am trying to derivative the equations from [1] for a compressible Volume-of-fluids formulation but I am stuck in one of the last steps and would like to request some help to solve it.
The governing equations are:
Mass conservation:
$$
\frac{\partial (\alpha_k \rho_k)}{\partial t} + \nabla \cdot (\alpha_k \rho_k \vec... |
I am facing an issue with convergence of a contact problem consisting of three successive bars, as presented below.
A force is applied on the right hand of the first bar so there is contact between both the first and the second bar and the second and the third bar. Another bar is linked to the second bar so there is n... |
In Numerical Linear Algebra by Trefethen & Bau, it is claimed that subtraction is backward stable. Here is the proof:
Let $f(x, y) = x-y$ and let $\tilde f(x,y)$ be the answer you get when doing $x-y$ on a computer. We have $$\begin{align*}\tilde f(x, y) &= (x(1+\epsilon_1) - y(1 + \epsilon_2))(1 + \epsilon_3)\\
\end{a... |
I would like to insert a series of vertical lines to divide up a line chart. The figure below shows the chart so far, but instead of the orange diamonds I want vertical lines that go from top to bottom of the figure. What's the easiest/best way to do this?
Context: this is a trust-region optimization problem showing th... |
Suppose that I have a very long and tedious set of differential equations. After discretization, I can get a mapping $f:\mathbb{R}^N \to \mathbb{R}^N$ such that solutions $\phi =(\phi_0,...,\phi_{N-1})$ to the discretized diffferential equations are exactly the zeros of $f$, i.e., $f(\phi)=0$.
Now say I want to find so... |
I have a system of equations that have the following structure. Let $x\in\mathbb{R}^m$ and let $x_k$ be the $k$-th element of $x$. Let $H_k\in\mathbb{R}^{m\times m}$ for $k=1,\ldots, m$. I need to find the $x$ satisfying,
\begin{align}
x_k = x^\top H_k x
\end{align}
for $k=1,\ldots,m$. I know that I can solve this syst... |
I am trying to solve problem $15.1$ from Numerical Linear Algebra by Trefethen and Bau, which reads
Determine whether the algorithm is backward stable, stable but not backward stable, or unstable.
Data: None. Solution: $e$, computed by summing $\sum_{j = 0}^{\infty} \frac {1}{j!}$ from left to right, and stopping whe... |
I apologize in advance if the question has been posted before or if it sounds a bit naive.
I am writing my own code in MATLAB for a staggered finite element solver for fluid-structure interaction problems with small displacements. So far, I have benchmarked the fluid and solid solvers separately and both are working fi... |
I am learning C++ scientific computing with "Parallel scientific computing in C++ and MPI A Seamless Approach to Parallel Algorithms and their Implementation" since it kept coming up a lot in questions, for example.
The problem is that it is really outdated and when compiling I get lots of errors. Up until now, I've be... |
I am trying to solve this equation for $v_{Sl}$ in the range $[0.001,1]$ to obtain the values of $\delta_l$. I have tried Fsolve with python, which gives results where the values of $v_{Sl}$ are between $[0.001,0.1]$ when I put an initial guess of $\delta_l$ that is close to the solution. But, when I vary the initial ... |
Could we train an AI to find only Mersenne primes and beat the current record $2 ^ {82 589 933} - 1$?
A Mersenne number is a number of the form $2 ^ n - 1$ (where n is a non-zero natural number), a prime Mersenne number (sometimes Mersenne prime number), is therefore a prime number of this form.
There is an efficient p... |
I'm trying to understand how Nitsche's method works in practice. I understood the theoretical principle behind it, but what I can't understand is its implementation. More precisely, I'd like to solve the classical Poisson equation on the square with classical conforming degree 1 finite elements using Nitsche's method f... |
I have a problem dealing with heat transfer which is spherically symmetrical. I was thinking it should be possible to solve this as a 1d problem in spherical coordinates using the radius only.
Normally, the 1d heat equation can be solved as:
$$
u_n^{k+1} = u_n^{k} + \frac{\alpha \Delta t}{\Delta x^2} \left(u_{n+1}^{k}... |
I have a real square matrix $X$ which I need to perform a Singular Value Decomposition on. Now, performing the operation
$$
X = USV^T
$$
as $U$ and $V$ are orthogonal, we know that $\det(X)=\pm\det(S)$ and $\det(S)$ is non-negative as singular values are non-negative.
Now, I need to know the sign of the determinants of... |
Is solving a $QP$ (i.e.: quadratic program, hence a quadratic objective function with linear constraints) easier than solving a $QCQP$ (ie.: quadratic constrained quadratic problem) with linear objective?
I am aware that $QP \subseteq QCQP$ and that $QCQP$ is generally harder than $QP$.
Moreover, i am aware that a line... |
I am trying to fit supernova data into a scipy.curve_fit function. However, when my code runs, the values of the unknown variables given by popt are exact. Also no covariance matrix is getting produced. The code does not give the correct values for the unknown variables $K_1$, $K_2$, $\alpha$ and $\beta$. The model th... |
I am trying to fit a differential equation to some data and obtain the parameters of the underlying model. This requires me to try out various parameter values, but this often gives me an ODEintWarning. Having a few of these warnings is OK, but having too many will cause my program to crash quite often (I work using Sp... |
Vlasov equation is pretty straightforward
It would be easy to solve with Fem packages like firedrake, but in my case I have 6d distribution function: it depends on 3d vector of spatial coordinates and 3d vector of impulses.
In plasma physics particle in cells is the method of choice for such problem, but I'd like to ... |
In Fong, Saunders: LSMR: An iterative algorithm for sparse least-squares problems, section 3.3 one reads
Since only the last diagonal of $\tilde{R}_k$ and the bottom 2x2 part of $\hat{R}_k$ change each iteration, this estimate of $x_k$ can again be updated cheaply. The pseudocode, omitted here, can be derived as in se... |
I am trying to modify my simulations on population dynamics using the split-operator method from 2D two-level real Hamiltonain $$H_{2D} =T(x,y)\otimes1_2 +\begin{pmatrix} -z & y\\
y & z\\
\end{pmatrix},$$ to a complex 3D two level Hamiltonian
$$H_{3D} =T(x,y,z)\otimes1_2 + \begin{pmatrix} -z & x+iy\\
x-iy & z\\
\end{... |
If I want to build a solver for this following problem:
1. There is stagnant water governed by the Navier-Stokes equation in the domain.
2. Air bubbles (µm to mm in size) are produced from an arbitrary point within the domain, and their movement will obey NS-equation as well.
3. Particles (having similar sizes like the... |
The common form of initial value problem that can be solved using ODE integrator is
$$
\mathbf{x'}=\mathbf{g}(\mathbf{x}, t)
$$
where $\mathbf{x'}=\partial\mathbf{x}/\partial t$. The initial conditions $\mathbf{x}(t=0)$ are given. There has been a lot of prewritten solver that can be used to solve the equation above (e... |
I wanted to solve a 1D potential barrier problem. It seemed easy enough to do: set a travelling wave coming from the left, part of it gets reflected by the barrier, and part of it gets gets transmitted on the right:
$$\Psi(z) = \left\{
\begin{array}{ccc}
e^{ikz} + r e^{-ikz} & \mathrm{if} & z<=0 \\
te^{ikz} & \mathrm{i... |
I am a beginner in programming. I need to program a mutualism model of two species in python that would solve and graph using the following equations:
$$
\frac{dN_1}{dt} = N_1(r_1 - e_1N_1 + \alpha _{12} N_2)
$$
and
$$
\frac{dN_2}{dt} = N_2(r_1 - e_1N_2 + \alpha _{21} N_1)
$$
$N_1$ is the population of Species 1. The v... |
There are a lot of books about FEM, which are really friendly to engineering students. Through these books, we can know how to use shape/test functions based on the variational principle. But I'd like to solve the mixed formulation of Poisson equations (i.e. Darcy equation), which reads
$\mathbf{u}=-k\nabla h$
and
$\na... |
For my research, I need to integrate the following function:
$$
W(z)=\int_0^{\infty}dx\ w(x,z)\\
=\int_0^{\infty}dx\frac{e^x}{(e^x+1)^2}\log{\left(\frac{e^{z^2/4x+x}+1}{e^{z^2/4x+x}-e^x}\right)}\\
=\int_0^{\infty}dx\frac{e^x}{(e^x+1)^2}\log{\left(\frac{e^{z^2/4x}+e^{-x}}{e^{z^2/4x}-1}\right)}
$$
where $z > 0$. The nume... |
What is the algorithm which transforms the octree/quadtree into a grid? i.e, getting the adjacency or connectivity between the cells in order to be able to perform interpolation, gradient,...etc. I am trying to do it on the fly. I ended up using the following procedure:
Check if a voxel is to be divided.
If true, crea... |
The square root function for an old (pre-IEEE floating point, no hidden bit) mainframe (the Soviet BESM-6 works as follows:
Making sure the argument $X$ is non-negative
Splitting $X$ into the exponent $E$ and the 40-bit mantissa $M$, the latter being in $[0.5, 1.0)$.
Computing $T := -0.204405847 M^2 + 0.890194099 M + ... |
I have the following problem
$$\underset{Z}{\min}\left\|X-AZBH\right\|_F^2+\left\|H-B^{T}Z^{T}A^{T}X\right\|\\
\text{subject to } Z^{T}Z=I$$
How to solve the variable $Z$?
|
I have a set of data $(x_i,y_i,y'_i)$, $i=1,\dots,N$ and I want to fit an interpolating curve $f(x)$ which matches both the data $y_i$ and the first derivatives $y'_i$ at the nodes $x_i$,
\begin{align}
f(x_i) &= y_i \\
\frac{d}{dx} f(x_i) &= y'_i
\end{align}
At first I thought that piecewise cubic Hermite interpolation... |
I am experimenting with ways to call compiled programs from Python. My primary interest is iterative optimization methods, so I'm testing an implementation of Newton's method to solve a logistic regression problem.
In my tests, a Fortran implementation with f2py is more than 4x faster than an implementation using C++, ... |
Feasibility of synthetic, simulated predictions w/o matching against empirical physical measurement?
This has puzzled me lately.
So, while it's sometimes common to approach modelling and model development by making empirical observations and measurements first (e.g. small experiments). And then developing a model that ... |
I need help. Do you know such a library for 3D triangulation - CGAL? How to get from it the order of joining the vertices to enter into your variable? Found nothing on the official site. Thanks!
|
What's the relationship of machine learning and mechanical simulation?
Particularly, machine learning is about learning from a large sample and predicting based on filters tuned on that.
Mechanical simulation is about using physical laws and seeing what numbers are produced using those.
If one deep learns mechanics, th... |
I am trying to model the 1D advection-diffusion equation:
$${\partial c \over \partial t} = D_c{\partial^2 c \over \partial x^2} -u{\partial c \over \partial x}.$$
With Robin boundary conditions that has a total flux BC at the left boundary (x=0):
$$uc-D_c{\partial c \over \partial x}=uC_f,$$
and a zero-flux BC at the ... |
I'm trying to solve the Schrödinger equation for the hydrogen atom in the following form numerically:
$$\left[-\frac{\hbar^2}{2m}\frac{d^2}{dr^2}+V(r)+\frac{\hbar^2l(l+1)}{2mr^2}\right]R(r)=ER(r).$$
With the Coulomb-Potential $$V(r) = -\frac{e^2}{4\pi\epsilon_0r^2}.$$
By introducing the dimensionless variables $x = r/a... |
Given two sets of points $p_{\text{in},i}$ and $p_{\text{out},j}$ inside and outside of what I intuitively call a "region", I would like to estimate and describe the boundary of this region. Two kinds of answer are welcome:
A parametrized description of the boundary
A estimation function that predicts whether a new po... |
I've asked this at stackoverflow but maybe this community will have a better idea of the answer.
I'm currently trying to develop a function that performs matrix multiplication while expanding a differential equation with odeint in Python and am seeing strange results.
I have the below matrix of values and function that... |
I am coding a function to obtain a randomized time-series from a given $\frac{1}{f}$ law.
The randomization is obtained by introducing a random phase in the function.
I experience a problem in the simulated time-series, the values systematically rise.
I suppose it is something related to the definition of the function ... |
I found out the conserved current for harmonic oscillator with angular frequency 1, particle falling in gravity close to ground ($g=1$) using maple. I'm unable to understand the result:
$$J[t](t, x(t), \frac{dx(t)}{dt}) = F1(x(t)^2 + (\frac{dx(t)}{dt})^2, -arctan(x(t)/\frac{dx(t)}{dt}) + t)$$
For particle falling und... |
I have the following code
from scipy.optimize import toms748
from scipy.integrate import solve_ivp
def f(r):
return lambda x: x-r
def E(t,r):
return -toms748(f(r),r-1,r+1)
sol=solve_ivp(E,(0,10),[1])
When I run it I get the following error
Traceback (most recent call last):
File "C:\Users\User\Documents\Pro... |
I have a linear system $Ax=b$ resulting from a finite element discretization of the Poisson equation. I am applying an IC0 (incomplete Cholesky ($LDL^T$) with the same sparsity as the original matrix) preconditioned conjugate gradients solver to it. However, when this system grows large enough I occasionally get negati... |
I have the wave equation
$$u_{tt} = 4 u_{xx}$$
with the boundary conditions
$$u(0,t) = u(L,t) = 0\,,\quad x \leq 0 \leq 2\pi \,,\quad t\geq 0$$
and initial conditions
$$\begin{align}
&u(x,0)=\begin{cases}1 & \text{for} \quad \pi-1 \leq x \leq \pi +1 \\0 &\text{otherwise}
\end{cases} \\[0.5em]
&u_{t}(x,0) = x^2sin^2(4... |
I have a set of points that resembles more of an ellipse than a circle. I implemented the optimization formulation below and the solution gives a circle. I tried with various initial values, still to no avail. Have I overlooked or mistaken something?
$$ \begin{align}
\min_{r_{maj},r_{min}} \quad & \pi r_{maj}r_{min} \\... |
I am trying to simulate the following equation using FDTD
$ \left(- \partial^2_t + \partial^2_x + V(x) \right) \psi(x,t) =0 $
subjected to the initial conditions $\psi(x,0) = f(x),~ \partial_t \psi(x,0) = g(x)$, the boundary conditions being that it is completely outgoing on the right boundary, and completely ingoing a... |
The aim is to solve the below equations and plot $m$ with time, i.e. $\frac{dm}{dt}$
$k$ is unknown and needs to be estimated. For the parameter estimation, the below values in the table for m versus t can be used. This is a dummy dataset, as I would like to get an idea if this problem is solvable. If needed, an initia... |
The test functions of general finite elements are like interpolation functions (if my understanding is correct). But how about test functions of Raviart-Thomas elements?
Let's raise the $RT0$ element as an example. The test functions of the three edges are
$\phi_1 = \sqrt{2}\left(\hat{x_1} \quad \hat{x_2}\right)^{T}, \... |
I have to give a presentation on unsupervised learning in 2 days, and I have to explain/show the equivalence between Hebb's learning rule (or Oja's rule to be more specific) and PCA. The thing is that I haven't taken a linear algebra class yet, and therefore I haven't been able to understand any of the proofs I came ac... |
I implemented Node-To-Surface contact algorithm (Wriggers, Peter, Computational contact mechanics., Berlin: Springer (ISBN 3-540-32608-1/hbk). xii, 518 p. (2006). ZBL1104.74002.). The code is done by first forming the contact element, comprising of a slave node on the ball and a master line of the base. In the example ... |
We can use the $RT0$ to solve the Darcy equation, i.e.
$$k^{-1}\mathbf{u}+\nabla p = 0, \text{ in } \Omega,$$
$$-\nabla \cdot \mathbf{u} = 0, \text{ in } \Omega,$$
$$p = p_D \text{ on } \partial\Omega,$$
$$\mathbf{u \cdot n} = 0 \text{ on } \partial\Omega, \tag{1}$$
where $\mathbf{u}$ is the velocity, $k$ is conductivi... |
In Maple, I have a function $f(x(t),y(t),t)$ that I want to differentiate with respect to $t$. I know the command for partial derivative $\frac{\partial f}{\partial x}$,$\frac{\partial f}{\partial y}$,$\frac{\partial f}{\partial t}$, etc in Maple. But I can't find a way to find total derivative $\frac{df}{dt}$.
|
I know that NumPy has linalg.cond(A) to find the condition number of a matrix A. But, if I want to find the condition numbers of the roots of a large polynomial with respect to a small perturbation (something like Wilkinson's polynomial), is there a function that can give me the condition numbers of the roots directly?... |
So I recently encountered this question in my head while taking my Scientific Computing class, where the lecturer talked about computing numerical error of a scheme.
My guess would be that we take a much higher order scheme and treat its solution close to the analytical one and compute the error for the scheme we want ... |
I'm trying to estimate DOA in the Hybrid architecture using root music so I need to solve the attached equation to find the roots for the Root_Music equation in Matlab. Does anyone have an idea for solving this?
$$f_\theta(\theta)=g^H(\theta)\mathbf{a}^H_{M}(\theta)\mathbf{E}_{N}\mathbf{E}^H_{N}\mathbf{a}_{M}g^H(\theta... |
Computer make it possible to find information in large databases. However, the results are often too large to be returned in their entirety to the user who requests them. Computer therefore sort the results by relevance according to their own metrics. They only display the first k results on a page. The user can then g... |
The "standard" box-stacking algorithm(s) AFAIK assume a single stack and try to put the "largest" boxes on the bottom. The case I want to solve is simply to distribute the N boxes over (all) M stacks, such that the stacks are all approximately the same height (to the extent possible). The specific order of the boxes ... |
I need to evaluate the hypergeometric function $_2F_1$ with $|z| > 1$ as in Wolfram Language with GSL but the GSL documentation says the $_2F_1$ needs $|z| < 1$.
Is there any way I can use GSL and $_2F_1$ with $|z| > 1$?
Any reference about the subject?
|
in our finite element class we were talking about interface problems our teacher came up with the following, where $K_i$ are two given functions and $u_i$ is the restriction of the solution $u$ to $\Omega_i$.
$$-\nabla \cdot (K_i \nabla u_i) =f_i \text{ in } \Omega_i$$
$$u_i=0 \text{ on } \partial \Omega \cap \Omega_i... |
For IEEE, the single representation is 1-bit sign, 8-bit exponent and 23-bit mantissa. This means that at each exponent value, you can test all 2^23-1 (roughly 9mil cases) possible combination of binary representation (give or take). Then you do it for all exponent value (255 values), and you can basically cover all fl... |
Suppose I wish to solve a linear system $AX=B$ iteratively where $A$ is an $m\times m$ matrix and $X,B$ are $m \times s $ matrices (not single vectors). Instead of solving $s$ independent systems I'm exploring ways to solve them simultaneously so that matrix-vector products may better use caching (i.e. calculating $AX$... |
I found in A Multigrid Tutorial: Second Edition by William L. Briggs, Van Emden Henson, Steve F. (here) the following Schemes:
Two-Grid Correction Scheme, p. 37:
And V-Cycle Scheme, p. 40
I want to check that I understood it correctly, Two-Grid is just a multigrid scheme when the algorithm going one level coarser. ... |
Naive restriction operators in geometric multigrid that I have seen are typically implemented as a convolution and a subsequent averaging of every two entries in a vector $v^h$. For example:
$$\tilde{v}^{h} = g*v^{h}, \quad v^{2h}_{1+i} = \frac{\tilde{v}^h_{2i+1}+\tilde{v}^h_{2i+2}}{2}, \, i\in\{0,\ldots,N/2-1\}$$
What... |
How to position oneself, if one has little practical engineering background or function, but may have a broader insight into mathematical modeling?
Or, lets say:
I could write models to prove properties about the thing perhaps, but I wouldn't necessarily build that
thing.
And this is not the same as "writing some Mat... |
Given n sets of points in general position in dimension 2 (n typically small, 2-6), can one find tuples of points, one from each of the sets, which are close in some sense (the closest, mutual distances less than some threshold)? I'd be interested even in the usual name for this problem.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.