instruction stringlengths 43 28.1k |
|---|
Consider the following 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}
if we use 5-point finite difference approximations we get a system
\begin{equation}
Ax = b \label{Sist_Planteamiento}
\end{equation}
wh... |
I am working on a problem where I need to solve approximately 500 Million Linear Regressions (OLS).
What would be the most efficient way to do this (e.g. using GPU or a some framework that can do this efficiently)?
Note that in my case each individual OLS problem is "small" in size e.g. each input dataset has 100 obser... |
I'm trying to debug an FEM that I inherited, and I unfortunately do not have much knowledge of FEM. I only know FD and FVM.
If you're modeling a system with 2 materials, there will be an interface location between the 2 materials, where on one side are elements of one material, and on the other side are elements of the... |
How to compute 2-norm or infinity norm of following system?
i am confused whether to calculate using simple matrix theory "where it don't regard for s domain" or H2 and H-infinty norm. Thanks in advance.
The problem is 4.4 from book Essentials of Robust Control
|
Consider the Navier stokes equation after the discretization with conforming finite elements with source term $f=0$. We have the algebraic structure of a saddle point problem:
$$M \dot{u} = f- Au -B^tp - C(u(t))u(t)$$
$$Bu=0$$
where $B$ is the $- \operatorname{div}$ matrix, $A$ is the one corresponding to the laplacian... |
From the package scipy.sparse.linalg in Python, calling expm_multiply(X, v) allows you to compute the vector expm(X)@v in a very efficient manner. Moreover, this function works best when X is a sparse datatype (like csr_matrix or csc_matrix). However, I have found that this function works slower when v is a sparse data... |
Let $z, b \in \mathbb R^n$, $A \in M_n (\mathbb R)$ and $|z| := (|z_1|, \dots, |z_n|)$. I am searching for an efficient algorithm to solve the absolute value system:
\begin{equation}
z - A |z| = b.
\end{equation}
In general existence and uniqueness of the solution is not guaranteed; however, I will assume from now on t... |
I am writing a code that checks the orientation of a list of vertices (along with face connectivity) describing both convex and concave hexahedra. The face connectivity table stores the list of vertex indices that constitute each face, as described on p.27 of this document. I flag a hexahedron as being positively orien... |
I am trying to solve this with
odeint module. But the first equation is function of second equation. If i ignore dw/dz in first equation and second equation is function of first one. I can solve it simply using odeint.
I can solve these equation through fsolve through forward differential. But is it possible i can u... |
Motivation:
My plan is to get the overall euclidean distance matrix for all the vectors in N number of dataset. Each dataset is basically an array of n-dimensional points. For e.g: A dataset can be like [[1,2,3,...n],[1,2,3,..n],...[1,2,3,n]]. However, the datasets are not gonna be shared to a single entity for which I... |
I have a system to simulate the bubble evolution at different temperature conditions. I used CVODE_DENSE algorithm to solve the ODEs and get the bubble size and concentration. But the code was halted as the above warning shows up.
I tested at different temperatures, like 573 K and 773 K. The code was halted at 573 K at... |
We are finding in Python some occasional errors in our coordinate transforms and other similar computations that produce a result of -0.0. What purpose does this serve in Python? So far it creates a zero testing error (that is, -0.0 does not equal 0.0; does it equal +0.0?).
The easy test is at the prompt:
>>> -1*0.0
|
I'm trying to perform a 4-dimensional numerical integration in R using a function I wrote in C++ code which is then sourced in R using the Rcpp package.
Below there is my code:
// [[Rcpp::depends(RcppEigen)]]
// [[Rcpp::depends(RcppNumerical)]]
#define EIGEN_PERMANENTLY_DISABLE_STUPID_WARNINGS
#include <Eigen/Eigen>
#i... |
I want to plot the motion of a positive charge in a cylindrically symmetric magnetic field.
I am assuming a cylinder around the z-axis, with the magnetic field going in clockwise direction. The B-field has magnitude of 6 T and the distance R from the z-axis is 3 m. The charged particle is launched in positive direction... |
I have a nonlinear mixed-integer optimization problem, and because of very high complexity when solving it using methods like Branch and Bound, I resorted to solve it using alternating method and continuous relaxation of the binary variables. So the issue is that the resulting optimum values are fractional. How to prop... |
I am trying to solve a differential equation in the form:
dx/dt = funct(x)
using scipy odeint.
However, for some initial values, I get a "ODEintWarning: Excess work done on this call", even if the ODE itself seems to be solvable analytically. Why does the numerical ODE solver give me a warning, and how can I make it wo... |
In an introduction to Discontinuous galerkin methods, I have some problems in checking the weak formulation. I'm looking at page 16 here
The context is the advection reaction equation: $$\operatorname{div}(bu) + cu = f$$ $$u = g_D \in \Gamma_{-}$$
where $\Gamma_{-}$ is the inflow boundary: $\{ x \in \partial \Omega: b(... |
I am reading about QUICK scheme for calculating the value of unknown variable $\phi$ in finite volume method. Given a locally one dimensional flow, we assume the value of $\phi$ is computed as a 2nd order polynomial:
$$ \phi = k_0 + k_1 x + k_2 x^2 $$
Subject to:
$\phi = \phi_U$ at $x = x_U$ (Upwind)
$\phi = \phi_C$ a... |
I'm learning DG methods and in order to practice a little bit I'm using the deal.ii library. In particular, I'm looking at step-12, where they solve
$$\operatorname{div}(\beta u) = 0$$
$$u = g_D \text{ on } \Gamma^-$$
for a field $\beta$ and a discontinuous data on the inflow boundary.
In order to verify the order of c... |
I am trying to solve the background equations of cosmology numerically using Runge-Kutta Dormand Prince method with simplified assumption $8\pi G=1$ and $c=1$. The equations are
$$\ddot a = - \frac{1}{6}(\rho + 3p) a $$
and
$$\dot {\rho} = -3 \frac {\dot a}{a}(\rho +p) $$
for matter$(p=0)$ and radiation $(p=\frac{1}{3}... |
I need to solve an equation system
$$
\begin{pmatrix}
A \\
I
\end{pmatrix}
x
=
\begin{pmatrix}
b_0\\b_1
\end{pmatrix}
$$
in the least-squares sense. Let's assume $I$ is the $n$-by-$n$ identity matrix, $A$ is some $m$-by-$n$ matrix, e.g., Laplace with Poisson boundary conditions.
I know a good preconditioner $M$ for $A$... |
I came across this line in a class note I am reading where it discusses finding eigenvalues of matrices.
In reality we don't go all the way with Arnoldi. We stop at a decent value of . Then the eigenvalues of are (usually) good approximations to extreme eigenvalues of . Trefethen and Bau emphasize for non-symmetric... |
If I have a vector of M "continuous" decision variables (say it is called x) , and if I want a constraint to express that only one of them is allowed to have a nonzero value (i.e. no more than one variable can be nonzero). How can I express such constraint?
|
I've professional experience with physics simulations and C++ programming, although
I don't have specific experience with astrophysics simulations.
I'm trying to build a two-body evolving system myself, but I'm struggling with obtaining even the simplest stable orbit (more than just a few revolutions).
Therefore I'm lo... |
I am looking for MCMC codes with a GPU suport (like NVIDIA or OpenCL libraries) to make faster run chains.
If someone could have a state of the art ...
|
I have the problem like this
$$
-\triangle u = f \ \ on\ \Omega \\
u = g_1 \ \ on \ \partial \Omega_1 \\
u = g_2 \ \ on \ \partial \Omega_2
$$
If we choose
$$
V_1 = \{ \nu_1 \in H^1 : \nu_1 = 0 \ on\ \partial \Omega_1 \bigcup \partial \Omega_2 \} \\
V_2 = \{ \nu_2 \in H^1 : \nu_2 = g_1 \ on\ \partial \Omega_1 \ and... |
I have a very simple question concerning Alternating Direction Implicit (ADI) Scheme.
If I have an equation of the form:
\begin{equation*}
\frac{df(x,y,t)}{dt} = \nabla^2 f(x,y,t) + f(x,y,t)
\end{equation*}
with f, my unknown function.
I know how to use it for the diffusion term, but how should I handle the term $... |
How to solve for small gamma in the integral equation in Scipy ? I recognize it has to be solved with both the numerical integral and a root solver (Newton's method)
$$ \int_{\gamma}^{+\infty}f(x) dx = 0.01 $$
The function f isn't a known analytical function, it is a probability distribution represented by an array of ... |
I'm looking at this famous paper which is available in the link below:
Franco Brezzi, LD Marini, Endre Süli, Discontinuous Galerkin methods for first-order hyperbolic problems, Mathematical Models and Methods in Applied Sciences Vol. 14, No. 12 (2004) pp. 1893-1903, doi:10.1142/S0218202504003866, ResearchGate.
I am ... |
I have a complex part that contains features of the form shown in the figure below.
Because of the cost of 3D finite element simulation of the part, I want to try an analysis with 2D thick shells.
However, I am running into a problem when trying to extract the mid-surface of the part. Automated tools provide me with ... |
Given a model $f$ as a programming routine, such that we are able to compute $y=f(x)$ for any $x \in \mathcal{D}$, I am interested in the sensitivity (or let us say derivative) of $y$ with respect to $x$.
The important thing is that $f$ could be any model, for instance a machine learning model, a neural network or a mo... |
I have a black-box simulation that produces the time evolution of a probability density function p(x, t) in 1 dimension from arbitrary initial conditions p(x, 0). The underlying simulation occurs on a discrete lattice of sites x=0, 1, 2, ... but when p(x, t) is a sufficiently smooth function of x, we expect that the be... |
i'm looking for some advice for finite element analisys. i'm a biomedical engineering student with few knowledge about the FEM.
Tools like Comsol and Ansys are very powerfull but also complex and i feel more industry oriented because of all the premade settings and configuration to learn.
I'd prefer a more basic tool t... |
I had written an algorithm that searches for the optimal weight parameter to be implemented in the successive-over relaxation (SOR) method which worked cleanly by vectorizing the interval and for each ω the spectral radius of the iteration matrix is computed.
However, I was advised not to use this approach for large s... |
Consider the diffusion equation with a coefficient $\nu$: $$-\nabla \cdot (\nu \nabla u)=f$$ with Dirichlet boundary conditions $u = g_D$ in $\partial \Omega$.
If the coefficient would be constant, then the weak form (see step-74 from deal.ii library) is: $$\begin{align*} &\sum_{K\in {\mathbb T}_h} (\nabla v_h, \nu \na... |
Attached below is some code I wrote to solve a basic problem: finding the node displacements of a cube with two vertices constrained (vertices 6 and 7 with coordinates [1,1,1], [1,-1,1]), and the rest of the vertices loaded with point loads in the y direction. What I expect is for the displacement at vertex 0, with coo... |
For a given function $f(x)$, I have tried to find its numerical integral using Simpson's 1/3 and Simpson's 3/8 rules.
I then compare the solution from the numerical quadratures to the analytical integral to calculate the errors. I find that the error for the 3/8 rule is double that of the 1/3 rule, while the opposite i... |
I am trying to simulate the propagation of light in material using the non-linear schrödinger equation (NLSE):
$$\partial_zE=\frac{i}{2k_0}\nabla^2_\perp E+\frac{ik_0n_2}{n_0}\vert E\vert^2E-0.5\beta^{(2)}\vert E\vert^2E-\frac{\sigma}{2}(1+i\omega_0\tau_c)\varrho_eE$$
together with a plasma-generating term
$$\partial_t... |
I'm using Python's optimize.lsq_linear method to run a linear regression with the bounds set between 0% and 100% power usage.
x = optimize.lsq_linear(A, b, bounds=[0,100], method='trf')
The A matrix is sparse and there are many situations where some of the X values have very, very little effect on the results. Someti... |
I was looking at the Cheney and Kincaid book (6th edition) on numerical methods, with respect to collocation method for differential equations. Now for linear systems of ODES, collocation is just a linear solve. But for nonlinear systems of equations there is a residual function that we minimize.
The residual function ... |
I met a problem in solving a set of coupled differential equation, as shown below:
$$A_1\psi_1(z)+A_2\frac{d^2\psi_1(z)}{dz^2}+A_3\frac{d\psi_2(z)}{dz}=\lambda\psi_1(z)$$
$$A_4\psi_2(z)+A_5\frac{d^2\psi_2(z)}{dz^2}+A_3\frac{d\psi_1(z)}{dz}=\lambda\psi_2(z)$$
with the following 4 boundary condition:
$$\psi_1(0)=\psi_1(d... |
I recently ran into an interesting result.
I have a matrix $D$ containing pairwise distances between all points in a dataset. This matrix is converted to a similarity matrix $S$ via an RBF kernel.
Because calculating the full distance matrix is expensive, I use randomized linear algebra techniques to approximate $S$. A... |
In successive convex approximation method, can the solution be considered to be an acceptable solution if the algorithm reaches the maximum number of iterations without noticeable convergence? or it must converge to a certain tolerance?
|
I've always had this question in mind (even if it may sound vague), but in my numerical analysis courses we've always learned how to analyze and optimize code. However, since most linear algebra libraries (i.e. LAPACK, BLAS, etc.) have been continuously optimized by professional developers since the 1980s, I'm question... |
To calculate the expected value of objective functions, we have two choices:
Sample Average Approximation (SAA):
$$
\frac{1}{N}\sum_{i=1}^N f(x,\xi^i).
$$
Numerical Integration (e.g., Monte Carlo method):
$$
\frac{1}{N} \sum_{\xi^i\in\Xi^N}^N f(x,\xi^i)p(\xi^i),
$$
where $p(\cdot)$ is a probability density function an... |
I have been reading Kloeden and Platen's Numerical Solution of Stochastic Differential Equations, and have more or less been trying to systematically complete the various exercises therein as I go along. I have been effectively stuck on a single problem for a long while, and despite returning to attack it periodically,... |
I am trying to compute the double Richardson and Wolf integrals for the focusing of a lens with Boost in C++ (using the Gauss Kronrod method).
As a starting point, I used the example presented in this question. My problem is that I have to perform several integrations (looping in the image space) with variable paramete... |
I'm studying an error estimator for the equation $\nabla\cdot(\beta u) + cu = f$ and it contains the following term $$||f - cU_h - \Pi(f-c U_h) ||_T$$
where :
$\Pi$ is the local orthogonal $L^2$ projection onto the classical polynomial DG finite element space $\{v \in L^2: v_{|K} \in \mathbb{P}^{r}(K) \}$
$U_h$ is the... |
For instance, consider a module with the following general structure:
module test
implicit none
contains
function f(x)
...
end function f
subroutine sub()
...
y = f(x)
...
end subroutine
end module test
As such this is incorrect, as is doing something similar insid... |
I have the nonlinear PDE
$$\frac{\partial U(z,t)}{\partial t} + A(U)\frac{\partial U(z,t)}{\partial z} + B(U)U(z,t) + C(z,t) = 0,$$
where $A(U)$ and $B(U)$ are guaranteed to be real and positive.
I want to use the MacCormack finite difference method to numerically solve it. For (Von Neumann) stability analysis, I use a... |
In some scientific papers I see that authors provide what type of simulation tool and what type of computer was used for computation. For example:
The computations were performed using MATLAB in double precision on a VAX 11/780 computer, the unit roundoff $u=2^{-56}\approx1.39\times10^{-17}$.
From my understanding Ma... |
In the finite element method we need to know a base for the fem spaces. For example, a base for the space
$P_1(\hat{K})=<\{1-x-y,x,y,z\}>$
is a typical base for the polynomials of degree less than or equal to 1 on a tetrahedron with vertex (0,0,0), (1,0,0), (0,1,0) and (0,0,1).
But, which is the base for $P_2(\hat{K})$... |
Before I get to the heat equation I'd like to talk about the advection equation.
Descritize that with FD in time and BD in space:
\begin{equation}
\dfrac{u^{n+1}_i - u^{n}_i}{\Delta t} + v \dfrac{u^{n}_{i} - u^{n}_{i-1}}{\Delta x}= 0
\end{equation}
there are higher order terms which were cancelled out so let's bring th... |
I am familiar with Cholesky decomposition and LU factorization for solving systems of linear equations.
I have a problem where I have large sparse matrices (say, 1000x1000 or larger) where only one or two rows/columns (last couple rows/columns) break symmetry. I understand that Cholesky is nearly twice as efficient as... |
is anyone here aware of whether there exist bounds on the optimal bandwidths of 2D/3D FEM stiffness matrices?
Edit: more specifically, I would like to have bounds on the minimum bandwidth after optimally reordering the matrix. (This definition of bandwidth is the usual one in graph theory.)
|
When you're multiplying sparse matrices against other sparse matrices or dense matrices, what is the conventional approach for each? How are the sparse matrices stored? What does matrix multiplication work?
My understanding is there are several ways it can be stored:
(1) Store the non-zero elements in a hash table wher... |
I recently had a software engineering interview and was asked a series of questions that was a bit outside of knowledge realm, and I feel like there's some scientific computing principles here (I took some scicomp courses many years ago, and I got some scicomp vibes when these questions were asked). I am wondering if a... |
This question is a follow-up of this previous one. In "Error Control for Discontinuous Galerkin Methods for First Order Hyperbolic Problems" by Georgoulis et al., an error estimator is provided in equation (4.7).
It contains the term $$||f -b \cdot \nabla \hat u - cu_h - \Pi(f-b \cdot \nabla \hat u-c u_h) ||_T$$
where ... |
I am trying to numerically solve equation (6) of Lakhina 2021 in Python. The equation is
$$\frac{1}{2}\left(\frac{d \phi}{d\xi}\right)^2 + S(\phi, M) = 0\, .$$
The Sagdeev potential expression is given by (7).
What I want is to reproduce the potential profiles in Fig. 3 of Lakhina 2021.
The boundary conditions given ... |
The goal is to find vectors $x_u$ and $y_i$, both of the same length $f=64$, and to do this the following loss function is minimized:
$$\sum_{u, i} (1 + \alpha \cdot r_{ui})(p_{ui} - x_{u}^{T}y_i)^2$$
The vectors obtained are user-factors and item-factors, used for the purpose of rating calculation in a Recommender Sys... |
I am using COMSOL to solve a mathematical model involving thermoelectric hydrodynamic (TEMHD) flow. I am running a very large parameter sweep and using the solutions obtained to make some plots. However, I get a rather strange phenomenon appearing from time to time, in which the solution appears to exhibit strange osci... |
I am an amature in python, I wrote a simple code in jupyter. But it is giving an error. I want to plot a function:
import numpy as np
import math as m
#from scipy import random
import matplotlib.pyplot as plt
y1=np.zeros(10)
y2=np.zeros(360)
x=np.array(range(10))
print("a")
x=np.linspace(0,100,1)
d=1... |
As we all know, the Additive Schwarz approach can be used as either solver or preconditioner, however, my question is, what is the difference between the two? In other words, how to use AS as solver, how to use AS as preconditioner?
I found the below equations which give specific definitions of both, but I do not under... |
Context
Let's say I am trying to model the spread of mold in a petri dish, using a stochastic cellular automata approach. The petri dish can be thought of as a grid of 1mm x 1mm squares, each called a Cell. Each square has a value for the kind of food that is present there, and the probability of mold spreading into ... |
I tried to implement the 2d advection problem with a velocity field, that is not constant in space. My problem is, that the "mass" of my shifted density gets "eroded" or just disappears, i.e. the norm $\|u_t\|$ goes to zero as time progresses. At least I want to minimize its decay somehow.
The initial condition has no... |
I am trying to reproduce the results from the hp-VPINN paper (https://arxiv.org/pdf/2003.05385.pdf) on tensorflow (v1) for Poisson's equation, particularly the two-dimensional Poisson equation.
In one dimension the variational loss is given by
$$
L^p = \sum_{e=1}^{N_{el}}\frac{1}{K^{(e)}}\sum_{k=1}^{K^{(e)}}\left|\... |
I am trying to estimate parameters, 4 of them, by fitting a system of 3 ordinary differential equations.
I am using a model published that was using 3 parameters and gave a good fit to the data, and I am trying to add a parameter to this (without changing the system of ODE, there is just a rate that is used twice, and ... |
I would like to calculate the number of floating point operations (Flops) my code is performing in my machine. To do so, I would like to be sure I am counting the operations in the inner-most loop correctly.
My understanding is that the relevant number, which are the operations inside the vectorized loop, total $25 N^2... |
I have an optimization problem, which is to maximize the following integral over the unit sphere:
$$
\max_B \int d\Omega \mathbf{f}^{\dagger}(\theta,\phi) (B^{\dagger} + B) \mathbf{f}(\theta,\phi)
$$
subject to:
$$
B = Q L^{-1}
$$
where $Q$ is an orthogonal matrix, and $L$ is a given lower triangular matrix. The vector... |
I'm studying from Guermond lecture notes available at https://www.math.tamu.edu/~guermond/M661_FALL_2019/chap12.pdf (see Lemma 12.8( Discrete trace inequality).)
Consider the simple case $p=r$, i.e. we wanna prove that $$||v||_{L^p(F)} \leq C h_K^{-1/p}||v||_{L^p(K)}$$
The proof is really short, as can be seen in the l... |
Let $M_n(\mathbb{R})$ denote the set of $n\times n$ matrices with real entries. I have an $n\times n$ matrix $X\in M_n(\mathbb{R})$, and I would like to implement the linear operator $[X, \cdot] : M_n(\mathbb{R})\rightarrow M_n(\mathbb{R})$ as an $n^2 \times n^2$ matrix, where this operator is defined in the following ... |
I am trying to compute the area of an 8-node rectangular serendipity finite element from the equation
$$
\sum_{i= 1}^8 det \, J(\xi,\eta) \cdot W_i
$$
based on Gaussian quadrature, where
$$
J(\xi,\eta) =
\begin{vmatrix}
\frac{\partial x}{\partial \xi} & \frac{\partial y}{\partial \eta} \\
\frac{\partial x}{\partial \e... |
I am having trouble implementing a model from a publication.
Huang, K-L.; Holsen, T.M.; Selman, J.R. Ind. Eng. Chem. Res. 2003, 42, 15, 3620–3625
scihub link: https://sci-hub.se/10.1021/ie030109q
I want to model the diffusion of bisulfate through a nafion membrane using my own cell parameters. The system is two 10 L ta... |
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 approximately banded (b... |
I have a solution in search of a problem that some of you could perhaps help me with.
Let $L$ be a list of elements. Each element has two inherent properties/attributes ($a$, $b$) that can each be expressed as real numbers. The values of the two attributes of each element are completely uncorrelated. The goal is to re-... |
In any asymmetric encryption specifications, there is a step where we need to calculate data ^ public_key mod e to get encrypted_data, and, also, to decrypt using encrypted_data ^ private_key mod e. it's recommended to have keys to be around 2048 bits in length, and considering that we want to encrypt something small,... |
I am trying to implement Large eddy simulation for solving air flow simulation with large Reynolds number using Smagorinsky sub-grid stress model. I read that the filter size should be calculated based on the grid size: $\Delta=(\Delta_x\Delta_y\Delta_z)^{1/3} $
Could you please let me know that shall I calculate this ... |
I was solving the time independent Schrödinger equation using the shooting method for harmonic oscillator potential. This is the code that I wrote for that with the results (code is written in julia):
m, omega, hbar, del_x = 1.0, 1.0, 1.0, 1e-3
function get_eigenfunction(xgrid, V_x, E_n, del_x, m=1; hbar=1, s=1e5)
... |
I am studying the numerical resolution of 2d advection-diffusion problems with finite element methods.
$$\frac{\partial u}{\partial t} + \beta\cdot\nabla u = \nabla\cdot(\nabla u) \, .$$
It is said in this article on the COMSOL blog that it has been mathematically proven that the condition on the cell Péclet number
$$\... |
I have learned about the finite element method (FEM) as a method for solving boundary problems given by a PDE. The way I learned it is to approximate the solution by a linear combination of test functions. (I think it is called "Method of mean weighted residuals".)
Now when looking for FEM online I see it is used in st... |
When solving a PDE numerically by domain decomposition methods, what is the "optimal way" to split the domain? Are there any results stating that a particular partition of the domain yields "better" convergence than other partitions?
For concreteness, let us consider the classical Poisson equation $-\Delta u = f(x)$ wi... |
Suppose we have a countably infinite $A$ and $F_1,F_2,\cdot\cdot\cdot$ are an infinite sequence of finite sets (denoted $\left\{F_n\right\}_{n=1}^{\infty}$) such that $\bigcup\limits_{n=1}^{\infty}F_n=A$, $F_1\subset F_2\subset \cdot\cdot\cdot$ and $F_t$ is a structure of $A$ where $t$ is between one and infinity.
Cor... |
Motivation
Suppose we have a countably infinite $A$ with order and group structures and suppose $F_1,F_2,\cdot\cdot\cdot$ are an infinite sequence of finite sets (denoted $\left\{F_n\right\}_{n=1}^{\infty}$) such that $\bigcup\limits_{n=1}^{\infty}F_n=A$, and $F_1\subset F_2\subset \cdot\cdot\cdot$
We state that $F_t$ ... |
Suppose I want to minimize below objective function
$\sum | g(x_i) \cdot I_{g(x_i)<0} |^2$
i.e, the latter penalty terms like $ |g(x_i)|^2 $ are only computed when $g(x_i)<0$. $|g(x_i)|^2$ are convex functions. Is there a way to formulate it? I know sum of convex functions are convex, but if I have added this strange ... |
First post. Hi everyone.
I’m trying to develop an algorithm to later code that schedules appointments in a way such that the number of hours occupied by the appointments in a given day is maximized.
Appointments can be an hour or half hour long and all appointments should have a 15 minute buffer between them.
I’m gett... |
I am trying to simulate the spread of mold in a petri dish using a cellular automata based approach. Thanks to the answer in my other question Stochastic cellular automata - algorithm limited by 1 cell per timestep, I am attempting a different approach using a priority queue.
Context
The petri dish can be thought of a... |
I am implementing a finite difference method for a PDE with a Neumann boundary condition. I will simplify my question to a single dimension.
Suppose I have a PDE
$$\frac{\partial u}{\partial t} = \frac{\partial^2 u}{\partial x^2} + \text{ (other terms)}$$
on the interval $[a, b]$. I impose on the PDE the Neumann bounda... |
I am considering implementing the accelerated inverse power (AIP) method with Rayleigh quotient to speed up eigendecomposition of a real square symmetric matrix. Halton (1996) gives an example algorithm which is listed below
Step 1. $\quad \mathbf{M}= \mathbf{H} - \mu \mathbf{I} $
Step 2. $\quad \text{Solve } \mathbf... |
I'm curious about the general case, but for ease of explaining lets just take the case of a $P^2(\Omega)$ approximation. For simplicity, let's also just consider the reference element $(0,0), (0,1), (1,0)$. To satisfy the global continuity condition, each edge must have three points on it. Thus to have a conforming FE ... |
I am running a sensitivity study on the model $y(t) = x(t - \tau)$ where $y(t)$ and $x(t)$ are 2 time signals and $\tau$ a time lag. Basically I want to study the sensitivity of $y$ to a change in $x$. Note that the model is very simple just for the sake of illustrating my question.
What I think about is the derivative... |
I am interested in the iterative solution (preferably Krylov-type solvers) of a problem $\boldsymbol{A}x=b$, with $x,b\in\mathbb{C}^{n\times1}$ and $\boldsymbol{A}\in\mathbb{C}^{n\times n}$. $\boldsymbol{A}$ is symmetric, invertible, and its real and imaginary parts are indefinite. This comes from solving a harmonic,... |
I am solving numerically the ODE $\ddot x(t)=-c\dot x(t) -\sin(x(t))+F\cdot \cos(\omega t), \;\dot x(0)=x(0)=0$ for $t\in [0,20\pi]$ on an $N=2000$ dimensional grid. I am working on Python, and I replaced the time derivatives by the finite difference operators
\begin{align} \dot x(t)&=\frac{x(t+dt)-x(t)}{dt}, & \ddot ... |
Given $A\in\mathbb{C}^{n\times n}$, I want to use LMI or SDP to find feasibility of $x>0$ in the following inequality:
$$(I-A^*A)+x(\frac{A+A^*}{2})\prec0,$$
where $D\prec0$ means that $D$ is negative definite matrix.
Let $A_1=I-A^*A$ and $A_2=\frac{A+A^*}{2}$, then we get an LMI: $A_1+xA_2\prec0.$
Example 1:
Let $A=\... |
Context
I have an array of objects (or a list of dictionaries), sorted in order based on a property of each object, say, time. In JSON, it would look something like this:
[
{'details': 'some details', 'time': 69},
{'details': 'some details', 'time': 79},
{'details': 'some details', 'time': 107},
{'details': 's... |
I am trying to better understand the FAS multigrid algorithm for Euler equation in FV discretization. The usage of the modified residual (the residual with forcing) inside the different cases:
Unsteady computations : referring to the Jameson's paper I understand that it is used in the dual time step computation that a... |
I am writing a proof-of-concept implementation of Newton's method for minimizing the negative log-likelihood term in a logistic regression model. I'm comparing the performance of a native python implementation and a fortran implementation where I link via f2py. Surprisingly, the Fortran version is slower than the Pytho... |
I wish to solve a linear system $A x =b$ in which $A$ is dense but not too large, say no larger than $10\times10$. However, I am not interested in the full solution vector $x = [x_0, x_1, \dots]$, rather I only care about accurately determining $x_0$. I know that Cramer's rule can compute $x_0$ directly, but this requi... |
Suppose I have a square matrix $\mathbf{A} \in \mathbb{R}^{n\times n}$ and a vector $\mathbf{b}\in\mathbb{R}^n$. In my application I need to accomplish two things.
I need to find the solution of the linear system $\mathbf{A}\mathbf{x}=\mathbf{b}$.
I need to compute the log-determinant of $\mathbf{A}$.
Naively, I coul... |
Question is mostly related to literature or suggestions.
Given a semi infinite domain: $x=[0; +\infty);y=[0; +\infty)$. Willing to transform it to computational domain of: $[0,1]\times[0,1]$.
I did find the $(-\infty, +\infty)$ to $[-1,1]$ transformations, though looking for mapping operators from semi infinite to fini... |
I'm currently solving incompressible Navier-Stokes system of equations with periodic flow and high viscosity.
Is there any outlet boundary types that avoids the reflection of flow from the outlet back into the computational domain? (Neumann is not sufficient).
Update:
Left: $u = C sin (\alpha y + \beta t) + u_0$
Top: ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.