instruction stringlengths 43 28.1k |
|---|
Historically, iterative methods for solving relatively simple-structured systems $Ax=b$ with $A$ being a $4\times 4$ matrix or to find the eigenvalues of that matrix assuming in both problems that $A$ is non-singular were not quite popular and were not needed in pre-1950s as stationary methods or perhaps classical iter... |
I am currently trying to evaluate surface forces on a structure. I came across P356 in Bathe's Finite Element Procedures 2014 (example 5.8) in which he related the edge derivative from the global to natural coordinates through this equation:
$dl = det(\mathbf{J}^S) \ dr$
where $r$ is the natural coordinate along the ed... |
In Fourier transform spectroscopy (FTS) I am calculating a broadband interferogram (e.m. frequency 190-300 GHz top-hat), then back-retrieving the spectrum by FT.
Here in the figure, you can see the result: I expect the retrieved spectrum to be the same as the "injected" one but there is the effect of the top-hat bandpa... |
I have wrote this code to solve an equation , I know the behavior of this function has very rapid oscillations, when I RUN it gives bogus values for some "m[x]" and some "t"'s, with this error:
C:\Users\dani\anaconda3\lib\site-packages\scipy\integrate\odepack.py:247: ODEintWarning: Excess work done on this call (perha... |
In RBF-FD methods (see Fornberg & Flyer. A Primer on Radial Basis Functions with Application to the Geosciences. SIAM, 2015. Chapter 5.), the finite-difference stencil coefficients for a set of nodes $\{\vec{x}_1,\vec{x}_2,\dots,\vec{x}_n\}$ are found by solving a linear system which involves the block-structured and s... |
I face a feasibility problem of type
$$ c_i(\boldsymbol x) \leq 0, i = 1, \dots, \mathcal{I} \\ c_e(\boldsymbol x) = 0, e = 1, \dots, \mathcal{E} $$
where $\mathcal{I} + \mathcal{E} \gg \text{dim}(\boldsymbol x) \sim \mathcal{O} (10^1) $.
Currently, I solve this with Ipopt but since it takes quite some time (many ite... |
I have matrices ($S_0$ thought $S_N$) and I have a recurrence relation that link successive matrices together.
$$S_i + S_i(aS_{i-1}^{-1})S_i=C_i+aS_{i+1}$$
We can assume for this problem that $S_0=S_N=I$, the identity matrix. The $C_i$ in this equation are all known beforehand. All matrices $S_i$ are definite positive ... |
My question is how to keep track of the "mass" being advected out of a model domain, for the 1-D advection equation, and an upwind differencing scheme. Following is the background
Consider the continuity equation
$$\frac{\partial u}{\partial t} + \frac{\partial \Phi}{\partial x} = 0$$
Suppose the flux $\Phi$ is given b... |
I am trying to solve a DAE with a non-linear constraint. The governing equations have the following form.
The second equation is a constraint and it must be satisfied everywhere. Is there a way to use the ode solver in MATLAB to solve this type of system? If so, for example, ode15s, how could we couple the constraint ... |
This question relates closely to another question I asked earlier this week.
Let's say that I want to find a set of matrices $S_i$, with $0\leq i\leq N$, that minimizes some objective function with numerous terms. I can easily compute the gradient of the objective function, with regard to each matrix. This provides me ... |
I have a dataset with values of multiple curves. An example plot is shown below.
I want to shift the curves (up/down) so that all curves overlap. This would mean the data points in each curve is scaled up/down by a factor.
I am not sure how to frame this as a mathematical problem (to minimize the vertical distance betw... |
I am new to Eigen C++ programming. I am trying to create an Rcpp function to call from R. The function takes a list of matrices (Xlst), and two lists of vectors (ylst and smwlst). In each for-loop iteration, the function should perform standardization of the columns of a matrix and then multiply with the corresponding ... |
In my numerical linear algebra class we mentioned this problem briefly and according to some other lectures on the internet especially in data driven environments one mostly has to deal with such over- or underdetermined systems. Nevertheless in our lecture we mostly deal with direct methods (mostly matrix decompositio... |
I want the code to integrate equation(1) or (2) over the limits using mathematical or mathlab to get equation (3) as the answer of $Z$ vibrational partition function, giving the following additional information $$
\begin{aligned}
Z_{v i b}(\beta) &=\sum_{n=0}^{\lambda} e^{-\beta E_{n}}, \quad \beta=\frac{1}{k T}, \\
\l... |
Is there a permutation used in sparse QR factorizations that better locates small elements on the diagonal of R to the end of the diagonal? As an example, consider the following snippet of MATLAB code:
A = [1 1 1; ...
-1 -1 1; ...
0 0 -1; ...
0 0 1; ...
-1 0 0; ...
0 -1 0];
s = [1e-8;1e... |
I am working on Singular Value Decomposition for complex matrices. I implemented One Sided Jacobi algorithm. It gives exactly the same result as the svd function in Matlab for the real matrices. However, it does not give the same result in complex matrices. It confirms the formula A = UEV* however I am not sure whether... |
In the physical sciences (which are physics, chemistry, astronomy, materials science, etc.), we learned that the uncertainty is +/- the smallest unit (which is 1) of the last significant figure if the uncertainty is not given in a recording of data. So, if we have a digital measuring device that measures to the nearest... |
This is related to my previous post here
I have a dataset with values of multiple curves. An example plot is shown below.
I want to scale the curves (move up/down) so that all curves overlap.
The following is a sample dataset which includes that data points corresponding to 5 curves and coordinate inputs below
scale = ... |
This is related to my previous post Minimize distance between curves.
I have a dataset with values of multiple curves. An example plot is shown below.
I want to scale the curves (move up/down) so that all curves overlap.
The following is a sample dataset which includes that data points corresponding to 5 curves and coo... |
Consider the continuity equation
$$\frac{\partial u}{\partial t} + \frac{\partial \Phi}{\partial x} = 0$$
$$\Phi = au + b\frac{\partial u}{\partial x}$$
Suppose I want to solve the above using centered finite volumes. Below, $U_j \approx \overline{u}_j$ where $\overline{u}_j$ is the spatial average value of $u$ in a fi... |
Suppose we solve an $m\times n$ full-rank system of equations $Ax=b$ by iterating the following for a small enough $\mu>0$
$$x=x+\mu B(b-Ax)$$
Is there a nice description of kinds of $B$ which make this iteration convergent?
For instance, for $n=1$, $A,B$ can be viewed as vectors, and this iteration converges iff their... |
I'm looking for a technical term or literature that describes a problem when creating mechanistic computer models.
By mechanistic computer model, I mean a computer model of a physical system where the different components of the physical system are modelled by components of the computer model, each model component repr... |
What are the prerequisites to learning BEM?
In which order is it advisable to learn BEM and FEM - either one before the other, or does it not matter?
What are some good resources to self-learn BEM?
P.S. I am mainly interested in contact mechanics of surfaces. I am a mechanical engineer (senior) by trade, and I have b... |
Consider the Laplace equation,
$$
\nabla^2 f(r,\theta,\phi) = 0
$$
in spherical coordinates. We know that the solution to this equation can be derived analytically, and is given by,
$$
f(r,\theta,\phi) = \sum_{l=0}^{\infty} \sum_{m=-l}^l \left( A_l^m \frac{1}{r^{l+1}} + B_l^m r^l \right) Y_l^m(\theta,\phi)
$$
where the... |
Let $f: \Bbb R \to \Bbb R$ be continuous. What are efficient algorithms to finding all the zeros in an interval $[a, b]$? I am actually only interested in the smallest zero in that interval, if there's an algorithm that can provide me with just that.
|
I have a real valued function $F$ for which I am looking to find its global minimum. The function is well behaved and I can obtain its Jacobian. I could also compute the Hessian but the function depends on a large number of variables so it's not practical. We can still assume that the Hessian is definite positive over ... |
I'm not a deal.II expert, and while studying step-6 I was reading the documentation of the MappingQ1 class in the deal.II documentation. At some point in the description (https://www.dealii.org/current/doxygen/deal.II/classMappingQ1.html) , there's written:
Note, however, that in 3D the faces of a general, trilinearly... |
The time dynamics of an atom interacting with a reservoir of spectral density $J(\omega)$ are obtained by solving the following integro-differential equation:
$$ \frac{\mathrm{d}c(t)}{\mathrm{d}t} = - \int\limits_0^t \mathrm{d}\tau~ c(\tau)f(t-\tau),$$
where
$$f(t-\tau) = \int\limits_0^{\infty}\mathrm{d}\omega ~ J(\ome... |
I have read that matrix regularisation can improve the stability of LU or Cholesky decomposition of ill conditioned problems. The idea is to add a value to the diagonals of a matrix:
$B=A+cI$
In the above mentioned case $A$ is the initial matrix, $c$ is the constant, $I$ is the identity matrix and $B$ is the regulize... |
I am asking a follow up question to this question, but I could probably have written it as an answer instead. However, I don't know if what I am doing here makes sense or is too complicated for my problem so I am not sure it's the correct answer!
As I explained in the other question, I have basically a very standard un... |
I have a set of coupled ODEs that I'm solving numerically. The independent variable is time and runs from values of $10^{15}$ to $10^{17}$ in units of seconds. The state variables in their usual physical units have large numbers like $10^{10}$ and $10^{50}$. As these state variables evolve with time, their values syste... |
I have an equation that is a bit similar to a Sylvester equation.
The equations is $AXB^T+X=E$, where all variables are matrices.
I could try to inverse $B$ and rewrite the equation as $AX+XB^{-T}=EB^{-T}$, which is then the standard form for the Sylvester equation, but I need to invert $B$, which is usually not a good... |
Can anyone recommend a good software for solving generalized symmetric eigenvalue problems of the form,
$$
A x = \lambda B x
$$
where $A,B$ are symmetric and sparse, and $B$ is positive definite?
I have only 1 machine so I would prefer something based on OpenMP rather than MPI if possible.
|
I was reading the paper given in the link http://www.unige.ch/~hairer/preprints/parareal.pdf and I have a problem in understanding in page 10 for the Burger equation on implementing Parareal method for Burger equation. In section 4.4, the line "... fine time step $\Delta t=1/100$, which gives a numerical accuracy of $4... |
I have a matrix $X=CC^T$ that I want to diagonalize. Here $C$ is a known $n\times n$ matrix, which I could also factor as $LM$ if it helps, $L$ being a lower triangular matrix and $M$ another matrix. Is there a shortcut to compute the eigenvectors and eigenvalues of $X$, in particular knowing $C$? The matrix $X$ is sym... |
I'm doing FEM and have a problem about getting numerically stable solution for ODEs problems like:
$$ \frac{\mathrm{d}}{\mathrm{d}x}\mathbf{Y} = \mathbf{AY}, x\in[x_1,x_2]$$
in which $\mathbf{Y}$ stands for a large-scale vector (greater than $1000000\times1$), and $\mathbf{A}$ is its corresponding coefficient matrix. T... |
I'm learning how to do Finite Element calculations using Comsol Multiphysics.
In Comsol, Linear Elastic Material and Nonlinear Elastic Material are available as material models:
Using Linear Elastic Material, you can add Plasticity, and define Initial yield stress as well as the tangent modulus:
I'm wondering, if we ... |
What are the "job programming languages" for computational science? What are their use cases?
C obviously. But what standards, and what are some central use cases?
C++? But what standards, some particular subset?
Fortran. How relevant is this still? What about in the future?
Java. What are the use cases for a GC'ed... |
I am attempting to solve a nonlinear diffusion equation of the form
$\partial_t u = \partial_x (\kappa(u) \partial_x u)$, where the conductivity function $\kappa(u)$ is a power law $\kappa = u^{5/2}$, using the LSODA time integrator in Python interfaced through SciPy. The equation is discretized by finite difference on... |
What are the parts of C++ that make C unsuitable to be used for scientific libraries?
Someone could argue the merit of C (or Fortran for that matter) to be simplicity. However, why do developers choose to expand onto C++, rather than remain in C?
|
I am looking for an example of a certain pair of ODEs. Consider two independent ODEs
$$
\frac{\partial x}{\partial t} = f(x)\ \text{and}\ \frac{\partial y}{\partial t} = g(y)
$$
where $x \in \mathbb{R}^n$ and $y \in \mathbb{R}^m$.
Now we combine them into a joint ODE
$$
\frac{\partial z}{\partial t} = \begin{pmatrix}f(... |
Are there techniques for interpreting practical viability of some method?
That is, if one comes across some mentioned technique, then is there some way to gauge, how much prevalence it has for practical usage? Some theories may stay at a theoretical level for some time, and they're perhaps not a good use of time for so... |
Here is my objective: I want to code a ray tracing engine in C++ that can be run on any GPU. That means that it should work on NVIDIA GPUs, AMDs, or even Intel Graphics chipsets. The choice of C++ was made because the final program will be used by a third party user who will not be able to install anything on his machi... |
I am trying to numerically solve the following ODE's of an electric circuit which models the battery of a vehicle:
$\dot{u_{1}} = \frac{-u_{1}}{R_1C_1}+\frac{I(t)}{C_{1}}$
$\dot{u_{2}} = \frac{-u_{2}}{R_2C_2}+\frac{I(t)}{C_{2}}$
$\dot{SoC} = \frac{-I(t)}{Q_{n}}$
In my case, the current $I(t)$ is computed based on a pow... |
What are the numerical methods available to compute integrals over $S^2$, for the particular integration :
$$\int_{S^2} f(\omega)\,d\sigma(\omega)\ , \quad \text{ where $d\sigma$ is the usual measure on the sphere }S^2 $$
And $\omega= (\theta, \phi)$ is a direction (or a unit vector) given by a point on this sphere.
I ... |
I have dense $d\times d$ matrices $A$, $B$, $C$ with $d\approx 1000$ and want to find the top $10^5$ eigenvalues of the following positive definite matrix:
$$
\Sigma=
\left(\begin{matrix}
A\otimes A & C^T\otimes C\\
C\otimes C^T & B\otimes B
\end{matrix}\right)
$$
Cheap: assume $C=0$ and compute $\lambda(A)$, $\lambda... |
I am investigating ways to solve an optimal control problem in an embedded way, preferably in Java. The system is modeled with triple integrator dynamics $u=\dddot{x}$ and solved with multiple shooting, with continuity constraints put on $x$, $\dot{x}$ and $\ddot{x}$ which are solved with Runge-Kutta-4 integration and ... |
It seems common practice to store only the upper or lower triangular part of a sparse symmetric matrix to save memory. Now I am wondering how, e.g. the SpMV kernel in CSR format is designed and how the matrix elements are accessed which are not stored explicitly when only the upper triangular part is given (typical mat... |
I'm interested in solving an inverse coefficient problem for a PDE.
Let's say the field to be estimated is $\theta$.
The conventional approach would be to use a finite element discretization for $\theta$ and add a Tikhonov regularization term to the objective functional in order to penalize unphysical values.
Instead, ... |
I'm teaching an introductory course on scientific computing (programming in C/C++) and am looking for application problems which the assignments can be centered around. I'm thinking of ODEs for particle dynamics
$$x_i'(t) = u(x_i, y_i, t), \quad y_i'(t) = v(x_i, y_i, t)$$
where particle positions $x_i(t), y_i(t)$ are s... |
I'm looking for an explanation of why the jump $[\nabla u]=[u] =0$ assuming $u \in H^2(\Omega)$.
We know that according to an embedding theorem, $H^1(\Omega)$ is a subspace of $C^0(\bar{\Omega})$ (space of continuous functions in $\bar{\Omega}$) so that $[u] = 0$ makes sense, but does $H^2(\Omega) \subset C^1(\bar{\Om... |
How are topology optimizations validated?
I've been confused. Doesn't this mean that each of such design (e.g. N=100) would still need to be validated empirically or is there something that allows one to understand the validity of several of such models?
|
Are there any advantages of using BEM (Boundary Element Method) for contact problem over FEM (Finite Element Method) apart from lesser computational cost?
|
I have some experience solving single- and multicomponent Euler equations for modeling of gas flows, including combustible ones. The code (variations of finite-difference WENO methods) is written with C language.
Till now, I've implemented only simple combustion models such as 1-stage propane combustion (Westbrook-Drye... |
Finite element methods involve integrals of functions that are not polynomials, and these integrals must be computed numerically.
For example, suppose that $f$ is the right-hand side of a Poisson problem and we use Lagrange elements of degree $k$. The right-hand side of the discrete linear system is computed from integ... |
I have been trying to solve a least squares problem of the following form:
$$
\begin{equation}
\min_{\vec{x}} \frac{1}{2} \lVert f(\vec{x}) - f_{\text{target}} \rVert_{2}^2 + \alpha\Big( \frac{1-\rho}{2} \lVert \vec{x} - \vec{x}_{\text{orig}} \rVert_{2}^{2} + \rho \lVert \vec{x} - \vec{x}_{\text{orig}} \rVert_{1} \Big)... |
I am trying to use solve_ivp to solve the following 1st order ODE:
$$ \frac{d \rho}{d z} = \frac{m \theta}{(1+\theta z)} \, \rho, $$
subject to $\rho(z=0)=1$, where $m$ and $\theta$ are constants.
This ODE actually has a simple analytical solution:
$$ \rho = (1+\theta z)^m. $$
When I try to solve this ODE numerically u... |
I am working on a supersonic boundary element method (https://github.com/usuaero/MachLine). In order to test its sensitivity to the boundary discretization, I'd like to be able to create "random" meshes of simple shapes (e.g. a cone) like what's shown here for a sphere, except using triangles.
Generating a set of rand... |
I'm new to computational physics and attempting an n-Body simulator in java but for some reason the planet in orbit leaves the orbit when it reaches the fastest accelaration aka the closest point to the other planet. I'm testing the velocity verlet algorithm for two bodies at the moment.
I'm not quite sure what I'm doi... |
So I need a fast converging solver for SysLinEq as a subroutine in fortran, decided to test BiCGStab in Matlab.
Thank God I decided to test it out on first before implementing in Fortran as a subroutine.
might be inappropriate place to ask but when I run the following
https://en.wikipedia.org/wiki/Biconjugate_gradient_... |
I have to compute the QR decomposition of a matrix A repeatedly, each time with ONLY diagonal elements changing. Is there an efficient way to accomplish this without repeatedly computing the full decomposition?
The issue here is that this whole process needs to be calculated repeatedly for a couple of thousand of times... |
I would kindly ask you which (preferably free) programs / codes do you suggest for the numerical simulation of the problem described below. I am not asking for the full solution, but just want to avoid “reinventing the wheel” as much as possible. I have access to Matlab and Python (Anaconda), which means that I can ins... |
I am a bit confused right now. I am taking a class on numerical linear algebra and as I have understood sometimes one doesn't compute the Matrix-Vector product $Av$ normally but uses other techniques to get the result.
What are these techniques and are they so much faster than the "standard way"?
Additional Info:
I thi... |
Both the creep function and the relaxation function are connected by the convolution integral. The usual method for calculating the relaxation function from a creep function or vice versa is to transfer the creep function into the Laplace domain. In the Laplace domain, the creep function is equal to 1/relaxation.
In my... |
I am solving the steady state compressible Euler equations in conservation form in 2D in a rectangular domain with a discontinuous Galerkin (DG) code I have developed. As a test, the boundary conditions are Dirichlet conditions set to the same far-field values. The Ma number is much less than 0.3.
I expect the solution... |
I'm using classical $P^1$ finite elements to solve $- \Delta u = f$ with Dirichlet BC in a 2D domain $\Omega$.
I know from theory that the solution is not in $H^1$ for my particular choice of $f$, so all classical convergence estimates are useless. If I compute the $L^2$ error against the analytical solution indeed I d... |
I am currently trying to solve a problem with constraint programming. My problem is that for example you need a set of numbers and you can only have a maximum number of 9 with a required length of 6 so you can get something like [1, 3, 4, 5, 6, 8] now when you sum up all these numbers you will get 27 but from the given... |
Step size controllers for ODE solvers with adaptive step size usually track an error estimate $y_{\mathrm{err}}$ and compare it to the current state $y_\mathrm{current}$ to decide if a step can be accepted or the step size needs to be decreased. We consider the case of multi-dimensional ODEs, so all $y$ are vectors in ... |
I have written a matrix class Matrix<T> for which I have implemented a wrapper function for cblas_dgemm.
cblas_dgemm requires to pass my input matrices as double*. However, I want my wrapper to work with const Matrices as well (for which I can only provide a const double*). Within my call to cblas_dgemm I cast the cons... |
Governing equations in polar or cylindrical coordinates often have terms with $\frac{1}{r}$ involved. At $r = 0$, such terms blow up to become a "singularity." The Cartesian version of such governing equations will not have these "singularities" at $(x,y)=(0,0)$. Therefore, the singularity at $r = 0$ must be numerical.... |
I have a PDE like this
$$
\frac{\partial h}{\partial t} = \bigg(\frac{\dot{L}}{L}\bigg)x\frac{\partial h}{\partial x} - \alpha\bigg[h^3\frac{\partial^3 h}{\partial x^3}\bigg]
$$
With boundary and initial conditions given as
$$ h(0,t) = h(1,t) = 1; h_{xxx}(0,t) = 0; h_{xxx}(1,t) = \frac{1}{\alpha}\frac{\dot{L}}{L}; h(x,... |
Consider some randomly generated matrix $B\in\mathbb{R}^{100\times100}$ and let $A:=BB^{\top}$
On MATLAB I computed the condition number of $A$, I obtained a value of $2.8377\mathrm{e}+04$
However if I apply the following modification to $A$
$$
A:=A+(\lambda_{min}(A)+10)I_{100}\tag{1}
$$
Thus overall we have a symmetri... |
For deterministic solver of $Xw=y$, one recommendation is to pick $P$ such that $P^{-1}X$ has a low condition number. However, this condition only really matters when you want to reduce initial error a lot, ie, by a factor of $10^{-15}$. There are scenarios where you are only need to reduce the error by a factor of $1... |
Some context, I've posted this question on physics SE and stack overflow. The former had nothing to offer, the latter had a great commenter that agreed with the phase looking off being one of the potential issues and some difference in the solution's dynamics (and also alerted me to the existence of this part of SE, wh... |
I'm interested in solving a boundary control problem for an axisymmetric diffusion problem where diffusive fluxes only appear radially. The corresponding problem for a uni-dimensional slab can be summarized as follows:
Let $y_d$ be a desired temperature distribution at the end time $T$ and $y_0$ be the initial temperat... |
So I saw this very interesting problem. Let's say you have a length of 2, and a base length of 5
l = 2, b = 5
this would be translated to :
11000
Now if you give an input let's say a 2 the ones on the problem above should move by this number. :
11000 → input 2 : 10100
So the pattern is like this :
input: 1 → 11000
in... |
Consider a regular rectangular 2D $r$-$z$ mesh with constant spacing $\Delta r$ along the $r$-axis with $n$ points and spacing $\Delta z$ along the $z$-axis with $m$ points. I thought it would be a straightforward formula for node connectivity/node numbering. But searching the internet is finding complicated ideas for ... |
I am trying to integrate a function $\hat u$ on the common surface of discontinuous finite elements. The function $\hat u$ lives in a $d-1$-dimensional space of functions defined on the element interfaces. However, the unique mapping of the interface and functions with support on the interface to a reference element is... |
The standard algorithm for discrete convolution of two vectors $x\in \mathbb{R}^{n}$ and $y \in \mathbb{R}^{m}$ is (in essence) a FFT of the two input vectors, multiplication of the two elementwise, and then an inverse FFT of the result. In practice there are complications, for example if $m \ne n$ then we need might n... |
I want to solve a problem of object tracking along time.
The problem is - I have a sequence of images, and I need to find and track the creation of the objects, than their movement, and than their disappearance. There can be up to 3 objects overall, and sometimes there are less, or none. Another limitation is that for ... |
To the best of my knowledge, stiffness of ordinary differential equations is difficult to capture but can be roughly described as problems where explicit methods don't work while implicit ones do. Alternatively, the stiffness ratio of the Jacobian of the dynamics (i.e. the ratio of its largest to smallest eigenvalues) ... |
The following two equations represent a simple model of a plasma where ions are immobile.
$$n\frac{\partial u}{\partial t}+nu\frac{\partial u}{\partial x}=n\frac{d\phi}{dx}-\theta\frac{\partial n}{\partial x}$$
$$\frac{\partial n}{\partial t}+\frac{\partial}{\partial x}(nu)=0$$
Here, $\theta$ is a constant denoting the... |
I've come across compression algorithms, I tried creating a simple run-length encoding algorithm but I notice that when I searched other algorithms I was shocked to know that some algorithms can process thousands of megabits per second how is this possible? I tried compressing a 1GB length text it was taking some time ... |
How can Android be utilized in computational science pipelines?
For example, if one wanted to produce a visualization for an Android mobile device. Similarly to how people are using browsers and JS to do visualizations and interactive apps even.
I'm thinking that support for numerical codes in Java is poor compared to ... |
I am currently trying to understand the mesh partitioning using coordinate bisection method. The general idea is clear: Looking at the coordinates (either X or Y or Z direction) and splitting the entities so that in best case both domains contain the same amount of entities.
Now some questions arise for me.
Q1: Is t... |
I'm looking for a book/paper/code which describes the implementation of a Bingham plastic fluid model. I've tried deriving the equations for implementation using the style of the 1d visco-plastic model for solids described in the first chapter of Simo-Hughes but it seems to me that the analogy between solids and fluids... |
Context
I'm working with absorbance spectral data. I have two spectra generated for a single analyte. Each spectrum was collected over two overlapping wavelength regions e.g. 8-10 micron and 9-11 micron. The spectrums both contain a few thousand data points where each point is a real number.
Question
Is there a method ... |
In a smooth domain in $\mathbb{R}^{2}$ or $\mathbb{R}^{3}$ let's consider $-\Delta u = f$ with $u=g$ on a part of the boundary and $\partial_\nu u = w$ on another part of the boundary, which is far away from the previous one, to avoid compatibility conditions.
Now I want to solve this problem employing linear FEM and t... |
I've been trying to implement data compression algorithms in python, but I just can't get mine as fast as the other algorithms other have made. So I've decided on using C since I've asked people about this and what I got was I should choose a language that is very close to hardware, however I find C very hard because o... |
Suppose $A,H$ are positive definite matrices and $\alpha,t$ are scalars. Is there a way to massage the following problem into a form suitable for a specialized solver?
$$\begin{array}{ll} \underset{\alpha,t}{\text{minimize}} & t\\ \text{subject to} & A-\alpha AH - \alpha HA + \alpha^2 HAH \prec t I\end{array}$$
It "alm... |
I tried to solve a one dimensional biharmonic equation with finite elements. I wanted to use a conforming approach (as I simply do not know a lot about other approaches) and therefore was looking for 1D $C^1$ finite elements. I found a bit of literature on 2D $C^1$ finite elements, however, I could not find anything us... |
Let $U \in \mathbb{C}^{m \times n_U}$ be an orthonormal matrix, let $A \in \mathbb{C}^{m \times n_A}$, and $m \geq n_U + n_A$. I want to compute a QR factorization $X = \left[U A\right] = QR$, with $Q \in \mathbb{C}^{m \times (n_U + n_A)}$ and $R \in \mathbb{C}^{(n_U+n_A) \times (n_U+n_A)}$, taking advantage of the ort... |
I have a measured signal (current of a motor, turning on and off again) to which I want to fit a rectangular function in python. I came up with a reasonable rect(...) function and the scipy.optimize.curve_fit is running, but the results are far from perfect (see code below).
import numpy as np
from scipy.optimize impor... |
I have a 2D rectangular domain. The governing equation on this domain is Laplace equation:
∇2f=0
In the left and right edge there is Neumann boundary conditon : ∂f∂n=a
n is the normal vector to the domain's boundary(here on the left edge it's equal to the negative direction of x axis) and 'a' is a given date and it's ... |
I have $F_i \in \mathbb{R}^{m}$, $y_i \in \mathbb{R}$, $\beta_i \in (1,\infty)$ for $i = 1,\ldots, n$.
I would like to solve the following convex optimization problem
$$\min_{x} \sum_{i = 0}^n |F_i\cdot x - y_i|^{\beta_i}$$.
Since it is convex, I have tried Newton's method with Wolfe condition line search. This would b... |
I need to evaluate a product of two real functions, namely $F(x)\cdot G(x)$. The function $F(x)$ is a diverging and obscure member of scipy.special, while $G(x)$ is a gaussian. While the product is a well behaved function and of order ~1, its factors by themselves, for x range that I am interested in, are of order $10^... |
I need to do a parametric study of the performance of a room heater on different rooms by simulating the temperature distribution in there. The problem here is that the rooms are not simple rectangles like shown in a) (in blue are the walls of the room and in red the heater), where I could just simply sweep over length... |
I have a solution of a 1D wave on a grid (tangent hyperbolic variation) and now I want to interpolate the obtained solution to a new grid with the same number of points as the previous grid but the domain length may or may not change. What are good techniques to do so? I read about Lagrange interpolation, Hermite inter... |
When solving constraint optimization problems with (primal dual) interior points methods, I often read (e.g. on slide 17) that one should not use the inequality constraints $g(x)\leq 0$ directly, but use the slack variables $s\leq 0$ to form $g(x)-s=0$.
But why? Is it easier to find an initial feasible point? Or does t... |
#Here's my code:
class Person:
def _init_(self, name, age):
self.name = name
self.age = age
def myfunc(self):
print("Hello my name is " + self.name)
p1 = Person("Kate", 18)
print(p1.myfunc())
#Here's my outcome:
Hello my name is Kate
None
Why is there 'None' after my sentence?
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.