instruction stringlengths 43 28.1k |
|---|
I am trying to compute first few excited states of some Hamiltonian (I am using itensor and its DMRG algorithm). To do so, I am trying to modify the example given on the official webpage:
http://itensor.org/docs.cgi?vers=cppv3&page=formulas/excited_dmrg
Instead of computing only the ground state and the first excited o... |
I am interesting in integrating the simple equation
$$
\frac{\partial \phi}{\partial t} + \mathbf{u}\cdot\nabla \phi = 0
$$
with a Dirichlet boundary condition at the influx boundary ($\mathbf{u} \cdot \mathbf{n} < 0$). The domain is a simple unit square. I pretend to use SUPG and I want to validate the method using th... |
I am a novice to the field of computational science and have just started studying the FDM and FEM (haven't started on FVM yet). While trying the understand the subject I got this question and trying to find an answer over the net did not yield any answer (maybe the question is naive, please bear with me). Is there any... |
I am now working on solving MHD equations with finite difference method, which include nonlinear equations:
$$
\frac{\partial\rho}{\partial t}+\nabla\cdot\left[\left(\rho_0+\rho\right){v}\right]-\nabla\cdot\left(d\nabla\rho\right)=0\\
\frac{\partial{v}}{\partial t}+\nabla{{v}}\cdot{{v}}-\frac{1}{\rho+\rho_0}\left[{j}_0... |
I am trying to use Least Squares Minimization to solve a the matrix problem: b = A*x for x. The system is overdetermined, and A is a dense matrix.
In the LAPACK library, I believe the routine DGELSY to be the best suited for this problem (or whatever is closest to Matlab's LSQMINNORM function). However, I am a relative... |
I am trying to optimize a system that monitors and advises a user multiple times over a certain period of time depending on changing outside factors. The systems behavior can be altered by 5 constrained input variables, i.e. weights of a cost function. These parameters are fixed for one run.
At the end of the execution... |
Here is a summary of what I am trying to do:
Use MATLAB to compute the potential $V$ at any point $(x, y, z)$ in space due to a uniform ring of charge. Use a Riemann sum to compute the integral with increments, $N$, as a variable you can change. Plot your potential and field in the plane perpendicular to the area of t... |
My problem is that the L2-Norm of the residual for the periodic Poisson matrix $P$ is initially decreasing but starts to blow up after a certain number of iterations. The blowup happens earlier the larger the matrix is.
On the other hand, the Poisson matrix $H$ with homogeneous Dirichlet boundary condition converges ex... |
I'm trying to solve for displacements of a cantilever beam numerically with FEA. The beam is modeled as a 3D-solid made up of a set of 8-noded hexahedral elements, which are in their undeformed state, constructed as cubes. Every element has the same volume before solving for the displacements, where each side is 1 cm. ... |
Assume we have a 3D finite element structural problem discretized with hexahedral elements with 8 nodes and 3 degrees of freedom per node. Instead of solving the global stiffness matrix system for all degree of freedom would it be possible to split the global system matrix into three smaller matrices for each degree of... |
Suppose we have the initial-value problem on $(0,L)$:
$$
\frac{d u(x)}{d x} = f(x) u(x),\, \qquad x\in\Omega,\,~~ u(0) = u_0,
$$
I am reading a claim that says if we multiply the ODE by $u$ and integrate over $(0,L)$, we have
$$ \frac{1}{2}u^2(L) - \frac{1}{2} u^2_0 = \int_{0}^{L} f(x)u^2(x) \,dx $$
"from which the... |
As for the background of what is going on:
I'm using FEniCS that is dedicated FEM solver
The problem I'm solving is magnetostatic problem where the governing PDE is $$ \bf{\nabla} \times \frac{1}{\mu} \bf{\nabla} \times \textbf{A} = \textbf{J}$$ since the domain is 2D it simplifies to Poisson's equation: $$ \frac{1}{\... |
I'm interested in computing pointwise values of the function $u(x) = \sinh(k-kx)/\sinh(k)$ for $x \in (0,1)$, where $k = 10^{4}$. A direct computation of course results in overflow issues due to the $\exp(k)$ factor. However, $u(x)$ only takes on values between 0 and 1, so I'm wondering if there is a clever way that th... |
I have to calculate a huge differential equation. With my laptop, it's going to be computed for several days.
Is there a free (I need just for 3 days) fast server for scientific calculations?
My calculations are not parallelized, and in fact, are computed on 1 core.
I tried Google free server, however, looks like it's ... |
The LAPACK routines xGETRI compute the inverse of a matrix $A = PLU$ in its LU decomposed form by first computing $U^{-1}$, and then solving the system:
$$
(A^{-1} P) L = U^{-1}
$$
My question is: wouldn't it be more numerically stable to compute $L^{-1}$ since $L$ is a unit lower triangular matrix, and thus has determ... |
Overview
I am looking for a way to solve a structured linear system in Python without using a for loop (preferably using vectorization, if possible).
Background
Consider the following linear system:
\begin{align}
\begin{pmatrix}
E_0 \\
F_1 & E_1 \\
& F_2 & E_2 \\
&& \ddots & \dd... |
I am trying to understand the difference between SEM and FEM. If I go by this paper, spectral element methods are a subset of FEM methods and the only difference lies in the choice of basis functions. If this is the case, are there any advantages in using traditional FEM based Lagrange basis functions or SEM based on ... |
In General Relativity, one possible way to decide if a space-time [i.e. a Lorentzian Manifold $(\mathcal{M}, \textbf{g})$ where $\textbf{g}$ is an arbitrary metric tensor.] is a "resonable physical" $[1]$ one, is then check the so called Energy Conditions $[2]$, for exemple:
A physical Space-time is the one who satisfi... |
I am looking for a very good optimizer to the following problem:
$$\min_{P,\Theta}\lVert APD(\Theta)P^{-1} -B \rVert_F$$
where $A,B \in \mathbb{R}^{n\times m}$, $P \in \mathbb{R}^{m\times m}$, $D\in \mathbb{R}^{m\times m}$.
For my problem, typically $n = O(10^3)$, $m = O(10^2)$.
where $D(\Theta)$ is a matrix of quadrat... |
A quick introduction to my problem
I am currently developing a method for simulation of water waves in three dimensions based on potential flow theory. The computational bottleneck of the method is to solve the equation
\begin{equation}
f(x,y) = \bigg( \cos\Big( \eta(x,y) \nabla \ \Big) - \sin \Big( \eta(x,y) \nabla \B... |
In FVM, we have to compute fluxes at some face of a cell. There are many ways to compute this face flux value, but the most common and easiest way involves some simple averaging at the face. However, I am a little confused on what the best way of averaging is.
The particular case I am wondering about is when you have s... |
I would like to ask whether there is a free of charge supercomputer for students, in my current institution they don't have a supercomputer, I am running MD simulations, I would be grateful for suggestions.
|
I have a system dynamic that is non-smooth because it has several signum and absolute value functions in it (three-tank level control). I can obviously choose different sigmoid functions to approximate the dynamics in a way that they become n-times continuously differentiable. Can somebody point me out to a systematic ... |
I have a complex domain-specific process that accepts inputs:
10-500 inputs, where each input is of type:
enum: choice between multiple string or numeric values
int: integers
float: floating point numbers
boolean: can be considered a enum(0,1)
It outputs several dozen outputs that I have clubbed together with weig... |
I'm trying to find the minimum of a function using the quasi-Newton method with the Broyden-Fletcher-Goldfarb-Shanno (BFGS) algorithm.
But I want to change the following implementation, so that:
1) Wolfe-Powell step-size control is used to determine the minimum of a function using the quasi-Newton method.
2) Levenber... |
When we study an iterative method from textbooks, for example, see the Gauss-Seidel Method, the given matrix is decomposed with suitable splittings. In the example, $A = L+U$. So we can proceed with that decomposition if we solve the exercise through pen and paper.
I don't understand, why when we implement that method ... |
Can anyone help me with good references (books or papers) where I can learn about dual-weighted residual (DWR) method for goal-oriented adaptive mesh refinement (AMR)?
|
Goal
I'm trying to write code to compute the normalized Gaussian in the following,
$$
\begin{equation}
\int_{-\infty}^{\infty} \frac{1}{ \sigma \sqrt{2 \pi}} \exp\bigg( - \frac{(x - \mu)^{2}}{2 \sigma^{2}}\bigg)dx
\label{1}
\tag{1}
\end{equation}
$$
where $\mu \in [-10,10]$
Problem
Unfortunately, the integration algor... |
I have a number of variables that need to be set to 0. They are positive real numbers so the way I see it I can do this by setting each one to 0 by separate constraints, or I can set their sum to zero. Would that help with the efficiency? Im working on some big problems so I would like the the lowest solving time possi... |
I want to perform the following operation:
$$
A = A + U B^T
$$
where $A$ is $m \times n$ dense, $U$ is $m \times m$ upper triangular, and $B$ is $n \times m$ dense. The BLAS function dtrmm comes close but cannot handle $B^T$ and also does not compute the sum part. Does anyone see a clever way to compute this with Level... |
If $\mathcal{T}_h$ is a regular and quasi-uniform triangulation of $\Omega$, and $V_h$ is the $H^1$-conforming linear finite element space. Moreover, let $P_h$ be the $L^2$ projection to $V_h\subset H^1(\Omega)$, i.e.,
\begin{equation}
(P_hu,v_h)=(u,v_h),\quad\quad \forall v_h\,\in V_h\quad\quad (1).
\end{equation}
How... |
I am modulating a spring-mass system with gravitation and aero drag, with python programming. The spring is hanging vertically and attached a weight. The user then selects a length to drag it down and the code will generate the graphs
I solved the differential equation this way.
\begin{align}
\sum F_x &= 0\\
\sum F_y ... |
I have read that the order of the element is the order of the polynomial used to approximate/represent the field variable in that element. If we consider a one-dimensional, 2 degrees of freedom element (with 2 nodes) the polynomial would be a linear polynomial and if this element happens to have an interior node (so to... |
Consider an initial value problem (IVP) $y'=f(t,y)$ with the initial value given by $y(t=0) = 0$.
If I need to find $y(t^*)$, hence finding the path for $y$ in $t \in [0,t^*]$ and $t^*<0$; is the problem then still an initial value problem? In other words can you go back in time in IVP.
The reason I ask is that I have ... |
I am interested in finding minimizers of functionals of the type $\sum x^ay^bz^c$ where the exponents are 1, 0 or -1. I have codes to find such minimizers when they exist up to machine precision, using standard optimization ideas.
In view of some applications in probability theory, people are not satisfied with "precis... |
I want to study how to solve the following PDE
\begin{cases}
-\nabla \cdot(\ k(x,y) \ \nabla u \ ) + \beta(x,y)\ u^2 = f(x,y), \ (x,y) \in \Omega \subset \mathbb{R^2} \\
\hspace{0.5cm} u = g_{D} \ \ on \ \ \partial{\Omega}_{D} \\
\hspace{0.2cm} \frac{\partial{u}}{ \partial n } = g_{N} \ \ on \ \ \partial{\O... |
I have a problem that solving the Poisson equation with kink ( discontinuous gradient but solution is continuous ) in the analytical solution, I want to solve this problem with FEM. To approximate this problem with continuous Galerkin, very fine resolution is required to capture the sharp gradient jump. With the attemp... |
I'm trying to implement various kinds of pseudospectral methods for direct optimization in Matlab using IPOPT. I've got some working Legendre-Gauss-Lobatto code, but would like to use the flipped Radau method. What greatly helped me out writing the LGL code was having an example 6x6 differentiation matrix to test aga... |
Last time we looked at how to improve the accuracy of Whittaker-Shannon interpolation, where user njuffa demonstrated that judicious use of sin_pi could greatly improve the accuracy of computing
$$
f(t) = \sum_{j = 0}^{n-1} y_{j} \frac{\sin\left(\pi( \frac{t-t_0}{h} -j)\right)}{\pi\left(\frac{t-t_0}{h}-j\right)}
$$
Now... |
I have 2 complex, non-symmetric, matrices $A_{1000\times1000}$, $B_{1000\times1000}$ and I am using Matlab to get it's eigenvalues (functions like eig or eigs). Both matrices are different - one is denser and the other one has more complex values. To compare the complexity of the eigenvalue solving process for both mat... |
I wish to simulate the behaviour of a double-pendulum-like system. The system is a 2-degrees-of-freedom robot manipulator that is not actuated and will, therefore, behave mostly like a double-pendulum affected by gravity. The only main difference with a double-pendulum is that it is composed of two rigid bodies with ma... |
For this question, I am using the following Wiki definition of Matrix whitening:
Suppose $X$ is a random (column) vector with non-singular covariance matrix $\Sigma$ and mean 0. Then the transformation $Y=WX$ with a whitening matrix $W$ satisfying the condition $W^TW=\Sigma^{-1}$ yields the whitened random vector $Y$ ... |
Nvidia seems to be dominating the HPC / GPGPU computing landscape with CUDA. If I want to write a scientific application using and AMD GPU, what is the preferred language these days? I believe it used to be OpenCL and then I was hearing a lot about OpenACC which could work on Nvidia chips too. Now I’m seeing something ... |
I need to compute repeatedly a function that depends on an integral. The integral is not solvable analytically, but it depends on the argument of the function parametrically, like this:
$$
f(x) = \int_0^1g(x, u)du
$$
The function $g(x,u)$ is of known and fixed analytical shape, infinitely differentiable. My question is... |
Let's say I have a signal which consists several pulses of approximately equal height, and I have to correlate it with the expected positions of the peaks to find the shift of this signal w.r.t. a reference signal, which may consist of impulses only.
Probably I would do something like computing the cross-correlation b... |
I tried to use opencv to analyze a video filmed on the street.
But the problem is the performance is not enough.
I think the number of people must follow the poisson distribution.
So I want to know that is there any statistical method to work out this question?
|
I am aware that both FEniCS and deal.ii are capable of solving problems with Discontinuous Galerkin (DG) method. I would like to specifically know if any of these two softwares can cater these requirements. Other software suggestions are also welcome; I am aware of these two because they are actively developed. I am sp... |
I have an $N$-dimensional vector of data, say $X_{t}$, with $1 \leq t \leq T$.
Of this vector $X_{t}$, I want to consider vectors, say $X_{t}^{b}$, which are $m$-dimensional combinations of elements of the original vector $X_{t}$. In total, I have ${N}\choose{m}$ of such combinations.
Note that $N$ can be a large num... |
I tried to derive a preconditioner for self-consistent iteration similar
to section IX in arXiv:0804.2583.
For simplicity, consider here only
one orbital (one or two electrons) systems.
Suppose that the iteration starts with function $f_1$ and write
$f_1 = \psi_0 + \Delta \psi_0$, where $\psi_0$ is the normalized
exact... |
I am seeking knowledge from the community. I am solving a transport PDE (conservation of solute mass) using COMSOL. At each Newton-Raphson iteration, I need to update a constant called $Kd$ for some of the chemical species that are being transported (maybe I will update the $Kd$ at each time step depends on the converg... |
Publication arXiv:0804.2583 describes a method for doing self-consistent iteration without having to diagonalize the Hamiltonian operator at every step.
IX. PRECONDITIONING
As already mentioned, direct minimisation of the total energy is used to find the converged wavefunctions. The gradient $g_i$ of the total energy ... |
For a dense $N \times N$ matrix $A$, is the block-Jacobi preconditioner comprising the inverse of the diagonal blocks of $A$ the optimal block-diagonal preconditioner? Could there exist another matrix $P$ with the same sparsity pattern whose product $PA$ does a better job of reining in the small eigenvalues of $A$?
|
I'm simulating a simple 3-node bar with convection BCs at the edges to validate my FEM code. The following data was used:
Initial temperature = 25 ºC
Temperature surrounding the rod = 10 ºC
Thermal conductivity = 0
Specific heat capacity = Density = Convection coefficient = 1
For time -> infinity the two nodes at the e... |
In Symplectic Runge-Kutta schemes for adjoint equations, automatic differentiation, optimal control and more Sanz Serna writes:
It is well known that the reverse mode of differentiation implies
an integration of the adjoint equations.
Any source that shows the fact explicitly?
If I want to differentiate $ z = f(x, ... |
Is it reasonable for a FEM and FVM code to converge to slightly different solutions for the same physical problem (identical BCs, geometry, properties, etc...), provided stability constraints are satisfied? Or even, is it possible for different FEM methods to converge to different solutions?
This is supposed to be mor... |
I am virtually new to optimization (saw it years ago in a very shallow course) and now I came across a problem that I believe would require from it. The problem is I don't know exactly how to proceed.
The problem is as follows: Subject to some constrains I want to minimize a function $f(t) = c(t) * g(t)$, where $c(t)$ ... |
I know that is not the first time someone asks this question but I'm really confused.I'm new to MPI, and I tried to implement the Jacobi solver for a linear system $Ax=b$. I want to compare the time between parallel and serial problem, but for large $N$ my MPI code is much slower. I don't know if the problem lies in my... |
I am going through the book of Hesthaven and Warburton on discontinuous Galerkin methods. I have difficulties understanding some basic steps in the calculations.
Consider the PDE:
$$\frac{\partial u}{\partial t} + \frac{\partial f(u)}{\partial x} = 0$$
where the linear flux is given as $f(u) = au$.
The residual will b... |
I've created a code (Python, numpy) that defines an ultrashort laser pulse in the frequency domain (pulse duration should be 4 fs), but when I perform the Fourier Transform using DFT, my pulse in the time domain is actually shorter than it should be.
Here's my code:
import numpy as np
import matplotlib.pyplot as plt
... |
I have a second-order tensor for which I need to compute the derivatives of its determinant and inverse w.r.t. itself. The equations are as follows:
$$\frac{\partial \, det(\mathbf{F})}{\partial F_{ij}} = det(\mathbf{F}) \, F^{-1}_{ji}$$
$$\frac{\partial \, F_{kl}^{-1}}{\partial F_{ij}} = - F^{-1}_{ki} \, F^{-1}_{jl}$$... |
In the book of Hesthaven and Warburton on discontinuous Galerlkin methods in example 2.3 (regarding solutions of the wave equation), the authors regard the following PDE:
$$\frac{\partial u }{\partial t} + a\frac{\partial u}{\partial x} = 0,
x \in [L,R] = \Omega
$$
They state that for stability of the numerical scheme,... |
There are three very connected and widely used terms:
Grid and grid computing
Cluster and cluster computing
Cloud and cloud computing
In many situations, it is not obvious which term to use, as I fail to find an easy to use, laconic, precise set of criteria which would separate those terms.
The reference I know about... |
I am slightly confused about the concept of contraction rate. For me it sounds equivalent to a convergence rate. Could somebody clear up the difference for me?
I have those two definitions of convergence and contraction rate from the book Numerical Optimal Control (M. Diehl):
|
I have a PDE of the form $\partial_t y(x,t)+\partial_x(y(x) y'''(x)-f(x))=0$, where $f(x)=\cos(x)$.
Suppose a stable equilibrium exists, and I want to find the steady-state solution $y(x) y'''(x)=f(x)$ and I expect the physical solution to be periodic (as the source term is also periodic). How do I solve this equation ... |
I originally posted the question on the math stackexchange, and was told I should try here.
I’m researching Stochastic PDE, in particular the Navier Stokes Equation, and would like to estimate the probability of a certain event involving the solution to the SNSE. As such, I’d need to first numerically solve the equati... |
I am studying the following lecture (image) regarding 5 iterations of the simple RRT algorithm.
I am trying to understand how each value is being updated regarding each iteration. I have figured out how everything is being updated except the way by which the D value is being updated.
DATA: Initial pose of robot is (5... |
My objective is to get a conformal surface mesh between two geometries meshed independently in different files.
By example, I can start with a simple cube in one .geo file and mesh this geometry.
The script for this test1.geo file is as follows:
// points - Block 1
L = 1; H =1; Fin = 1/5; e =1; // L = l... |
I have a linear system $$Ax=b$$ which I'm solving approximately, and I need to take the frechet derivative of x with respect to z. Were I solving the problem exactly (either analytically or to machine 0) I'd simply say $$\frac{dx}{dz}\vec{v} = \frac{d A^{-1}b}{dz}\vec{v} = \left(\frac{dA}{dz}A^{-1}\frac{dA}{dz}b + A^{-... |
I have a complicated equation that defines a shape in 3D, and I would like to generate a surface mesh. The shape is defined by an isosurface, i.e. the function is positive inside the shape and negative outside it.
The standard basic technique for this is the 'marching cubes' algorithm. However, it has a few disadvantag... |
Consider the regularized least squares problem
$$
\min_x || b - A x ||^2 + \lambda^2 ||x||^2
$$
which is equivalent to
$$
\min_x \left|\left| \pmatrix{b \\ 0} - \pmatrix{A \\ \lambda I} x \right|\right|^2
$$
Suppose I have factored $A$ with a $QR$ factorization, so that $A = QR$ and therefore
\begin{align}
\min_x \left... |
I am trying to generate random numbers using Levy distribution in MATLAB. I am using the inverse transform method to generate random numbers and then plot its histogram for pdf estimation. Then I analytically plot the PDF of Levy distribution.
Problem: The estimated PDF and analytical PDF are not matching. I am puttin... |
General question
I work on the plane where I have a two-dimensional shape $V$ that is cut in a collection of parts $\{V_i\}$ that do not overlap
$
V_i ~~\text{s.t.}~~ \bigcup_i \overline{V}_i = \overline{V} ~~\text{and}~~ \bigcap_i V_i = \{\emptyset\}
$
I know the value of the integral of a scalar field $q(\pmb{x})$ ov... |
I'm trying to figure out how to translate a piece of code from Velocity Verlet to Runge-Kutta, while treating the time step dependence of the thermal noise correctly.
The Langevin equation for my system reads reads
$$
ma = - \gamma v - \frac{dU}{dx} + \xi(t),
$$
where $U$ is some interaction potential, $\gamma$ is ... |
In the book of Hesthaven and Warburton on discontinual Galerkin methods the authors give motivation to the differentiation matrix (page 52), referred to as $D_r(i,j)=\frac{dl_j}{dr}|_{r_i}$ where $l_i(r) = \prod_{j=1 \\ j\neq i} \frac{r - \xi_j}{\xi_i - \xi_j}$ a base-vector of the Lagrangian polynomial base.
They say ... |
I am having hard time learning the method of impulse based dynamics developed by Mirtich for rigid body dynamics simulation. Please help me out if any body has any example code(algorithm) of it. Thanks.
|
I have 5 data sets, each includes multiple scatter points.
If I use the geom_path function in R, I could obtain 5 contours like the following graph shows.
Those five contours are annotated outlines from 5 pathologists, what I want to do now is trying to use a single contour to represents these 5. Is there any method ... |
I do not really get the point of null space usage for creating the prolongation operator for smoothed aggregation algebraic multigrid. I know what the null space is per definition and I know that the null space corresponds with the rigid body modes for structural finite-element problems.
But how can I determine the nu... |
I got stuck with Hestaven/Warburton's dG-FEM Matlab code.
Starting with the file AdvecRHS1D.m, we see in line 11
du(:) = (u(vmapM)-u(vmapP)).*(a*nx(:)-(1-alpha)*abs(a*nx(:)))/2;
which calculates the jump $[u]$ between adjacent elements and multiplies it with some factor, giving
$$du=[u]\frac{an-(1-\alpha)|an|}{2}=[u]a\... |
What is the difference between Probabilistic Latent Semantic Analysis(pLSA) and Latent Dirichlet Allocation (LDA)?
|
I need to make a bilinear interpolation of a function $Y(i,j)$ tabulated on a $100\times 100$ grid. I tried to do it with the Fortran polin2.f and polint.f subroutines of Numerical Recipes. These routines seem to be written for small grids (maximum expected values are $20\times 20$). They work fine in the code when I ... |
I am looking for a way to do local sensitivity analysis for PDEs, preferably in Python.
I get the impression that discretizing the equation then treating it as an ODE could work; however, would that be computationally tractable?
Wouldn't there be an efficiency gain in keeping the PDE structure rather than reverting to ... |
I am writing a paper in which I want to cite the earliest reference to the augmented Lagrangian method in FEM. For the pure Lagrangian method in FEM, the classical work of Babuška [1] is the original paper, but I cannot find it for the augmented Lagrangian technique.
[1] Babuška, I. The finite element method with Lagra... |
I wonder if there is a fast algorithm, say ($\mathcal O(n^3)$) for computing the cofactor matrix (or conjugate matrix) of an $N\times N$ square matrix. And yes, one could first compute its determinant and inverse separately and then multiply them together. But how about this square matrix is non-invertible?
I am curiou... |
I have a computer model with a number of parameters that need to be calibrated based on experimental results. It's also important to understand the sensitivity of the results to each parameter individually. The intuitive approach to this problem is to sample each parameter (say m realization from each parameter) and co... |
Mesh information like points, faces and cells is to be stored into separate files:
e.g. for points file:
# points data: x y z
N_Points 100
x1 y1 z1
x2 y2 z2
...
cell file:
# cells data: cell type and points index - clockwise (6: tri; 9:quad)
N_Cells 20
9 3 1 2 0
9 2 5 6 1
6 2 3 5
...
here # is comment, and N_P... |
I would like to join several hexahedra and obtain an outline volume.
First, I started with 2D implementation. In 2D, there are non-intersecting quadrangles which always touch each other as shown in the figure. I used CGAL to join polygons and obtain the outline which is also a polygon.
Now I want to extend my code to ... |
, what does “D = diag(W.1)” means?on page #2, just below equation (6)
PFA screenshot and here is the link of the paper -
original paper
|
I'm wanting to build a computer for scientific or big data computing (Python, Fortran, Matlab) and I was hoping to get some advice on the type of processor, memory, graphics, etc I would need.
I understand clusters would be ideal for most of this but that is not an option.
What are some of the pros and cons for diffe... |
I have a simulation project written for OpenFOAM and CFDEM and would like to find an alternative to run it on GPU since raising the number of cores already provided a promising speed up and extrapolation shows that GPU could be the way to go.
For OpenFOAM exists a project called "RapidCFD" which brings OpenFOAM computa... |
I have a program, structured in two parts, $A$ and $B$. Both parts are capable of running as standalone units, and written in C++. $A$ is written for cluster systems, running entirely on CPU-nodes, connected via MPI (both on the same CPU for multiple cores and for different nodes), and $B$ is targeted to run on a singl... |
I am using Python 3.7 to write a program that requires me to calculate the root of the Hermite interpolating polynomial, given two points $\epsilon_0$, $\epsilon_1$, the function ($d(\epsilon_0)$,$d(\epsilon_1)$) and the derivative values ($d'(\epsilon_1)$, $d'(\epsilon_1)$) at those points. I am using Scipy v1.3.0 and... |
The error estimates in FEM are usually of the form
$$||u^h-u||\leq Ch.$$
Taking logarithm on both sides, we obtain
$$\log ||u^h-u||\leq \log C + \log h.$$
This estimate implies that the error lies below the straight line given by $\log y=\log C + \log h$ in the log-log scale. This estimate does not say that the plot of... |
together!
First of all, I have to mention that because of my background as an Industrial Engineer, I have limited abilities in mathematics, but am disciplined enough to expand myself from competencies.
I am working in a production plant in the production planning. The manufacturing process is divided into 6 steps, but ... |
I am trying to simulate strain propagation from the surface into the bulk. I have a rectangular semiconductor block (~2 μm thick) on top of which metal gates (~25 nm thick) are deposited as seen in the picture below of xz-plane crosssection (zoomed near the gates). The x-axis is from left to right, the z-axis is from b... |
$x$ is an $N \times M$ matrix.
$y$ is a $1 \times L$ vector.
I want to return "outer product" between $x$ and $y$, let's call it $z$.
z[n,m,l] = x[n,m] * y[l]
I could probably do this using einsum.
np.einsum("ij,k->ijk", x[:, :, k], y[:, k])
or reshape afterwards.
np.outer(x[:, :, k], y).reshape((x.shape[0],x.shape[... |
This is a basic question. But I did not find any explanations for this. How are governing equations, like mass, momentum, energy conservations equations, different from 'Transport equation'?. Is a conservation equation, like energy equation (heat equation), a transport equation for the temperature?
|
I'm trying to numerically solve a simple Laplace equation in 2D, with a nonlinear source term:
$\nabla^2 u = u^2$
with boundary conditions as $u=0$ everywhere except for $y=1$ where $u=u_0$. I'm using scipy's newton_krylov solver (method="lgmres") to minimized the discretized equation using the finite-difference method... |
I am currently working on remeshers for my simulations (academic purpose) and I try to find a method to remesh previous meshes using Gmsh.
The first mesh (normalMesh.msh) was created using a .geo file (normalMesh.geo) and the new meshes should be either coarser or finer depending on the location and stress distribution... |
I want to decompose a list of 3D vectors $X_j$ as linear combination of five 3D verctors $C_k$
$$X_j= \sum_{i=1}^{5}{w_{ji}C_i}$$ both $X_j$ and $C_i$ are 3 components vectors
$$C= \begin{bmatrix} C_{11} & C_{12} & C_{13} \\ C_{21} & C_{22} & C_{23} \\ ... \\ \\ C_{51} & C_{52} & C_{53} \end{bmatrix}$$
$$W= \beg... |
TLDR: Is there an efficient algorithm to compute the intersection of polyhedra with 8 or fewer vertices?
I have two sets of FEM meshes for one geometry (one exhibiting a skin effect). I have to transfer a field output of one to the other by a python script. The field output and desired input are both element dependent ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.