instruction stringlengths 43 28.1k |
|---|
I am interested in solving the transient advection equation
$\left\{\begin{array}{ll}\partial_{t} u+\beta \cdot \nabla u=f & \text { in } \Omega, t>0 \\ u=0 & \text { on } \partial \Omega^{-}, t>0 \\ u(\cdot, 0)=u_{0} & \text { in } \Omega,\end{array}\right.$
with a stabilized FEM formulation (SUPG, GLS or similar), bu... |
I am working on a combined contact, bending, and torsion problem. I have data on geometrical points and their instantaneous stress components. However, based on the available data, I have to interpolate the stress values at points where the stress values are not available, i.e., I would like to interpolate the stress v... |
I am currently attempting to use FEnICS to solve an electrostatic problem with two materials of different permittivity $\varepsilon_1$ and $\varepsilon_2$ forming an interface:
Consider a domain $\Omega_1 \cup \Omega_2 = \Omega $ with $\Gamma_T$, $\Gamma_B$, $\Gamma_R$ and $\Gamma_L$ as the top, bottom, right and left ... |
Apologies if this is a bit of a soft, unclear, or opinion-based question. I'm a relatively new PhD student in a (computational) quantum chemistry group. My group develops and maintains a few software packages (mostly for techniques first developed in-group), and this is something in which I am interested, i.e. high-per... |
Given numbers $x, y \in \mathbb{R}$ where
$$\frac{|y-x|}{|x|}$$
is small, and code that implements the function $f$ with a sequence of arithmetic operations, I would like to compute to high accuracy the finite difference
$$
\frac{f(y) - f(x)}{y-x},
$$
which is plagued by cancellation. Is there a variant of automatic di... |
I am trying to perform a two-dimensional random walk for a particle, but I am not getting the desired result. The plot produced is a linear plot, which obviously should not have been. Similar code for a one-dimensional gives the desired result. Can someone please suggest where am I making any mistakes? Thanks.
import n... |
I have a system of PDEs describing atmospheric chemistry and transport. I use finite-differences to make my system of PDEs into a system of ~10,000 ODEs. I then integrate the ODEs forward in time with the CVODE BDF method (from Sundials). For my current discretization of my PDEs, the jacobian is banded (band width = ~2... |
Given a large sparse (square) matrix in MATLAB, how can I extract the banded or the block-diagonal parts (of fixed size) of it efficiently?
These are useful operations when prototyping and testing preconditioners, or if you want a quick and dirty (but still relatively efficient) preconditioner. Sometimes these approxim... |
While looking at step6 of deal.ii tutorials, I decided to try to understand how the constraints coming from hanging nodes are imposed. So I started by watching video lecture 16 by prof. Bangerth
As far as I understood: some of the basis functions $\varphi_i$ are now discontinuous, and that's of course a problem as we w... |
I'm writing a paper where I am discussing different types of construction heuristics.
One type does not change previous decisions when adding new elements to the solution. I'd call them "immutable", as the (partial) solution is immutable during construction. This behavior is known in many (possibly most) construction h... |
I am working on a program currently that works out the maximum flow through a network using the Ford-Fulkerson algorithm, and that works fine, however, I need the final flow to meet the constraint that all edges that share a source node must also share the same flow value. (or flow splits evenly between edges from a co... |
I have just created a code snippet in Octave/Matlab that aims to create a plot which shows the accuracy of an initial probability vector $\vec{\pi}$ derived from the transition probability matrix $\textbf{P}$ of a Markov chain using its powers ($\textbf{P}^n$).
n = 1:10000;
tProbs = [0.1 0.5; 0.9 0.5];
iProbs = sum(tPr... |
I am interested in solving the equation
$$
\begin{aligned} \nabla \cdot\left(\nabla \phi-\frac{\nabla \phi}{|\nabla \phi|}\right) &=0 & & \text { in } \Omega \\ \phi &=0 & & \text { on } \Gamma\left(\phi^{0}\right) \text { and } \\ \nabla \phi \cdot \hat{n} &=\operatorname{sign}\left(\phi^{0}\right) & & \text { on } \p... |
I am trying to understand the dyadic operation for a while since I am interested in Elasticity problems. I believe an intuitive understanding (rather than assuming) will give me good problem solving abilities.
The following equation is shown in almost all lecture notes on elasticity. However, I don't understand how th... |
I was trying to fit some data to a single degree exponential decay function but a*exp(-x*t) and a*exp(-x/t) gives completely different answers with the latter not at all fitting the data well.
The code:
def func(x, a1, t1, c):
return a1 * numpy.exp(-x*t1) + c
interp_x = np.arange(low,high+dx,dx)
popt, pcov = scipy... |
I'm learning how to solve vector-valued problems with deal.II library. In particular, I'm looking at the following introduction from the official website https://www.dealii.org/current/doxygen/deal.II/group__vector__valued.html#VVAlternative
Here they write the bilinear form as $$a(\mathbf{u}, \mathbf{v})=\left( \lambd... |
This was originally asked on Stackoverflow but instead of migrating it was suggested I repost here and delete that one. I've tried to clarify based on comments there.
I'm new to MPI, but I am trying to use it to speed up some code I have. A minimal version of that code is below:
program main
!! takes a list, then f... |
Consider the elastic equation $$- \operatorname{div}(C \nabla \mathbf{u}) = \mathbf{f}$$ as presented in step-8. Here $\mathbf{u}$ is the displacement vector, let's consider the 2d case.
As you can see in the setup_system, they impose homogeneous Dirichlet boundary conditions. Then I'd expect to see that the two plots ... |
For the past weeks I have been trying to reproduce Agarwala's results but I've been unsuccessful. From this paper I am trying to reproduce the first and last columns of Fig.2, by implementing eq.2; The image below is the crystalline case from the paper:
The code is made of two parts mostly: the building of the system ... |
I am trying to use Newton's method to get a stationary solution for a system of equations of the following form:
$$
\begin{Bmatrix}
\frac{\partial x}{\partial t} \\
0
\end{Bmatrix} = \begin{Bmatrix}
f(x, y) \\
g(x, y)
\end{Bmatrix}
$$
For vectors $x$ and $y$.
Due to the nature of the equations I'm trying to solve, the ... |
I am in the process if computing the Dual-Weighted Residual (DWR) for a linear PDE with a linear functional but I am struggling with the residual part of the calculation.
For example suppose we want to formulate the DWR for a Poisson's equation then the error for a linear functional $J(\cdot)$ is given by
$$
J(e) = \su... |
For studying a spin model on a lattice, I have to generate a random unit vector starting from a pre-exstisting one. There are multiple ways to do it, but the book I use suggests generating a random displacement vector $\Delta\boldsymbol{S}=\Delta S_{max}(p_1,p_2,p_3)$ with $p_i$ three random numbers in $[-1,1]$ and $\D... |
for k=1:len
thetaHattt(k)=atan(((Ahat+Rhat)*(1/k11(k)*Bhat-Chat)+Ahat*(Chat-1/k22(k)*Bhat))/((1/k22(k)*(Ahat+Rhat)*(1/k11(k)*Bhat-Chat)+1/k11(k)*Ahat*(Chat-1/k22(k)*Bhat))));
if k<len&&k>1
chatt(k)=Ahat/(k11(k-1)-k11(k))*(sin(thetaHattt(k-1))-sin(thetaHattt(k))-k11(k-1)*cos(thetaHattt(k-1))... |
Related to: What are the negatives of using higher order finite diference schemes?
Problem: I have some discrete data of a trajectory $x_t$ with errors $\delta x_t$ of a physical system sampled at equal times $\Delta t$ and I want to calculate the derivative of the trajectory, i.e., the velocity $v_t$.
I know I can dif... |
I have a background in Computational Mechanics but my knowledge remains very user-oriented. What I mean by that is that I have a fairely good knowledge about how to use a commercial engineering simulation software such as Ansys. I also have good understanding on the mechanism on how a simulation works: we have a physic... |
I am solving two different ODE whose solutions need to be matched. I am currently doing this by hand, which works great, but I would like to automatise this process. The second ODE takes one of its initial conditions and its initial time from the last values of the first solution. I put a MWE below. Now, I have naively... |
I am diagonalizing a sparse matrix of size $153600\times 153600$ via eigsh function. I did not set the tolerance to specific value, so it would be the default value about $2\times 10^{-16}$. However, if I run the same code 3 times, the difference between eigenvalues are much bigger (about $6 \times 10^{-8}$) than this!... |
I'm trying to solve the following problem, I had previously opened another discussion for the implementation and well, it seems that it has turned out well, it can be found here.
I need to calculate the preconditioned conjugate gradient solution with incomplete Cholesky and Jacobi, for a mesh of n = 500,1000,5000 and 1... |
I'm trying to model in FEniCS a steady-state situation in which a coolant fluid flows through a nuclear fluid. There is finite rate of conduction between the two fluids. The simulation should output the steady-state temperature profile for each fluid.
The issue I've run into is that I don't know how to get FEniCS to so... |
Is it possible to calculate the flow of cash in each period given a certain fixed net present value with a numerical algorithm?
I would like to be able to apply a certain weighting that can be applied to the cash flows of each period e.g. 90% will be paid back in the last period, 1/(number of periods-1) in all other pr... |
I'm studying error estimators and I need a check on an estimate. In our course, we've been given the following definition of bubble function (in 2D):
It's a function defined on a triangle $T$ such that:
$b_T \in [0,1]$
$b_T \in H_0^1(T)$
$\exists D \subset T: |D|>0 , b_T \geq \frac{1}{2} \text{ in } D$
Then, professo... |
I found this question (linked here) which asks to find what this infinite series converges to
$$ \sum_{n=1}^{\infty} \int_0^{\pi} f_n(x) dx $$
where $f_{n+1}(x) = \sin(f_n(x)) $ and $f_1 = \sin(x)$. I actually wrote a few scripts which I figure could be optimized but I'm looking for a better approach or if the type of... |
I am looking for the analytical solution of 1-dimensional advection-diffusion equation with several point sources, Q, along the axial length of a cylinder through which the fluid flow occurs. Neumann boundary condition is specified at the outlet and Dirichlet boundary condition at the inlet.
$$\frac{\partial C}{\partia... |
The mixed form of the elasticity equations is to find the unique critical point of the Hellinger-Reissner functional
$$J(u, \sigma) = \int_\Omega\left\{\frac{1}{2}A\sigma : \sigma + u\cdot\left(\nabla\cdot\sigma - f\right)\right\}dx$$
where $u$ is a vector field, $\sigma$ is a symmetric tensor field.
The inputs are the... |
Hi I am trying to implement a simple plasticity based finite element code. I am not clear how to set up displacement control applied through Lagrange multipliers. In case of a linear problem, I did the following to apply displcament control and it worked.
Lets say the energy balance equation in the absence of body forc... |
Considering a centered finite difference approximation for the derivative, what is a reasonable approximation for the first and last points?
|
I need to numerically compute an integral of the following form:
$$\int_0^1 \frac{1}{2\pi\sigma^2}\exp\left(-\frac{\|(q_0t^3 + q_1t^2 + q_2t + q_3) - a\|^2}{2\sigma^2}\right)\|3q_0t^2 + 2q_1t + q_2\|\,dt.$$
Here, $q_0,q_1,q_2,q_3,a$ are constant vectors in $\mathbb{R}^2$, and $\sigma$ is real. This comes from the line ... |
When it comes to a second-order accurate finite volume discretization of Navier-Stokes equations, which one of the two following rationales is adopted?
1- Second-order accuracy is a direct consequence of how we eliminate higher order terms in the Taylor expansion of all the terms;
2- From the beginning, we assume that ... |
For second order elliptic problem
\begin{align}
-\Delta u=f,\quad in ~~\Omega\\
u=0,\quad on~~ \partial\Omega,
\end{align}
we have for the Ritz projection for $P_1$ conforming element
\begin{align}
\|u-R_hu\|_{W^{0,p}}+h\|u-R_hu\|_{W^{1,p}}\leq Ch^2\| u \|_{W^{2,p}},\quad u\in W_0^{1,p}(\Omega)\cap W^{2,p}(\Omega).
\en... |
The current enterprise server rack has, in most cases, more than 1 CPU socket per board and a bunch of graphics card together with a data processing unit on a single board in a node. Several such nodes in a rack are closely stitched together for data pathways and tightly integrated into the cluster for a tailored appli... |
If we use 5-point finite difference approximations in a uniform rectangular grid to solve the Poisson PDE
\begin{align}
-\Delta u &= f \ \ \text{en} \ \ (0,1)\times (0,1) \label{P1} \\
u &= 0 \ \ \text{en} \ \partial ((0,1)\times (0,1)) \label{P2}
\end{align}
The Laplacian operator $\nabla^2$ can be written using th... |
Assume we have two domains $\Omega_a$ a acoustic domain with boundary $\Gamma_a$ and $\Omega_s$ a domain of a solid body with boundary $\Gamma_s$.
$\Omega_a$ and $\Omega_s$ have the common interface $\Gamma_{as}$.
In $\Omega_s$ we have the equation of motion for a solid:
\begin{equation}
\rho_s \frac{\partial^2 u}{... |
I'm solving a system of multispecies ion exchange equations (diffusion+drift fluxes) in 1-d spherical domain using finite volume method to obtain the ion concentrations at the next time step. After polishing the generic equation with so many assumptions, I ended up with this equation for species A
\[\frac{{\partial ... |
Finding the saddle point of a constrained zero-sum two-person game is equivalent to a resolution of primal-dual programs (with bi-linear objective function).
I am looking for a free solver to compute the saddle point in the constrained zero-sum two-person game (in primal-dual programs with linear constraints and biline... |
How to get 10 in computer science, using the number 4 exactly four times, and two signs exactly and two operation + exactly ?
|
Suppose you have a record of coordinates X(t) for every s units of time from 0 to time T.
Suppose in addition you have more data Q(T) that is supposed to be output from some complex numerical computation Q(X) on the X(t) data you have. The dimensions of Q(T) and X(T) are the same.
How does one calculate all partial der... |
If I try to derive a function computationally with Reverse-Mode Auto-Diff, I can derive a single function wrt. many variables in a single go.
My Issue is now, what happens, if I input this function (just a very simple example of the problem):
$f(x,y,z)=(x + y)*z+x$
Now, obviously, handling this manually is simple, just... |
My goal is to learn the algorithms that allow to convert STL files to STEP files.
I am struggling to find learning materials.
Can you suggest here research papers, books, open source code about this topic, please? So I am not just interested in converting the STL to STEP file, but in understanding how to perform the co... |
During our finite element course, we've solved the linear elasticity problem in 2D on a square (GridGenerator::hyper_cube) with $Q_1$ bilinear finite elements in each component. We imposed neumann homogeneous boundary conditions on one face, and homogeneous Dirichlet on the other three faces.
As outputs, we chose:
mag... |
The US weather model uses an uncommon (?) discretization called 'Finite Volume on Cubed Sphere'.
To avoid the singularities that occur at the poles when using lat/lon discretization, they instead project the globe onto a cube. More pictures are on the noaa website.
This discretization allows for mesh adaptation throug... |
I try to check the equality or the inequality between 2 Fisher matrices.
The goal is too see if the projection (with Jacobian) and marginalisation (inversion of matrix and remove a row/column and reinversion) commute.
Each of these 2 matrices is computed slightly differently. These 2 matrices are Fisher matrices.
Actua... |
Crossposted at Math SE
I am reading a paper on the free vortex wake model for a helicopter rotor blade, which is described by the following PDE:
$$\frac{\partial \vec{r}}{\partial \psi} (\psi, \zeta) + \frac{\partial \vec{r}}{\partial \zeta} (\psi, \zeta) = \frac{1}{\Omega} \vec{V} \left( \vec{r}(\psi, \zeta), t\right... |
In Sequential Quadratic Programming we use an active set of the inequality constraints and handle them as equality constraints in the quadratic subproblem.
SQP is said to be able to deal with infeasible points in the design space, which violate the inequality constraints.
Whenever the algorithm takes you to a point whi... |
I am implementing a simulation that needs to rotate and object based
on known angular velocity (assumed constant for simplicity). I followed the
ideas given below, pg. 32)
https://graphics.stanford.edu/courses/cs448b-00-winter/papers/phys_model.pdf
The orientation of the object will be kept in a matrix $R$, angular vel... |
Consider the time-dependent Navier-Stokes equation
$$u_t + (u \cdot \nabla) u - \Delta u + \nabla p = f$$
$$\operatorname{div}(u)=0$$
Looking at deal.ii tutorials, I've notice that there are extensive discussions about the choice of a preconditioner in the time independent case, while for the time dependent one I've o... |
In Lanczos algorithm, can we choose the staring vector $v$ to be the first eigenvector of the input matrix $A$? How can we select it? and why $v$ need to have norm 1?
|
My Problem:
A positively charged particle (mass = 2 * 10-27 kg) is moving along the x-axis. It is travelling in a homogenous magnetic field such that the field axis in z-direction. The energy of the particle is 2 MeV and B = 4 T. Use a ODE solver to plot the motion of the particle for 1 microseconds.
My attempt of so... |
I am using the FTCS method for solving differential equations. I know that the condition for stable output is
$$
\frac{\alpha \Delta t}{\Delta x ^2} < \frac{1}{2}
$$
But when I use the distance step according to this formula, the size of the step is big and the answer I get is wrong.
Is there some way I can use smalle... |
I am trying to solve the time-dependant non-linear heat equation with radiation. This equation is coupled to the radiative transfer equation but for the purpose of my question, this does not matter much.
I am using a Crank-Nicolson scheme for the time stepping scheme as well as a Taylor Development of $T^4$.
The Taylor... |
In finite element books, we have estimates for $$||u-u_h||$$ and also estimates for $$||u - I_h(u)||$$ where $I_h(u): V \mapsto V_h$ projects a function from the infinite dimensional space to the finite dimensional one. For instance, $V = H^1$ and $V_h \subset V$ is the set of piecewise poly of degree $r$.
What is the ... |
This question is a follow-up of this one.
The weak form of Navier Stokes equation is (assuming $v,q$ test functions for the velocity and the pressure, respectively)
$$(\frac{du}{dt},v)_{\Omega} + (\nabla u, \nabla v) _{\Omega}- (\operatorname{div}(v),p)_{\Omega} - (q,\operatorname{div}(u))_{\Omega} + c(u,u,v)_{\Omega}=... |
I've used the following code to implement it
import numpy as np
from scipy.linalg import eig
import matplotlib.pyplot as plt
W = 10 #width of well
n = 1000 #number of points excluding 0,W
hbar = 1;m=1 #atomic units
x = np.linspace(1,W-1,num=n) #exclusion of 0,W
h = x[1]-x[0]#step size
#Construction of the hamiltonian... |
I have been looking for linear algebra libraries that support multithreading. I have found PLASMA which looks promising. It is from the same group that developed LAPACK.
http://icl.cs.utk.edu/projectsfiles/plasma/html/InstallationGuide.html
https://icl.utk.edu/projectsfiles/plasma/pdf/users_guide.pdf
However, it doesn'... |
Suppose you want to approximately solve a system of ODEs, using some numerical method (Euler, RK, BDF, whatever):
$\frac{du}{dt} = f(u)$
To do this you need to select time steps which solve the ODEs to some tolerable precision. One approach, for selecting timesteps, is to look at timescales of change of each variable, ... |
I am dealing with a linear advection equation with a non-constant velocity, where I would like to apply a TVD Lax-Wendroff scheme in 1D.
The equation is the following:
\begin{equation}
\frac{\partial \: C(x, t)}{\partial t} = - \frac{\partial\:(\vec{v(x,t)} \:C(x, t))}{\partial x}
\end{equation}
Which describes t... |
On page 563 of Finite Element Procedures by Klaus-Jürgen Bathe the author states that governing equations of the displacement/pressure finite element formulation for large deformations is given as
$$
\begin{bmatrix}
{}^T{\bf K}{\bf U}{\bf U} & {}^T{\bf K}{\bf U}{\bf P}\\
{}^T{\bf K}{\bf P}{\bf U} & {}^T{\bf K}{\bf P}{\... |
I have been looking at automatic differentiation for solving differential equations lately. I understand the basic ideas of using Dual numbers and such for finding derivatives, etc. However, I feel like I am not understanding the geometric interpretation of automatic differentiation and dual numbers.
Let's consider a s... |
Consider $A\in\mathbb{R}^{n\times n}$ its not a special matrix and in the worst case all of its entries are non-zero. I am looking for a way to compute $AA^{T}$ using matrix-vector operation. The total number of flops are $(2n-1)\frac{n(n+1)}{2}$ because all I have to do for a symmetric matrix like $C=AA^{T}$ is to com... |
I am trying to develop what might be called legacy Fortran code from my group. Upon testing, I found that the program (which takes about a day to run on 20 processes) works when run on a single node (20 processes) or in serial (though it takes a long time), but if I increase to several nodes the results are notably, no... |
I have an implementation question with MPI and OPENMP.
I have a large three-dimensional surface mesh divided into elements. I want to loop over each element (outer loop) and compute an integral over the whole surface (inner loop). There are two loops in total. I wish to parallelise this operation.
This kind of operatio... |
What algorithms exist that partition the domain according to a black box evaluation function (possibly subject to some assumptions)?
Examples
Simple Example
To better exaplain we consider as our evaluation function the body mass index (BMI), calculated as $\mathit{mass} / \mathit{height}^2$ (for mass and height given i... |
I'm studying the weak formulation of NS equations. During the analysis, the book I'm using (Quarteroni-Valli, page 301-302), defined $$Z_h=\{v_h \in V_h: (\operatorname{div}(v_h),q_h)=0 \quad \forall q_h \in Q_h)$$
where $Q_h \subset Q$ and $V_h \subset V$ finite dimensional subspaces. Here we can set $V=[H_0^1(\Omega... |
In my finite element notes, after the proof of the global estimate for the interpolation error, assuming a regular triangulation with triangles $T_m$:
$$\sum_m|v - \Pi_h^r v|_{s,p,T_m} \leq \sigma^{-s} h^{k+1-s}|u|_{k+1,\Omega}$$ for $u \in W^{k+1,p}(\Omega)$
where $\Pi_h^k:C^0(\Omega) \rightarrow X_h^k$ and $X_h^k= \... |
Let's take a mobile robot and suppose we know its continuous equations of motion, for example this car-like simple model.
Now if I am simulating this robot in a continuous 2D plane, then coding the simulation is simple. But suppose i am now in a 2D grid world. Movement is only from one cell to another cell. Now how do ... |
I am trying to solve a fractional-order 2-compartment model using the method of manufactured solution (MMS). I do understand the concept of MMS, but I am not sure how to come with a Mathematica code for such a system
|
I'm having lots of troubles in understanding the proof the estimation of the classical $H^1$ error using finite elements of degree $r$.
$$||u-u_h||_{H^1(\Omega)} \leq \frac{M}{\alpha} C h^r |u|_{H^{r+1}(\Omega)}$$
where $M$ and $\alpha$ are the operator norm and the coercivity constant, respectively and $C$ is a consta... |
I am working on simulating a car suspension system using Matlab.
Specifically, I have to derive equation of motion using the Lagrange method and then use ode 45 to solve it. However, while using odetoVectorField I keep getting the error: System contains a nonlinear equation in diff(theta_rod_1(t), t). The system must b... |
Suppose that $x = (x_1, ..., x_n)$ is a vector of variables and I would like to maximize the Shannon entropy of $\frac{|x|}{||x||_1}$ (i.e. the vector of absolute values of $x_i$, normalized to have $l_1$ norm = 1) subject to some linear constraints. However, this function is not directly expressible as a composition o... |
I am solving an Integer programming using MATLAB, yet the efficiency is low.
Here is the problem:
Suppose $v$ is a $N \times 1$ vector. For $v_i \in v$, $v_i \in \{0,1\}$.
$D$ is a 0-1 matrix, which means for each $d_{ij} \in D$, $d_{ij} \in \{0,1\}$.
The translation of this problem is to make element $1$ in $v$ to be ... |
Problem
I have an $n\times n$ grid, and each point on the grid is assigned two values: a score, and an (inverse) speed factor. There is a "turtle" moving along the grid, and it's goal is to maximize it's score. Each time it moves to a point $x$ it gets the score $s_x$ at that point, but it takes $\epsilon_x$ turns befo... |
In the expression:
$${\underset{\Omega}{\min}\left\|\beta A\Omega^{-1}B+C\right\|_{F}^{2}}\, ,$$
$$\text{subject to tr}(\Omega)=1, \Omega \ge 0\, ,$$
where ${\Omega}$ is nonnegative and symmetric matrix.
How to solve for the variable $\Omega$?
|
I think the relres in MATLABis the form that relres = norm(M(b-Ax))/norm(M\b),when it smaller than tol then stop the iteration.
I want to know how to change relres to norm((b-Ax))/norm(b). Or use other code instead of the built-in one
|
I'm studying adaptive meshes, and my professor wrote the following property for a bubble function ( see this scicomp post for the definition I'm using)$b_T$ defined on a triangle $T$.
$$||b_T \phi ||_{0,T} \leq ||\phi||_{0,T} \color{green} \leq c||b_T^{\frac{1}{2}} \phi||_{0,T} $$
The proof of the green ineuqlity is gi... |
I'm using conformal mapping to solve a 2D electrostatic problem (calculating the potential $u(x,y)$ in the plane). Let $C_1$ and $C_2$ be two circles at an electric potential $U_1$ and $U_2$, respectively. They have radii $R_1$ and $R_2$, respectively, and their centers are separated by a distance $h$.
I noticed that, ... |
The answer to Convolute a gaussian kernel with a large array of off-grid centroids without looping? (how to make "A Thousand (Gaussian) Points of Light" ) involves summing a 3D array over its stacked direction. This question however is about convolution using continuous functions rather than summation.
The answer there... |
For a finite object size diffraction simulator, I need to generate arrays which are the sum of thousands of instances of a Gaussian (or other) 2D kernel at centroids that will not fall in any repeatable way with respect to the grid points.
Below is a simple example with a simple hexagonal arrangement of centroids for c... |
I have an ordinary differential equation that is solved as an initial value problem using different numerical schemes. I end up with several discrete time signals that should display a reasonably identical solution but most likely have different time steps. I would like to quantify the similarity of the solutions comin... |
I'm studying the inf-sup conditions for saddle point problems. I'm referring to the usual one $$\begin{cases}Au + B^t p = f \\Bu=g \end{cases}$$ In the book I'm using (Ern - Guermond: Theory and practice of FEM) they say (pg. 100)
The problem is well posed iff
$$ \exists \alpha >0: \inf_{u \in \ker(B)} \sup_{v \in \k... |
I wanted to learn how to implement a code for the Stokes and Navier--Stokes equations 2D/3D. I already know how to implement it when the elements are triangles or tetrahedral.
Do exists finite element schemes using only square/cube elements for the pressure and velocity? Can you suggest me some paper or book with the m... |
please help me with this question, I want to invert a huge sparse (non-circulant) this below in a $Ax=y$ equation:
$$(\lambda I+ \beta D+ \sigma C)x=y$$
where
I is an Identity Matrix,D is a Diagonal Matrix,C is a circulant Matrix and $\lambda$, $\beta$, $\sigma $ are positive constants.
And all have the same size of 10... |
I'm solving a system of stiff ODEs describing atmospheric chemistry and transport. I am using CVODE BDF from Sundials Computing. I have two ways to approximate the jacobian:
Allow CVODE to approximate the jacobian with finite differences.
I have a function for the jacobian, which uses a mixture of finite differences a... |
First time posting here, so I apologize for any missing info upfront. I am working on a program in VBA that calculates a function (which itself calls another function), then calculates the derivative of that function, then uses that to form a Jacobian matrix to calculate the solution via the Newton-Raphson method. My q... |
I'm studying mixed finite elements. The problem is a classical saddle-point one: we seek for $(u,p)$ in $V \times Q$:
$$A u + B^t p = f$$
$$Bu = g$$
where $A: V \rightarrow V', B:V \rightarrow Q'$ and $V,Q$ are Hilbert spaces. For this problem, we have the inf-sup conditions on $A$ and $B$ that essentially tell us tha... |
If we had, for example, labeled data, where for each entry (label) we have several data distributions associated to it, how can I get something meaningful from them?
Is this a solvable problem? Is there a better way to solve it than just taking some parameters which describe the data (mean, standard deviation, etc.)? D... |
Consider the Stokes problem and the usual divergence operator $B:V \rightarrow Q'$, $\langle Bv, q\rangle = b(v,q)=(\operatorname{div} v,q)$
and its discrete versione $B_h : V_h \rightarrow Q_h'$.
In the lecture notes, I read the following consideration:
It must be $\dim(V_h) \geq \dim(Q_h)$. If not, then $\ker(B_h)= ... |
Is there any example support the case of $O(n^k)$
where $k$ has a fixed calculated value for every $n$ and $k$ is not a constant value for all $n$.
As $k$ depends on the value of $n$ in polynomial representation.
Also, I wonder, what is its type of time complexity?
|
I calculate 2D Model of Magnetotelluric responses which are apparent resistivity and phase. I do the calculation for Transverse Electric (TE) mode. Then I used edge based finite element with triangular element. When using finite element there are no problems till I get the result of the finite element calculation. I ge... |
The leap-frog algorithm is able to conserve to a certain extent the energy of a system, which flucutates as a cosine around a stable value. Is this true if we apply the algorithm to a n-body gravitational system? Does the energy of the system stay between two values or grows with time?
|
When someone refers 2-norm of system,L2 and H2 are used interchangeably by author and is rather confusing. Even the matlab has different functions for H-infinity norm and L-infinity norm.
as shown in picture the author refers it as L2, and later he refers it as H2
.
so what is difference and when someone says 2-norm of... |
I understand that the Arnoldi iteration produces a basis which tends to include in its span the eigenvectors corresponding to eigenvalues of large magnitude (hence the analogy between the last vector of the Krylov subspace, $A^{n - 1} b$, and the result of $n - 1$ iterations of power iteration method made in this Wikip... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.