instruction stringlengths 43 28.1k |
|---|
I've been developing a curvilinear FVM code. So far I've implemented the PPM scheme and am looking into adding WENO schemes. So far I've been discretizing the grid metrics using a second-order central.
For the WENO scheme will I need to use a higher-order scheme (5th order?) for the grid metrics. When I use the WENO s... |
It was suggested I ask this question in this section. Anyway:
I have a particular nonlinear PDE of the form
$$
u_t(x,t)=iu_{xx}(x,t)+f(x,u(x,t))
\tag{1}
$$
Where f is some nonlinear function. With boundary/initial conditions
$$ u(0,t)=u(L,t)=0, u(x,0)\approx0
\tag{2}
$$
Where $L$ is the length of the region considered.... |
How to set the initial guess for the iterative solver GMRES or FGMRES for linear problems (Helmholtz equation of RF module) in Comsol?
|
Does anyone have a intuitive explanation of why Hermite polynomials have to be utilized as the shape functions in the FEM solution of the Euler Bernoulli Beam 4th order ODE?
I have been learning FEM on my own and can't figure out why any other 2nd order polynomial can't be utilized in the place of the cubic Hermite one... |
I'm trying to solve the Nonlinear Schrodinger's Equation (NLSE) in 2D using Finite Elements, but I don't know how to handle the nonlinear term. I suppose I have to apply the Newton-Raphson algortihm to my discretized system of PDEs, but i'm not sure how to proceed.
Note: I just started studying Finite Elements two week... |
I have the impedance matrix $Y$, formulated from an electrical network by augmented nodal analysis. The matrix $Y$ is shown as an image to illustrate its feature visually, where all the white blocks are zero.
What could be the best possible way to inverse such matrix which is required to solve the linear equation in ... |
I am trying to solve many different linear systems in parallel in matlab. The problem is, each linear system has entirely different parts and are fairly large, so passing the information to each of the workers is taking significantly longer than solving the each one normally.
My current setup is very crude, I precomput... |
My program loads a parallel PETSc matrix $A$ on several MPI processes, each holding a block submatrix $A_i$.
I would like to retrieve the local submatrix $A_i$, the one corresponding to the current rank.
I am not trying to alter the matrix $A_i$, I only need to read it and compute some information (determinant, eigenva... |
I am at an international conference (ICIAM2019) about numerical methods and am surprised by the prevalence of applications directly relatable to arms research.
examples:
One award winner holds his talk about the mathematical problem of radar reconstruction/detection of moving objects, within his talk he describes the ... |
I only have a basic understanding of deep learning, but looking through it I had an idea on how to approximate global minima of the NN.
However, for it's activation function I am only able to use:
addition
point-wise multiplication
scalar products
multiplication with fixed matrices
on the vectors. So for example any ... |
The GP equation is
$$i\frac{\partial u}{\partial z}+\nabla^2u+|u|^2u+\int e^{-[(x-x')^2+(y-y')^2]}|u(x',y')|^2 dx'dy'u(x,y)=0$$
with Neumann boundary condition. The initial condition is given by a Gaussian function, and $x, y\in [-10,10], z>0$.
Question: How do we deal with partial differential equations with a convol... |
A cactus is a connected graph in which every edge belongs to at most one simple cycle.
How should one modify the Depth First Search algorithm to obtain an efficient algorithm that determines if a given graph is a cactus?
A solution I tried exploring is to detect all the cycles in the graph and then check if there are ... |
I am new in AI and would like to apply machine learning to estimate the channel states.
I have a set of data. It is a matrix of 10000*8. Each row of this matrix is regarding a time step, i.e., 1st row = current time step (t), 2nd row = next time step (t+1), and so on. Each column is related to one transmitter, and I ha... |
Quantum computing seems to be a very active and promising development area in computer science. However, I am curious as to what impact (if any) quantum computing will have on existing classical numerical techniques, such as CFD?
The following are two quotes from the Wikipedia article on Quantum Computing:
The capacit... |
Cleve Moler has stated that "all numerical methods for stiff odes are implicit." However, I don't know whether this statement is a mathematical fact, or an simply an observation. Moreover, many numerical methods for ODEs assume that the only thing we can do with the right-hand side is point evaluation. If, for example,... |
I want to solve the following maximization problem in $\mathbf{X}\in {\mathbb{R}}^{{m} \times {n}}$
\begin{eqnarray}
\begin{split}
\quad\max_\mathbf{X} \frac{\mathbf{Tr}(\mathbf{X}^\top \mathbf{Q} \mathbf{X})}{\mathbf{Tr}((\mathbf{X-A})^\top \mathbf{P} (\mathbf{X-A}))}
\end{split}
\end{eqnarray}
where $\mathbf{A}\in {\... |
I want to solve the non-linear ODE
$$\frac{d^2}{dx^2}y=a(y+y^3)$$
With the boundary conditions that
$$\lim_{x\to \pm \infty} y(x) =0$$
I am not aware of any analytical method for solving this kind of problem. So, I want to solve it numerically. Which method would be suitable for this ODE? I am aware of different metho... |
I would like to identify all subgraphs of maximal size (maximum number of nodes) that are recurrent in a single undirected, labeled, connected graph. I provide exemples of input and expected output below.
I'm a freshman to graph theory so the terminology may not be the most appropriate. Please correct me if you read be... |
Is there a term describing a specialised solver which is used as a subroutine or a different, larger solver?
For example, a gradient descent solver which, at each step, uses a line search to optimise what step size to take. I'm after a term to describe that line search algorithm in the context of it being a subroutine ... |
This is intended to be a more generic question not about a specific system. Given a hermitian matrix $H(x_1,\dots,x_n)$ depending non-linearly on some real parameters $x_1,\dots,x_n$. We want these to be determined numerically such that
$$H=0$$
and assume we already know that a set of parameters always exists such tha... |
Does the boost C++ library implement the computation of the wedge product?
The wedge product is mentioned here, but it is not very clear (to me at least) whether there is a template implementation of it available.
|
While learning about numerical methods for solving the Schrödinger equation I came across Numerov's method.
I want to get the solution for the harmonic oscillator by alreading giving the eigenvalues. The algorithm requires that I know two initial values of $\psi$ while I only know that $\psi$ must vanish at thr boundar... |
In order to simulate the following equation using FDM
$$u_t(t,x)-u_{xx}(t,x)=0, \quad (t,x) \in (0,1)\times (0,1)$$
$$(u_t(t,x)-u_{x}(t,x))\rvert_{x=0}=0, \quad t \in (0,1)$$
$$(u_t(t,x)+u_{x}(t,x))\rvert_{x=1}=0, \quad t \in (0,1)$$
$$u(0,x)=u_0, \quad x \in (0,1)$$
$$u(0,0) =\mu_0, \quad u(0,1)=\mu_1,$$
where $f,g,u_... |
So I have a set of linear homogeneous equations $A\vec{x}=0$. I would like to solve this for non-negative solutions. I can solve the system in general and I get the two vectors that span the solution space, but one of the vectors has negative entries. I would like to restrict the solution space to $\mathbb{R}_{\geq0}^... |
I am working on an Android app which lets a group of children draw whatever they want in a specific area. I need to check if the lines and figure that they draw are symmetric. The problem is that since the app is designed to let them draw freehand, I don't know how to compare the lines by considering certain flexibilit... |
I’m looking for software that can simulate “hot” plasmas of multiple ion species...so some sort of simulation software that could calculate ion temperature and density distributions taking into account ion-ion, ion-electron, neutral-ion collisions. Preferably open-source, though a reasonably priced off-the-shelf packag... |
I'm trying to use the Kutta-Merson to get the same results as in the book Solitons, Nonlinear Evolution Equations and Inverse Scattering - M. J. Ablowitz - pg 140
The author propose using the Kutta-Merson in the following scheme:
$$
i\frac{du_j}{dt} + (u_{j-1} - 2u_j + u_{j+1})/h^2 + |u_j|^2(u_{j-1} + u_{j+1}) = 0
$$
g... |
I have read that if, for example, I have a double for loop that runs over the indexes of a matrix, then putting the column running index in the outer loop is more efficient. For example:
a=zeros(1000);
for j=1:1000
for i=1:1000
a(i,j)=1;
end
end
What is the most efficient way to code it if I have three or more for... |
I've been trying to learn how to solve simple acceleration-limited trajectory planning problems. I'm working in C++ and I've been using the Eigen library to do linear systems solving. I'm doing the nonlinear-programming part myself because that's part of what I want to learn.
Here's a blog post with some animated GIFs ... |
Note: This question has also been asked on stackoverflow - see https://stackoverflow.com/questions/57197910/how-to-implement-this-even-odd-matrix-decomposition-efficiently?noredirect=1#comment100975572_57197910
In connection with solving a partial differential equation numerically, I have come across the following que... |
I'm currently writing a lid drive cavity CFD code on python. Currently, my code has some issues (values jumping bear b.c). I was wondering what are some good habits in debugging numerical codes. Hopefully, I would be able to learn some which I may apply to my future projects.
|
When simulating a friction dynamic system, I have come to a problem when approaching steady-state.
In the example below, a box moves along a surface with a certain friction coefficient:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import numpy as np
import matplotlib.pyplot as plt
G = 9.8
MU = 0.3
TIME_STEP = [0.1,... |
Question
As a test, I transform a uniform distribution over the unit square.
But when I check the transformed distribution with Monte Carlo, it is wrong.
What went wrong?
Thanks.
Problem
Random variables $\vec{X} = (X_1, X_2)$ follows the uniform distribution over the unit square.
In other words, $X_{1} \sim U[0, 1]$... |
For the solution of many PDE, implicit high-order time integration schemes are required. I am specifically interested in schemes that do not require a constant time step.
I am well acquainted with BDF time integration schemes and I am aware of their (sometimes harsh) limitations in terms of stability but also in terms... |
I've just (to my embarrassment) encountered a BLAS-like extension of a matrix-matrix product subroutine gemm in Intel MKL: gemm3m. This subroutine (particular versions: cgemm3m and zgemm3m) allows performing matrix-matrix multiplication for complex-valued matrices using fewer arithmetic operations.
The gemm3m documenta... |
I need to minimize a single polynomial $P(x_1,x_2,...,x_n)$ with the constraint that for each $i$, $0\leq x_i \leq 1$. The number of variables in my practical problem is at most $50$. The degree is at most $10$. The number of monomials is about 2 million.
Are there any tools that can handle such minimization problems? ... |
In multicore architecture, are Instructions Per Second (IPS) and
Instructions Per Cycle (IPC) parameters of a single core or the whole
CPU? Where to look out for this value? And does it change as the
number of cores increases?
For example, in case of Intel's Sandy Bridge and Cascade Lake, what is
IPC value? Which Intel... |
I know (from https://scicomp.stackexchange.com/a/31339/20545, among others) that I need a certain mesh density in FEM, else I might get non-physical oscillations in my solution.
How do multigrid approaches deal with such problems? They reduce the problem to a coarser mesh, solve it there, and use the result (by smoothe... |
I have been writing an adaptive mesh refinement (amr) code. As a prototype for the code, I have been looking at an adaptive mesh refinement code written by my adviser (written in c). I find looking at their code to be useful, but the code also does things like make heavy use of global variables, and I am wondering if t... |
I have implemented in OpenGL alpha blending for a triangle mesh. I render this mesh using a vector of indices that indicate which vertex from a vertices vector should be drawn. The problem is to correctly apply the translucency triangles should be sorted from back to front (based on the distance from the camera). Sorti... |
This looked true to me, I worked through the algebra for 1D and confirmed it. But no one seems to mention it, so maybe I'm missing something...
I'm using Bridson's SIGGRAPH 2007 course notes. [5MB pdf], p. 21 (page 33 in the pdf).
Semi-Lagrangian: back-trapolate the velocity field, to find the "particle" that would end... |
We deal with a large-scale linear optimization problem (~50000 variables and ~4000000 constraints). We use AMPL Studio modeling environment for problem modeling and then calling linear solver (CPLEX, Gurobi, etc.). However, before calling a solver, the preparation process (generation of LP or MPS file I guess?) of such... |
I am trying to solve a large system of non-linear equations (about a few hundred equations and variable but with less variable than equations). Given that the system is really sparse and large I am using the optimize.least_square solver of SciPy with the Trust Regions method.
But for some examples, it takes quite long... |
One of the paper titled "Rules of Thumb in Data Engineering" (Jim Gray et. el.) mentions some calculations based on Amdahl's balanced system law.
Link to paper: https://www.microsoft.com/en-us/research/wp-content/uploads/2016/02/ms_tr_99_100_rules_of_thumb_in_data_engineering.pdf
Initially, the paper provides some rul... |
Hi. I have a question at Mathematics and they suggested post here, once it's not common. I transcript as following. Many thanks
I need to solve with basic methods this simple Shallow Water Model:
$$\begin{bmatrix}h\\ hv\end{bmatrix}_t+\begin{bmatrix}hv\\ hv^2+\frac{1}{2}gh^2\end{bmatrix}_x=\begin{bmatrix}0\\ 0\end{bma... |
I want to compare some properties of traveling waves through two randomly diffusive media. The traveling waves follow the fisher equation:
$$\frac{du}{dt} = \nabla(\mathbf{D}_{\gamma} \nabla u) + u(1-u)$$.
I am creating a random field of diagonal matrices in the following form:
$$\mathbf{D}_{\gamma}(\mathbf{x}) = \math... |
I have $x$ and $y$ data, both of which have their own covariance matrices. scipy.optimize.curve_fit will accept a covariance matrix for the $y$ data, called sigma, but not for $x$ data. I would like to pass a covariance matrix for my $x$ data also since it is also correlated.
I found scipy.odr, however, the 2d-array ... |
Let's say we have a Matrix M and a column vector v like below
multiply
equals
Assume we can only perform multiplication, addition and substraction operation.
With normal approach we need 3 multipliction and 3 addition to calculate row1
row1 = v_1 + 2v_2 + 2v_3 + 4v_4.
However we can do it smartly by
t1 = v_1 + 2*v... |
I am reading a paper on implementing convolution neural network for a 3D point cloud. In this paper, they are dividing the point cloud into voxels. Is there any easy way to do it using point cloud library?
|
Say I have an array s with elements of 0 and 1. From my understanding, a Hoshen–Kopelman algorithm for s will be (in 3 dimensions d=3):
label=labelmatrix(bwconncomp(s,2*d));
If I want to do the same thing but now s will have periodic boundary conditions (specifically in 3 dimensions if it matters), how do I do that?
E... |
I'm computing the Groebner basis of an ideal defined over the QQ ring. Once I have this Groebner basis, I would like to obtain a set of values that satisfy the equations in the Groebner basis. I know that the full set is going to be the variety of the ideal, but since this object is huge, I might not be interested in f... |
When making a plot in Matlab using errorbar(...) the color of the error bars is the same as the plot. How do I set them to be in a different color?
I tried looking for a way to do it in here:
https://www.mathworks.com/help/matlab/ref/matlab.graphics.chart.primitive.errorbar-properties.html
https://www.mathworks.com/hel... |
I was wondering if anyone could help me with a simulation in Python (there is a small part of the code where I have a question) about the Ising model.
First, I wanted to get the magnetization $M$ which is defined as:
$$ M = \sum_i \sigma ^ z_i $$
And the part of the code to obtain $M$ was successful and was the followi... |
Does the condition number change when a matrix is reordered by e.g. Cuthill Mckee or some other method?
|
It feels like this problem should be commonplace, but I don't know what it's called:
Minimize
$$
\sum_{i=1}^{n}a^{(i)}_{k_i} + \sum_{i=1}^n\sum_{j=i+1}^n b^{(ij)}_{k_i k_j}
$$
with respect to integers $k_i \in [1 .. m]$ where $\forall i,j \in [1..n]$ $a^{(i)} \in \mathbf{R}^m$ and $b^{(ij)} \in \mathbf{R}^{m \times m... |
I am looking for a software package to compute incomplete LU factorisations in parallel. Further considerations are:
The package must allow for arbitrary level-of-fill or threshold-based truncation. ILU(0) is not good enough.
The package must be "direct", i.e. based on the same recursion formulae as the exact factori... |
I'm making a NVT Monte Carlo (MC) simulation code with only short range interaction.
I found many MC tutorial codes (usually Lennard-Jones system) in online. However, most of them are doing energy calculation without using neighbor list. I want to see how and when neighbor list is built and updated during MC simulation... |
I am wondering if there is an stabilized equi-order scheme in pressure correction scheme in solving Navier-Stokes equation? Usually P2-P1 element combination is used to solve NS equation, and a PSPG stabilizing term could be added if NS equation is solved by P1-P1 element in a coupled way. My question is, is there a co... |
I have come across a Rayleigh-Bernard simulation code which doesn't have the laplacian term but an integrating factor (in the exponential form) containing viscosity and diffusivity. I found out that it is an exponential trick. I couldn't find any literature on it except that. I would like to know more. Can someone poin... |
If Matplotlib could volume render, I would not ask this question. But it can't. Can I however instead use Matplotlib to plot the surface of a 3D body? I.e. is there a way to (i) triangulate the outside or 'skin' of this body, and (ii) can that surface be plotted?
Note that the body is regularly sampled in the 3 dimensi... |
I found that a lot of my computational science programming has testing requirements that are not covered by standard test frameworks:
Computation time testing
To make sure that algorithms don't get slower. I could do something like
assureSmallerEqual(RuntimeWrapper(algorithm),53) but I'd like the 53 seconds threshold... |
I have developed a python code for a lid-drive cavity model. However, my results are not converging. The algorithm of my code looks like this:
Euler Momentum Equation looks like this:
$$\frac{u^{n+1}-u^{n}}{\Delta t}=-\frac{1}{\rho}\vec{P}^{n+1}-\vec{U}^{n}\cdot\nabla\vec{U}^{n}+\nu\nabla^{2}\vec{U}^{n}$$
1) The first... |
I was wondering whether any of you knew if FENICS has the capability to solve coupled 1D-3D problems that are linear non-iteratively? As an example, pipes embedded in a porous domain will provide pressure sources (at their terminal ends) to the Darcy equation. This can be solved with a linear solver if I can concatenat... |
I have a Poisson equation with wildly varying material parameters (1 .. 1000), wildly varying element sizes (5 nm .. 100 um) and some quite anisotropic (tetrahedral) elements (100 nm x 100 um). I use (a C++ port of) Dan Spielman's approxChol as a preconditioner for a preconditioned CG method. It converges pretty fast (... |
I want to factorize very huge numbers (e.g. 100-bits, 200-bits numbers) with Cython.
Hi everyone, I implemented the Elliptic Curve Method for factorization into Python 3.6. Now, I want to speed up my code using Cython (version 29.13). I'm a beginner in Cython world but I know that Cython works better if I define type f... |
I am doing specific tests on matrices, so forgive me if this question doesn't seem related to Petsc typical use.
I have a SEQAIJ matrix on one process and I need to send it to another one. Is there a Petsc routine that enables this ?
|
Consider the minimization problem described this paper. Let $f_{\lambda}$ be the minimizer. As a part of extending my work, I am able to show the following facts
$$\lim_\limits{\lambda \to 0}\|f_{\lambda}\|_{L^2} = 0$$ and $$\lim_\limits{\lambda \to \infty}\|f_{\lambda}\|_{L^2} = 0$$
My problem now is (as I would like ... |
I am graduate student and recently tried to implement quad-tree based AMR. Well I have implemented simple Poisson Solver on node-based quadtree, but I am not sure that my data structure is right. To be honest, I am not sure about my coding skills. So I'll just post some of my structures.
class node
{
double x,y;
ce... |
I'm trying to solve 1D Euler equations with gravity in spherical coordinates using a finite-difference TVD MacCormack method on a non-uniform grid of $N$ components, following the method provided in Appendix A in this paper. My aim is to evaluate stationary solutions.
The discretization for the source term in the secon... |
I wrote a Matlab code that involves doing a numeric calculation (relaxation), but it is quite slow. I learned of the possibility of using a mex file to run a C code and integrate it into Matlab, so I was thinking of doing the numerical calculation (which is relatively simple but involves loops and takes time) in C, and... |
I am trying to perform a calculation in numpy that depends on several parameters, and involved the creation of many intermediate arrays. These intermediate steps involve integrals over more parameters. Because of this, part of the way through my calculation I attempt to create an array that I realize is around 30GB in ... |
Given a positive objective function $f$ that acts on a real-valued matrix $A$, I am interested in the following problem
$$\underset{A \in \mathbb{R}^{n \times n}}{\text{minimize}} \quad f(A) \quad \text{subject to} \quad b \leq \text{Re}(\lambda_j) \leq a, \quad j=1,2,...n \ ,$$
where $\lambda_j \in \mathbb{C}$ are the... |
I want to implement a physics simulator for large floating base rigid body systems from scratch. The Rigid Body Dynamics Systems (RBD) should typically have the following characteristics:
About ~50 degrees of freedom (DoF) plus the 6 DoF of the floating base (e.g., a legged robot, a humanoid robot, etc.).
It will alwa... |
Numpy's einsum only works with dense tensors.
Is there an alternative that also works with sparse tensors and linear operators?
For example, I might have a function f that computes matrix vector multiplications of the form $A^{-1}x$ for some matrix $A$. Numpy's
einsum doesn't even allow
np.einsum('ij,j',A,x)
let alon... |
$$
\nabla\cdot \mathbf{u} = 0 \\
\frac{\partial \mathbf{u}}{\partial t}+\left(\mathbf{u}\cdot \nabla\right)\mathbf{u} = -\nabla p+\nu\nabla^2\mathbf{u}+\alpha g\theta\mathbf{e}_z\\
\frac{\partial\theta}{\partial t}+ \left(\mathbf{u}\cdot \nabla\right)\theta = \kappa\nabla^2\theta+\mathbf{u}_z\frac{\Delta T}{H}
$$
Can I... |
I have minimization problem of the form
$$
G(f) + \|\Delta f\|^2_{L^2(\Omega)} \to \min
$$
over all $f\in C^2(\Omega)$, $\Omega$ being closed and bounded.
Let us forgot about $G$; I'm interested in how to discretize the $L^2$-norm. In the context of finite volumes, one has
$$
\begin{multline}
\int_\Omega (\Delta f)^2
=... |
I'm interested in evaluating
\begin{equation}
\int_0^x \frac{Si(t)}{t}\;dt
\end{equation}
Where
\begin{equation}
Si(x) = \int_0^x \frac{\sin t}{t}\;dt
\end{equation}
I've found a nice method for evaluating $Si(x)$ using Pade and Chebyshev-Pade approximations in https://arxiv.org/pdf/1407.7676.pdf but I'm unable to fi... |
I have the correct plot for specific heat capacity when I am using the formula which is $C_V$ = differentiation of entropy with respect to temperature. However, When I try to calculate $C_V$, by using formula
$$C_V = \frac{\langle E^2\rangle - \langle E\rangle ^2}{T^2}\, ,$$
I am getting a strange result.
I am expe... |
I want to solve a matrix system of the form $Ax=b$ where $A$ is ill-conditioned. The matrix system comes from a structural simulation problem which was discretized using finite elements. I do not have access to the finite element model. I know that proper boundary conditions improve the condition number of the matrix b... |
I am looking for a good (canonical?) overview paper(s)/book(s) on the classification of multiobjective optimization algorithms. I am focused on obtaining a representative set of Pareto optimal solutions generally for real-world optimization problems in electromagnetics; however, the reference should not be field-restri... |
I was reading a paper on arXiv where, in Section 2.4, the authors are discussing the error that arises in the solution of a linear system
$$Ax = b,$$
or, to match up better with the paper,
$$\Phi \alpha = u,$$
due to machine precision. The system is overdetermined so they solve it with least squares.
To make a long sto... |
I have set of N m-dimensional vectors $\{\phi_i\}$ which gradually loses mutual orthogonality in an algorithm. => I have to re-orthogonalize them every few iterations. But if I use the Gram–Schmidt algorithm for instance, the first vectors (pivot) are perfectly preserved while the the last vectors are strongly perturbe... |
Is there an efficient way to form this block matrix with numpy or scipy?
$$
\left[
\begin{array}{cccc}
\mathbf{B} & \mathbf{0} & \cdots & \mathbf{0}\\
\mathbf{AB} & \mathbf{B} & \cdots & \mathbf{0}\\
\vdots & \vdots & \ddots & \vdots\\
\mathbf{A}^{N-1}\mathbf{B} & \mathbf{A}^{N-2}\mathbf{B} & \cdots & \mathbf{B}\\
\end... |
My plan is to solve the heat equation in the right half portion of the domain, while having the left half completely isolated with constant temperature. To do so, I model the left half with a very low conductivity. I then apply a heat flux to the top side of the right half and a Dirichlet BC to the bottom side. For the... |
Optimizing two models here, each model having its own set of parameters and an objective, but both models run on the same data which is difficult to compute, and which is computed based on both models' params. How can one optimize the models simultaneously both models relative to their respective objectives?
Here's wha... |
I am using the C++ library ODEint, which is part of Boost, to solve an extremely large system of coupled ODEs - in particular 1975 equations with large rational functions in the coefficients. In the provided examples by the authors the ODE system is always explicitly written in the source code. Unfortunately my source ... |
I tried to use a midpoint method and numerically solve the Schrödinger equation for the original Landau-Zener (LZ) problem: a $2\times 2$ Hamiltonian
$$\left(\begin{array}{c} \alpha t\\ \delta \end{array}\begin{array}{c} \delta \\-\alpha t \end{array}\right)$$
with initial condition $\psi=(1, 0)$ (the ground state) at... |
In OpenFOAM by default, the FireFOAM is well supported for solid pyrolysis modeling. With that in mind, I managed to built my solver for a modified version of pyrolysis (for dry coal - without moisture) based on FireFOAM. Now in the case of wet coal pyrolysis, the pyrolysis model should be developed [absence of air - n... |
I have a .csv file of thousands of (x,y,z) point particles that I would like to visualize in ParaView. I am able to plot a 3D scatterplot using the TableToPoints, and by decreasing point opacity I can see some substructure in the particles' arrangement.
I'm looking for a better option to easily see different regions w... |
I'm trying to define a MINLP optimization problem with GEKKO in Python, and I want to use some variables with fixed values.
For my first variable, x1, I need to define the following values (as would be defined in a list):
x1 = [19.05, 25.0, 29.3, 30.2]
How can I define these type of variables in my model?
|
I am attempting to replicate results from this article.
I'm not sure why but my results are completely different and wrong. For example, the exact solution with parameters ($x=0.1$, $T=0.01$, $Re=0.1$ and $\Delta t=0.0001$) is $0.11461$ but my approximated solution gives $-175.4007$.
Is anyone able to spot my mistake?... |
I want to simulate a diffusion environment given by the differential equation
$$\frac{\partial u(x,y,t)}{\partial t}=D\left(\frac{\partial^2 u(x,y,t)}{\partial x^2}+\frac{\partial^2 u(x,y,t)}{\partial y^2}\right),$$
in a constrained environment with reflecting and absorbing boundaries and certain initial conditions. I... |
I have the following convex optimization problem. I would like to ask is there any efficient way to solve it in Python? Can I use CVXOPT package? If so, any detailed instruction? Thanks a lot.
$$
\min_{T\in[0, \infty]^{10}}\sum_{i=1}^{10}T_ia_i
$$
subject to
$$
x^{\top}_j(\sum_{i=1}^{10}T_i x_ix_i^{\top})^{-1}x_j\leq ... |
I am numerically solving a nonlinear wave PDE using the Runge-Kutta method, and I know the solution I am looking for is constant in time, but I do not know the solution. What is a good way of verifying I converged into the right solution?
Additional information: I know this solution is the only stable solution
|
Excuse my lack of vocabulary for I have no formal training in this field, which is also why I ask this question - it may be trivial or it may be impossible.
I want to evaluate an expression in the following form down to a binary float with "correct" rounding and I'm worried that double-rounding will corrupt my result:
... |
I need to estimate
$$
\mathbb{E}_x[f_i(x)] = \int_{\mathbb{R}^n} f_i(x) p(x) dx
$$
for many functions $f_i(x)$, where $p(x)$ is the density of a normal distribution. The evaluation of all the functions $f_i(x)$ is expensive.
I was looking into Bayesian Quadrature but I cannot find an (approximately) optimal way of choo... |
I'm struggling to find a good detailed reference explaining the Arc-length method or, more generally, Riks method and its derivations. I looked for the classical books in nonlinear mechanics (the ones by Crisfield, De Borst, Bathe, etc) but they're confusing for a beginner in nonlinear analysis. Thus, I'd like to reque... |
I was curious if there was any software (preferably in C++, Java, and/or python) that could be used to simulate the following:
Heat capacity of a fluid
Heat transfer through a liquid and a solid
specific heat
molten salt flow as a liquid
operating temperatures for salt around 600 C
Effectively, this is simulating the c... |
I am a graduate student majoring scientific computing. The numeric model I made caused a very ugly-looking saddle-point linear system. It is not symmetric at all and I will attach the sparsity pattern below. So far, I've only dealt with matrices with non-zero diagonal entries, so incomplete LU-type preconditioner with ... |
My simulation, written in C++, generates a large amount (roughly ~500) of text files for each set of parameters I try to simulate, with four columns of ~5k double values in each file. Furthermore, to keep track of the used parameters, I print all the used parameters in the name of the files, followed by the current fil... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.