instruction stringlengths 43 28.1k |
|---|
Sentiment analysis using Machine Learning is a hot topic. Which is the best classifier to use based on the amount of training data available?
|
I'm trying to solve the steady-state heat equation with a space-dependent thermal diffusivity in FreeFem. I.e. $$\nabla\cdot(\kappa(x,y)\nabla T) = 0$$
I'm hoping to read in from a file locations $(x_i,y_i)$ around which diffusivity changes. So, for the sake of this example, you might think of something of the form $$\... |
Quite often I do fit some ODE or DAE systems to my data (small to medium sized problems). Via the assimulo package, I found Casadi and read a bit about the language modellica.
Casadi offers automatic differentiation and an interface to ipopt. As far as I understood. It is designed to solve and optimize ODE or DAE syste... |
I also posted this in the physics forum, but maybe here it fits better.
I am trying to solve a generalized eigenvalue problem raised by linear stability analysis
$$AV=\lambda BV.$$
$A$ and $B$ are non-symmetric complex valued matrices. The set of equations I am trying to solve are linearized flow,thermal,solutal fiel... |
Regarding the numerical stabilization of two-dimensional advection equation,
\begin{equation}
\dfrac{\partial f}{\partial t} + \Big(\dfrac{d\varepsilon_1(k)}{dk}\Big)\dfrac{\partial f}{\partial z}
- \Big( \dfrac{d\varepsilon_2(z)}{dz} \Big)\dfrac{\partial f}{\partial k} = 0
\end{equation}
I have encountered some texts ... |
I was previously running my neural networks using the Lasagne library to build and train neural networks in Theano on an NVIDIA GTX 750 Ti. I'm using a genetic algorithm to tune the hyperparameters of my neural network, so I bought a GTX 780 Ti to speed up training each neural network. The 780 Ti should have over 3 tim... |
I'm trying to solve
$$\nabla^2u + ku = f\text{ in } \Omega,$$
$$u=0 \text{ on }\partial\Omega,$$
where $\Omega$ is a unit square and $k,f$ have real and imaginary components as $k=k_r+k_ij$ and $f(x,y)=f_r(x,y) + j\cdot f_i(x,y)$, respectively.
My approach to solve this problem is to assume the solution has both a rea... |
I would like to sole the spring mass equation of the form:
$M\ddot{Y}+B\dot{Y}+KY = F_y(t)$, where $M :$ mass, $B :$ Damping, $K : $ stiffness, $F_y :$ external force and $Y :$ displacement in transverse direction; using Runge-Kutta 4th-order method.
I modify RK4 C++ code as:
/*
Definition of the y'(t) = f1(t,y,y') = ... |
I was playing with the idea that a sine function is periodic. But even within one period there are symmetries, namely the second fourth of a period is the mirror image of the first fourth and the second half is minus the first half. So if I could approximate the sine function from $0$ to $\pi/2$, then I would have enou... |
I have a random point generator which takes a distance $d$ and fills an area with points such that distance between any two points is no less that $d$:
I need to control the number of points in the area, but how to choose $d$? What is needed is just a rough guess since the best $d$ is found using a binary search algor... |
I am trying to solve a bunch of equations for the zeros of the derivative of an analytic function, and I would like to know if there exist methods that exploit this structure to provide better performance than the standard algorithms.
At the moment I am using Mathematica's FindRoot function, which I understand relies o... |
So I have an optimization problem of the form
$$\text{maximize}\hspace{3mm}f(A):{\bf R}^{K\times K}\rightarrow{\bf R}$$
$$\text{subject to}\hspace{19mm}A^T{\bf 1}=\bf{1}$$
$$\hspace{33mm}A\geq 0$$
where the constraint set is thus the manifold of left stochastic matrices (each column sums to 1). The objective function ... |
In COMSOL, is there a way to get it to export a txt file with all the eigenfrequencies found during an eigenfrequency analysis? I suppose that it could be done through the MATLAB interface or through the COMSOL GUI.
|
I was very surprised when I started to read something about non-convex optimization in general and I saw statements like this:
Many practical problems of importance are non-convex, and most
non-convex problems are hard (if not impossible) to solve exactly in a
reasonable time. (source)
or
In general it is NP-har... |
In the family of Lattice Boltzmann (LB) methods, like many others, one deals with three types of node; namely, fluid node, solid node, and boundary node. (I know; the boundary node is a subtype of fluid node.)
What are the exact definitiones of these nodes? (mathematically, or physically)
What is the type of red node ... |
I have the following system of coupled differential equations (the Bogoliubov-de Gennes equations for a certain geometry):
$$
\begin{cases}
-\frac{1}{2}u''(r) + \big[\frac{1}{2r^2} + f_1(r)\big]u(r) + f_2(r)v(r)=\omega u(r)\\
-\frac{1}{2}v''(r) + \big[\frac{1}{2r^2} + f_1(r)\big]v(r) + f_2(r)u(r)=-\omega v(r),
\end{cas... |
In Julia it appears that one picks up some error terms when doing finite differences using matrix multiplication versus shifts and addition.
julia> n = 1000
1000
julia> hessM = circshift(eye(n),-1) + circshift(eye(n),1) - 2* eye(n);
julia> function hess(x::Vector)
return circshift(x,-1) + circshift(x,1) - 2*... |
I am trying to simulate decaying homogeneous isotropic turbulence. As initial condition I want a divergence-free vector-field, i.e, $\mathrm{div} U = 0$.
How do I initialize random velocity field in an uniform grid such that above condition is satisfied?
|
Suppose we have a sparse matrix $A$. Is there any way to compute just the sparsity pattern of $A^2 = A \cdot A$ (I do not actually need to know what exactly the nonzero value are) faster than to compute the full sparse product $A \cdot A$?
|
Given a symmetric matrix $A$, the Lanczos algorithm outputs $C$ such that $C^{T}AC$ is tridiagonal. Is there a generalization of this such that $C^{T}AC$ is banded of specific width $w$? Note that $C$ can be rectangular.
|
I have a reference value $R$ and a modelled value $M$. $M$ is generated using a stochastic algorithm with parameters $a$ and $b$.
The objective is to tune $a$ and $b$ so that $M$ is as close as $R$ possible (heuristically). But each run of $M$ takes around 30 seconds. Any "good" algorithm will be jammed by this computa... |
I need to solve a linear system of the form
$$Ax = b$$
where $A$ is upper Hessenberg matrix with the lower bandwidth equal to 1, $b$ is the RHS vector and $x$ is the solution vector. I have a C++ routine based on "C.B. Moler, Algorithm 423, Linear Equation Solver, C.A.C.M. 15 (1972), p. 274." that solves the system. Ho... |
This is an entry-level question for multiway matrix decompositions. I have a set/population $k$ of entities (here biological cells) for each of which I also have a number ($l$) of flavours of length $N$ vectors (genetic-like measurements for which $N \gg k$) which characterise them. Now if I take just one type of vecto... |
I am trying to solve a problem, which I find quite hard, like, headache-hard. I have to solve the following set of $M$ nonlinear equations:
$$F(X)=\begin{bmatrix}f_1 (X)\\f_2 (X)\\...\\f_M (X)\\ \end{bmatrix}=0,X\in{}R^{N\times{}M}$$
With:
$$f_i\left(X\right)=x_{*,i}-F^{-1}\left[k\left(\omega{}\right)+\sum_{j=1}^Mq\lef... |
I'm going through this paper.
The article defines function function $\phi_n^\mu(x)$ that is orthonormal on $L^2$ with measure $dm = dx$:
\begin{equation}
\phi^\mu_n =\left(\frac{\gamma_\mu(n)}{\Gamma(\mu+\frac{1}{2})}\right)^\frac{1}{2}\frac{1}{\sqrt{2^n}n!}e^{-\frac{x^2}{2}}H^\mu_n(x)x^\mu; \mu,n\in{N},
\end{equatio... |
I am interested in 2D channel flow of an incompressible Stokes fluid (Re << 1), with periodic boundary conditions in the x-direction and no-slip at the walls in the y-direction. I have existing code that solves this using a stream function formulation which is tested and works correctly. The details of the numerical i... |
I am currently using the wrapper odeintw for scipy.integrate.odeint to solve my equations since they are complex-valued.
At the moment, I have 3 coupled first-order differential equations with 2 independent variables
\begin{align}
\frac{\partial C}{\partial t} &= \frac{i}{a}(AB - cd) - \frac{C}{t_1}\\
\frac{\partial A}... |
I would like to link my Fortran 90 application to a library which would give me Delaunay triangulation (for a 2D set of points) and tetrahedralization (for a 3D set of points). As suggested in Fastest Delaunay triangulation libraries for sets of 3D points thread I am going to try TETGEN, which functions as both, a libr... |
I'm familiar with kmeans to cluster data points, but not text.. So I have one column of words in cvs format, which I want to cluster those which have similar word or more, and then mapping those cluster to numbers as index, those index numbers needed to be added as a second column. I know there is scipy packahes and wo... |
I am learning the theory behind DG-FEM methods using the Hesthaven/Warburton book and I am a bit confused about the role of the 'numerical flux.' I apologize if this is a basic question, but I have looked and not found a satisfactory answer to it.
Consider the linear scalar wave equation:
$$\frac{\partial u}{\partial ... |
I am in a begginers programming course and we got a little project. I chose to simulate the three body problem using the Euler method. Even though the system is chaotic there are some special cases which produce symmetric trajectories. I get most of them, but the most important one doesn't come out. It's called figure ... |
I have the task to fit a rotated rectangle of known size into an image like
This is a synthetic test case, in the real application, everything is rather blurred. The rectangle has to cover as much as possible of the black region, while covering as little as possible of the grey region while the white region is ignore... |
Is there a method to check for unconditional stability or positive-definiteness of large matrices in MATLAB?
For example, I know that matrices with property M (positive main diagonal elements and negative off-diagonal elements, with the main diagonal elements in each row or column being larger than the summation of off... |
Could anyone suggest the most computationally efficient method for finding amplitude at a given frequency having a noisy wide band signal.
To be more specific about a task. I have some physical dynamical system. I'm introducing sinusoidal input with exact frequency and amplitude. And looking for the amplitude at the sa... |
in systems biology why is the use of delay differential equations better than ordinary differential equations i.e. compartment models in delay modelling? is there a data independence angle in models parameter estimation?
|
I'm currently developing a simulation and I intend to use VTK for visualisation. Furthermore, I fell a bit stupid right now, as I do not find a good example on how to generate the data for VTK. There are many examples that start from reading the data and then do some visualisation with it.
BUT what is with the other si... |
I'm having trouble understanding how GMRES works. I've read the part in Saad's book and a few others but still I am confused. Can someone provide me a numerical example to understand it better? Or if that's not possible maybe a walk through the algorithm step by step?
|
I am trying to work out a second order or higher order correction for the method of Spectral deferred Correction (SDC). Specifically using as a corrector a second order or third order multi-step.
In SDC, the timestep $[t_{n},t_{n+1}] $ is subdivided in m quadrature nodes $[t_{n,1},t_{n,2},...,t_{n,m-1},t_{n,m}] $.
The... |
The figure below shows the PCA projections of inputs which are 14 meteorological features, (i.e. wind, temperature, humidity, pressure, and so on.)
I would like to use any technique to make it more separable than this, The ISOMAP method is also used instead of PCA, but it gave a non-separable distribution as well! Any ... |
i have a question about a FE problem im working on.
I made a finite element model of an linear elastic block of material (double striped block) attached with a rigid connection to the environment (colored block). A force is applied in the bottom right node.
The nodal displacements are calculated according to the Direc... |
I want to solve the 2D Laplace's equation:
$$ \frac{\partial^2 T}{\partial x^2 } + \frac{\partial^2 T}{\partial y^2 } = 0 $$
with boundary conditions: T(x=0)=T(x=1)=T(y=1)=0 and T(y=0)=1 on a 1024x1024 discrete grid.
How do I do this?
Is it the Discrete Sine Transform I should use? If so which of them?
|
I have a system with below coefficient matrix
$$ C = \begin{pmatrix} A & B^T \\ B & D \end{pmatrix},$$
where, $A$ and $D$ are square and positive definite. Furthermore, if $B$ be square, then $B$ will be positive definite (it is optional). It is possible that the condition number of $C$ will be large. How can solve thi... |
I'm currently developing a large simulation that will run on many nodes, and, as far as possible, on GPUs. I'm now considering to build it using libraries from the Trilinos project. I would for sure need Kokkos, Tpetra and some linear solver libraries. I also need to deal with a mesh and with construction of FEM equati... |
I'm currently in the process of writing a self-consistent Schrodinger-Poisson solver for a device heterstructure (High Mobility Electron Transistor). The algorithm is based off of this journal(1). I am having a few difficulties however. It seems like I can either have Dirichlet BCs or Neumann BCs at the substrate (i.e.... |
I have implemented a constitutive equation of elastic materials (Hooke's law) in my 3D weakly compressible SPH solver based on [1]. The coding seems to be correct.
To verify the implementation I started to check the solver through simple test cases. One of them is a rotating planar object in zero gravity (initial condi... |
Suppose I have to solve the 2-D heat equation in a rectangular domain using the finite difference method, for the boundary conditions say:
$T_1$ is the temperature of the right side of the rectangle,
$T_2$ is the temperature of the top side,
$T_3$ is the temperature of the left side,
and $T_4$ is the temperature at the... |
I'm fooling around with the decision on how to build a multiphysics simulation for too long now (also several questions in this forum). First, I thought it would be possible/necessary to write most of it from scratch and by combining various libraries. (I did this in Matlab and Python to get familiar with the model, so... |
I'd like to know how to solve in MATLAB the following integer optimization problem :
$\underset{B,D}{\arg\min} \Vert{Y-XDB}\Vert_{2}$
where $X,Y$ are given matrices.
The constraint is the following : the matrix $D$ must be a diagonal matrix and its elements must be 0 or 1.
|
I have always come across the terms "conservative" as opposed to "non-conservative" forms of equations in fluid mechanics. Is there a good reference that someone can share to clearly distinguish the two or shed some light on what they mean and what are their advantages/disadvantages?
|
I am doing a time evolution analysis for a structure and have already got the displacement result, which is a vector including x and y components. And I want to plot the time evolution of x and y displacement respectively for a point in the structure. But every time I use plot selection over time, it shows the evolutio... |
I want to solve Navier Stokes equations on a collocated grid. Earlier, I was using a MacCormick scheme based solver where I discretized predictor step in forward differences and corrector step in backward differences as mentioned in this paper (An explicit finite-difference scheme for simulation of moving particles, h... |
The image below illustrates the kinetic scheme I am trying to model.
My first example focuses on the conversion of the wood-oil to non-volatiles and volatiles. The rate equations are as follows:
$$
r_w = \frac{dC_w}{dt} = -(K_{nv} + K_v)\,C_w \\
r_{nv} = \frac{dC_{nv}}{dt} = K_{nv}\,C_w \\
r_{v} = \frac{dC_{v}}{dt} = ... |
I have implemented a Quasi Newton method for my problem, where I use the Hessian matrix approximation based approach. Hence, there is a linear system solve in every iteration. I solve the linear system using Conjugate Gradients and use the compact representation given in Representations of quasi-Newton matrices and the... |
Suppose I have a real symmetric matrix. I would like to tell wether it has at least $k$ strictly positive eigenvalues, but using only additions (no multiplications). Is there a method that I could use? I thought that maybe Gershgorin theorem could be useful, since I need only to add row (or column) elements, but it doe... |
I am learning about FEM methods and nonlinear optimization. I would like to try my nonlinear trust region solver on some simple nonlinear problem.
What would be good example to implement for beginner? I am aiming to minimize nonlinear energy.
thanks!
|
I am being asked for one of my classes to solve 2D Laplace equations with mixed boundary conditions using the Conjugate Gradient method. The equations and
conditions are given as:
$$
\frac{\partial^2p}{\partial x^2} + \frac{\partial^2p}{\partial y^2}=0\\
p = 0\text{ at x=0}\qquad p=k\text{ at x=1}\\
\frac{\partial p}{... |
Is there any version of GSA (Gravitational Search Algorithm)[1] implemented with C++ or even C#?
What I found was implemented using MATLAB which is not good for me.
[1] Rashedi, Esmat, Hossein Nezamabadi-Pour, and Saeid Saryazdi. "GSA: a gravitational search algorithm." Information sciences 179.13 (2009): 2232-2248.
|
I want to compare the number $x$ with $x' = x + \Delta x$.
If I have selected an absolute tolerance $atol = 0.1$, then:
\begin{equation}
|\Delta x| < atol \implies x' \approx x
\end{equation}
If I have selected a relative tolerance $rtol = 0.1$, then:
\begin{equation}
\left|\frac{\Delta x}{x}\right| <rtol \implies x' ... |
This question is a continuation of this answer (I can't comment) If we were going to manufacture a solution for a problem with discontinuous coefficients, I understand that the solution should have discontinuous gradient in the interface normal between the coefficients discontinuity, but this would not be arbitrary for... |
In Jacobi SVD algorithm as given here every pair of columns of the matrix is orthogonalized until convergence. I want to know that how does the order of selection of the pair of columns affect the convergence of the algorithm.
I am working on implementing this algorithm. In my program even though I am covering every pa... |
I wrote a code in MATLAB that solves parabolic equation of two space (heat equation:$u_t = u_{xx} + u_{yy}$ )with ADI (Alternating direction implicit) method (finite difference method).
Now in order to test my code for initial function I want to write a function with two variables that is like "M" ,I mean that in $x-y$... |
I apologize if some of my questions are naive; I am very new to computer simulations and fluid-dynamics.
I am going to start a PhD in early 2017, and I would like to bone-up on some Computational Fluid Dynamics to prepare. The PhD (and my background) is mostly physics-based analogous gravity, but there is a very hefty ... |
I’m using a standard Crank-Nicholson algorithm to solve this system of two coupled diffusion equations:
$$\dot{u} - \dot{v} = \frac{\partial}{\partial x} \left( \alpha(x) \frac{\partial u}{\partial x} \right)
\label{1}
\tag{1}
$$
$$\dot{v} - \dot{u} = \frac{\partial}{\partial x} \left( \beta(x) \frac{\partial v}{\par... |
Problem
I have a PDE that I'm trying to solve with spectral methods. The solution $y$ is always positive, and decays as $y \propto e^{-ax}$ for large $x$. The domain is $[0, \infty)$. (There are actually two independent variables but let's not worry about that right now.)
Unfortunately, although whatever numerical solu... |
I'd like to simulate how several particles mix together. For example, how do they settle when you throw them in a bucket? How do they assemble in zero-gravity? I might also want that they are "sticky" or that they can crack. I might also want to add some not-so-rigid things like drops of glue or snippets of strings.
T... |
Solving system of constrained linear and non-linear equations in MATLAB
I'm solving a FEM problem in MATLAB with use of the direct stiffness method. The problem is now formulated as a system of nn linear equations:
$KU=F$ or $CF=U$ with $C = K^{-1}$.
the problem is formulated in 3-Dd and has over 200 nodes. The model i... |
I need to find the (unique) root of a nonlinear function $f(x)$, $x \in \mathbb{R}$.
For the record, $f(x)$ is the CDF of a probability density minus a constant $0 < p < 1$ (I am inverting the CDF; see this question). The pdf is defined as a 1-D mixture of Gaussians times a polynomial. $f$ is analytical but relatively ... |
I have searched through the archives without success. Apparently, the question is simple:
What linear algebra library can I use that is parallel (shared memory) but without OpenMP?
As far as I've seen, OpenMP seems a requirement. Since I need to interact with colleagues using a Mac, I cannot opt for OpenMP (no, I canno... |
I would like to solve a dense linear system the form in python
$$
L\left(\boldsymbol{x}\right):=\left[\gamma^+\left[\boldsymbol{A}+\frac{1}{2}\boldsymbol{B}^{-1}\right]
+\gamma^-\left[\boldsymbol{A}-\frac{1}{2}\boldsymbol{B}^{-1}\right]\right]\cdot\boldsymbol{x}=\boldsymbol{b}
$$
I thought it is a good idea not to expl... |
Let $A\in\mathbb{R}^{n\times n}$ and its inverse be partitioned $$A = \begin{pmatrix}
A_{11} & A_{12}\\
A_{21} & A_{22}\\
\end{pmatrix},\:\:
A^{-1} = \begin{pmatrix}
\tilde{A_{11}} & \tilde{A_{12}}\\
\tilde{A_{21}} & \tilde{A_{22}}\\
\end{pmatrix}$$
where $A_{11}\in\mathbb{R}^{k\times k}$ and $\tilde{A_{11}}\in\math... |
Consider $S\in\mathbb{R}^{n\times n}$ whose nonzero elements have the following pattern for $n = 8$:
$$\begin{pmatrix}
1 & 0 & 0 & 0 & \mu_1 & 0 & 0 & 0\\
0 & 1 & 0 & 0 & \mu_2 & 0 & 0 & 0\\
0 & 0 & 1 & 0 & \mu_3 & 0 & 0 & 0\\
0 & 0 & 0 & \alpha & \beta & 0 & 0 & 0\\
0 & 0 & 0 & \gamma & \delta & 0 & 0 & 0\\
0 & 0 ... |
I have a 3D integral that is almost a radial convolution of the form
$$ \int d^{3}k'h(\mathbf{k'})g(|\mathbf{k-k'}|) $$
and I am looking for a fast and efficient algorithm (e.g. FFT) to solve it numerically. In the following I give you a brief description of the functions I am using and the problems I encountered.
The ... |
I'm currently evaluating how I could implement several algorithms on a parallel computer with a large number of nodes, each also equipped with a powerful GPU. It turns out that for many algorithms, it would be useful to "just" have a datastructure that is distributed over many nodes and on whose elements you can run a ... |
I am working with the equations for incompressible viscous fluid:
$$
\partial_t \vec{\omega} + (\vec{u}\cdot\nabla)\vec{\omega} = \nu\nabla^2\vec{\omega}
$$
$$
\nabla^2 \vec{\psi} = -\vec{\omega}
$$
$$
\vec{u}=\nabla \times \vec{\psi}
$$
with an usual notation:
$\omega$ ... vorticity
$u$ ... velocity
$\nu$ ... kinemat... |
Consider $A\in\mathbb{R}^{n\times n}$ whose nonzero elements are restricted to the main diagonal the strict upper triangular part, and the first subdiagonal. For $n = 8$ the locations that must be zero are indicated and the positions that may be nonzero are indicated by $\alpha_{ij}$:
$$\begin{pmatrix}
\alpha_{11} &... |
A user has this nice graph of f(x) on his profile and I want to learn how to do it in matlab or Gnu octave.
f(x) = -(x*x*x +x + 1)
(0,0) = center
color(x,y) = arctan2(x, f(x))
lum(x,y) = sin(hypot(x, f(x))/alpha)
But when I try in matlab I fail:
>> y= -(x.*x.*x+x+1)
>> x = linspace(0,2*pi,100);
>> plot(x,y)
The matl... |
I am solving a non-linear advection equation of the form $u_t + f(u)_x = 0$ where $f(u)$ is a complicated function of $u$. I am solving this equation using a first order fully implicit scheme (backward Euler in time and upwind for space) with second order linearization using Newton's method for non-linear convergence. ... |
I want to solve a system of ordinary differential equations with Matlab. I need this to solve a mechanical engineering related problem.
If $n$ is the number of degrees of freedom of my mechanical system, then the number of variables (and also of equations, obviously) is $n^2$.
I can easily numerically integrate the OD... |
Recently, I read a paper [1] and then I want to handle the two-dimensional linear integro-differential equation
\begin{equation*}
-\triangle u + q\Big(\frac{\partial u}{\partial x} + \frac{\partial u}{\partial y}
\Big) + \gamma\int^{y}_0\int^{x}_0 \mathcal{K}(x, y, s,t) u(s,t)ds dt = g(x, y),\quad\
(x, y) \in \Omega.
\... |
I have a little question that might be basic for some experts, but right now, its not clear for me.
I want to implement temperature depending viscosity in a finite difference scheme (incompressible fluid). Therefore, I get for the viscous term
$\frac{\partial}{\partial x_j} \left( \nu \left(\frac{\partial u_i}{\partial... |
As the title suggests, I'm looking for a very accurate algorithm to find the area under an oscillatory function.
For instance, I would like to integrate the following graph
I'm currently using simpson's method to integrate this, but I was wondering if there are more accurate methods.
|
I have a 3-tensor $A = A_{ijk}$ with each dimension between 9 and 25 (roughly), and an integer $n > 0$. I would like the factor this tensor as
$$A_{ijk} = \sum_{0 \le \alpha \lt n} B_{\alpha i} C_{\alpha j} D_{\alpha k}$$
such that that $B$, $C$, and $D$ are optimally conditioned possibly rectangular matrices. I'm no... |
I have a large vector with complex numbers.
How do I check whether it a conjugate symmetry vector?
If not, is there any way to transform it?
|
Let $\Omega\subset \mathbb{R}^d$, $d\in \{2,3\}$ be an open bounded polygonal/polyhedral set. Suppose I want to solve the following pde
\begin{align*}
\vec{q}+\vec{\nabla}u &=0\,&x&\in \Omega\\
\vec{\nabla} \cdot \vec{q} &= f\, \quad& x&\in \Omega\\
u&=0\,& x&\in \partial\Omega_{\mathrm{dir}}\\
\vec{q}\cdot \vec{\eta}... |
I am considering approximating the operator of the BVP
\begin{cases}
-u''+u'=g,&\quad x\in [a,b]\\ u'(a)=-1, u'(b)=1,
\end{cases}
by a matrix.
I tried to use the idea of finite difference method. I first consider the operator of the homogenuous BVP
\begin{cases}
-u''+u'=\lambda u,&\quad x\in [a,b]\\ u'(a)=u'(b)=0.
... |
I am an undergraduate, and enthusiastic about HPC. I am currently familiar with the tools OpenMP, MPI, CUDA, OpenCL, thrust libraries etc. But I want to know the core functioning of these tools, I want to know how exactly these environments work to get the most of the hardware. It would be great if someone would sugges... |
Suppose I have a complicated structure given in 2 or 3 dimensions as a polygon mesh. For example, this could represent a "cave" or an assembly of irreguar shaped particles or a tree, whatever. Now I'd like to "smoothen" this structure to end up with a finer and smoother polygon mesh.
It's not just about refining the me... |
I am interested in implementing pressure inlet boundary conditions for the 2D compressible Euler equations.
My equation of state is an ideal gas ($p=\rho R T$) which is thermally prefect but not calorically perfect, i.e. $c_p\equiv c_p(T)$ is a non-constant functions of $T$ alone.
The boundary condition specifies total... |
Recall that a unit lower triangular matrix $L\in\mathbb{R}^{n\times n}$ is a lower triangular matrix with diagonal elements $e_i^{T}L e_i = \lambda_{ii} = 1$. An elementary unit lower triangular column form matrix, $L_i$, is an elementary unit lower triangular matrix in which all of the nonzero subdiagonal elements ar... |
Are there benchmarks for how many multiplications of various integer types compared to floating point types can be achieved per second on modern CPUs?
I'm trying to get some hint if it would be worth to make a c implementation of an integer arithmetics algorithm. I.e. would there be speed gains to be had on modern CPU... |
I need to implement a 3D version of the Corner Transport Upwind (CTU) finite volume method (in python); and so I've been reading Leveque, "Finite Volume Methods for Hyperbolic Problems" which I think is quite good. Shown below is the critical section regarding how to generalize CTU for linear advection to arbitrary vel... |
I am trying to solve the drift-diffusion model with generation,
$$\frac{\partial N_e}{\partial t} = \alpha(x) \left| \Gamma_e (x,t) \right| - \frac{\partial \Gamma_e}{\partial x} (x,t)$$
$$\frac{\partial N_i}{\partial t} = \alpha(x) \left| \Gamma_e (x,t) \right| - \frac{\partial \Gamma_i}{\partial x} (x,t)$$
where
$$\G... |
I'm trying to solve the optimization problem below with MatLab, but I'm unsure of how to modify the constraints in the quadprog function (or how to add the constraints with the Portfolio object).
In the formulation below, omega is the weight of the asset in the portfolio (which we are trying to find).
The capital sigm... |
I'm interested in using a SWT to perform Multi Resolution Analysis over 3D data arrays. However I could not find any software package that implements it. The Matlab Toolbox of wavelets (the most complete I think) only has 3D DWT and 2D SWT, so my questions are:
There exists a working implementation of 3D SWT out there... |
I want to obtain the convolution of two discretized real functions $f$ and $g$,
$$
c(t) = \int_{-\infty}^{+\infty} \mathrm{d}{x} \, f(x) \, g(t-x)
\tag{1}
$$
via discrete Fourier transform (DFT).
As a concrete example, let $x \in [-6, 6]$ be the $x$-axis on which the functions are defined, with
$$
f(x) = \Theta(x) \, e... |
I've been trying to find an applicable PDE solver for cases such as this:
Although when dealing with stiff equations in the complex domain, applying existing packages has been problematic.
I've looked into FiPy but it doesn't seem to be able to handle complex numbers well. A possible method was to split each function... |
I am currently working on a physics problem that turns into a non-linear boundary value problem. I need an efficient numerical solver that I could run on my laptop with i5 dual core CPU. I am discretizing my 15 equations on an N x N x N cubic grid using fourth order finite difference derivatives. I am interested in usi... |
I have quite simple problem of FEM solution of 1D differential non-linear equation. Altough the problem itself is simple, the numerical solution of the arising system of non-linear algebraic equations takes hours. The system is tridiagonal type, typical for 1D FEM problems. At the moment I am using Picard or Newton me... |
I'm having difficulty with numerically solving the inviscid burgers equation.Godunov's scheme is used in most of what I've found in literature . Now my question is if using a crank nicolson shceme is wrong or not?
$\frac{\partial u}{\partial t} + u\frac{\partial u}{\partial x}=0$
with this BC:
at $t> 0 ,x=0$ : $u=1$... |
I am running octave and i have been trying ode45, ode54, ode23 etc to integrate the equation `
$$Q''(t) = B\cos(Q)\sin(\omega t)$$
$$Q(t=0)=0.$$ When the time interval to be integrated increases, the execution time increases non-linearly. Integrating from t=0 to t=T takes 1.2 seconds. For 10T it takes 12 seconds, fine!... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.