instruction
stringlengths
43
28.1k
I am working on a Universe Simulator. I'm stuck on creating the dark matters webs of the universe that look like this: http://www.mpa-garching.mpg.de/galform/data_vis/sim3dnew-highres.png I am generating the particles as solid spheres with the radius of 1. How can I make the particles slowly move toward each other as d...
I solved a simple test example by overlapping domain decomposition. The problem domain is a rectangular that is decomposed to two domains. So the value on the intersection boundary is guessed at the first time and updated at each step. Now I want to solve this problem by non-overlapping method. But when I use this pro...
I'm looking to solve the Schrödinger equation with a basis made of a tensor product of basis splines. A number of papers describe calculations made with a program designed this way, but they never describe how they got the knot sequence they use to define the basis. How does one go about choosing a knot sequence for a ...
I have written some code that can do Kalman filtering (using a number of different Kalman-type filters [Information Filter et al.]) for Linear Gaussian State Space Analysis for an n-dimensional state vector. Let us consider the linear Gaussian State Space model $$y_t = \mathbf{Z}_{t}\alpha_{t} + \epsilon_{t},$$ $$\alp...
Working in finite differences, I am using a transformation on the temperature variable $\Theta = \int_{T0}^T \kappa(T)dT$ to linearize the steady-state heat equation into a Poisson equation $-\nabla\cdot(\kappa\nabla T)=-S \rightarrow \nabla^2 \Theta= -S$ The Dirichlet and Neumann boundary conditions transform in a wa...
I'm not sure if this question is appropriate for this site, so I appologize in advance if it's not. For the purpose of a certain project I am working on, I would like to have the following sets plotted in 3D: $A = \{(x_1,x_2,x_3) \in \mathbb{R}^3 : x_1 \geq x_2, x_3 = 0\}$ $B = \{(x_1,x_2,x_3) \in \mathbb{R}^3 : x_1 = ...
Let us say we have the following equations: dy1/dt = f(y1, t) [1] dy2/dt = g(y2, t) [2] The equations are such that they are "conservative", i.e. the following condition should hold: dy1/dt + dy2/dt = 0 [3] Using scipy.odeint, I find that I can integrate conservative equations like this just fine for sim...
I am interested in computing the solution of a lage system of ODEs using a krylov method as in [1]. Such method involve functions related to the exponential (the so-called $\varphi$-functions). It essentially consists of computing the action of the matrix function by constructing a Krylov subspace using Arnoldi iterati...
How can I access a field in Paraview's programmable filter as a numpy array? I want to: Import an existing field as a numpy array Create a similar array for output Register it as a new field for visualization I'm familiar with the wiki, but it doesn't address the issue. Given this example: elev0 = inputs[0].PointData...
all. I have data from a CFD simulation for a wing, and I need to obtain a visualization of the span-wise load distribution. I'm attempting to do this using Tecplot. I've tried using 'slices' and 'vectors', but got stuck. Any ideas on how to do this? Any input from engineers would be greatly appreciated.
I'm part of a Computational Science course and come from a non-programming background, so please forgive me my ignorance. I'm working on a set of code in C to numerically solve the Navier Stokes equations for a Computational Fluid Dynamics course. As a part of our task, I have to write code that runs on a single proces...
I would appreciate help choosing a software for the Finite Elements Method (FEM). I wish to model items like ropes, bull whips and fishing rods. (I intend to transfer the model into bio-mechanics, later.) E.g. I wish to study how the force/torque/movement applied to the handle of a fishing rod spreads to the end of the...
How can I implement the computation of the diffusion coefficient $D$ using periodic boundary conditions (PBC)? I use molecular dynamics of a set of $nboby$ particles with positions $pos(3,nbody)$ in a box of length $length$. The implemetion of the PBC is do k = 1, 3 pos(k,i) = modulo(pos(k,i),length) end do At now...
I'm doing molecular dynamics of $N$ bodies interacting through Lennard-Jones potential. I'm studying the hysteresis phenomena in the phase transition solid-liquid and liquid-solid. Which parameters can I use for determine the temperature at which the phase transition occurs? I'm using some parameters, as potential ener...
Given a 3D unstructured grid consisting of mixed types of shapes (hex, tet, ...), is there a method to know how many faces (including boundary faces) are contained in the grid?
{Summary: I have a symbolic expression DCritnF expressed in terms of two variables x1 and x2. I need to find it's numeric value and I used combination of double and subs as given below. FuncVal = double(subs(DCritnF,[x1,x2],[x(1),x(2)])); Challenge is that since DCritnF is a very convoluted expression (generated by sy...
I am looking at the Nvidia GT-860M which comes in both the old Kepler and new Maxwell architecture. The old one (1152) seems to have almost twice the cores as the new one (640). The new one has a compute capability score of 5.0 compared to the old one of 3.0. Yet, the new cores are more powerful, according to: https://...
I'm trying to calculate the derivative of a function using FFT in Matlab. I've coded the following function to calculate it: function dfdx = derivative(x,psi_0,n) Nx = max(size(psi_0)); k = 2*pi/(range(x))*[0:Nx/2-1 0 -Nx/2+1:-1]; dfdx = ifft(((1i*k).^n).*fft(psi_0)); end For higher derivatives (let's say for the...
I'm using the SciPy sparse.csr_matrix format for a finite element code. In applying the essential boundary conditions, I'm setting the desired value in the right hand side vector, and setting the corresponding row and column to the identity (i.e. 1 on the diagonal and zeros elsewhere.) The code I'm using is similar to:...
I would like to ask how is the evaluation of integrals over inter-element interfaces implemented in a typical DG code. I can think of two basic approaches (I assume 2D mesh here): 1) Perform 1D interpolation of the interface data seen from 'left' and 'right' of each edge and numerically integrate. For this, I don't ne...
I have a transient simulation for a case from 0 to 3 sec , actually i interest the solutions on time range from 2 to 3 sec , as my velocity and mesh size , my time step should be 0.0000000001 sec , my question is can I make my time step is 0.0001 sec for time range 0 to 1.9 and the i use 0.0000000001 for time range fro...
I have a list ${\cal L}$ of symmetric matrices that I need to check for positive semi-definiteness (i.e their eigenvalues are non-negative.) The comment above implies that one could do it by computing the respective eigenvalues and checking if they are non-negative (perhaps having to take care of rounding errors.) Comp...
I'm part of a Computational Science course and come from a non-programming background, so please forgive me my ignorance. I'm working on a set of code in C to numerically solve the Navier Stokes equations for a Computational Fluid Dynamics course. Anyway, as a part of our task, I have to write code that runs on a singl...
I have numerically integrated the (reduced) homogeneous equation of a damped harmonic oscillator in order to see how the error propagates. $$\frac{d^2 X}{d\phi^2} + \frac{1}{Q}\frac{dX}{d\phi}+X(\phi) = 0$$ where $\phi = 2 \pi \tau$ and $\tau$ is the reduced time In the process I have also extracted the logarithm of th...
I am developing some parallel CFD code using Fortran 90 and OpenMPI. The processes are structured into two groups such that half perform a certain type of calculations (let's say Velocity, Pressure and Temperature) while the other half performs a different type of calculations (let's say Turbulence modelling using K-om...
Hi guys! I am working on a dynamics problem that I am not really sure how to solve it. Can anyone help me? The professor gave as a hint that we should compute the stiffness matrix of a linear element and then the stiffness matrix of a quadratic element. THanks!
I have a coupled PDE problem(Poisson-Schrondinger system), i.e. first I need to solve an eigenvalue problem (Schrodinger problem discretized by Galerkin method) $$Ax=\lambda x, ~~~A=A(u)$$ the output $x$ is then used to compute some source term(charge) of a poisson equation(discretized on the same grid) $$ Ku=b, ~~~b=b...
I understand the crucial importance of freeing memory when certain variables or arrays need to be reused later in the program, or may not be in use for a while. However, in my experience with scientific computing a lot of the code written is meant to be run as a job and produce results, rather than the case of conventi...
I have a system of particles with equal distance with each other and another at random positions which is moving with time. I want to know: a) The method by which I can reduce the number of particles from the first system, as I know the maximum motion of any particle is X. b) How to efficiently calculate the collision ...
In Monte Carlo simulations, using the Metropolis criterion, one often has to compare a random number $a$, $0 \leq a < 1$, to the Boltzmann distribution $exp(-\beta\Delta E)$, where $\Delta E$ is the energy cost of a transition between two states in the simulation. A common optimization, is to check if $\Delta E > 0$, ...
I want to solve the following system of nonlinear reaction-diffusion equations (Schnakenberg Turing) using FEM methods (such as deal.ii): $$ \partial_{t} u = \Delta u + \gamma\left(a-u+u²v\right)$$ $$ \partial_{t} v = d\Delta v + \gamma\left(b-u²v\right)$$ where d, $\gamma$, a, b being constants. Probably I need to fir...
I'm trying to make my code more efficient so exploring alternatives and providing a simplified example here. Here are 3 different versions I thought of for defining an anonymous function in matlab. % Version 1 definition in script clc; clear; syms x1 x2; b = 2; c = 3.5; ExampleFunc = @(x1,x2) x1^3 + b*x2 + c; % ...
I have spent quite some time trying to solve the following quadratic program: $$\min \sum_{i=1}^n (\frac{1}{2}x_i^TQx_i+c_i^Tx_i), \quad \mathrm{s.t. } \quad x_i\ge 0 \quad \forall i,$$ where $n$ is very large and $Q$ is a sparse positive semi-definite matrix (given at the end of this post). Although the sub-problem ...
For Monte Carlo simulations, or any other numerical methods that rely heavily on the quality of the pseudo-random numbers generated (i.e even/desired distribution on a certain domain) for that matter, why aren't evenly-spaced and perfectly/accurately distributed numbers (not pseudo-random) used as opposed to pseudo-ran...
I am looking for a nice reference (a review, tutorial, or maybe a book) that has tips and their explanations about general issues of floating-point arithmetic in scientific computations. Some that I've seen are Numerical Recipes and Goldberg, D. E. (1991). What every computer scientist should know about floating-point ...
I understand how to set up the boundary conditions for a steady state problem discretized by Galerkin method, for a time dependent PDE below, $$\frac{\partial}{\partial t} u = c\nabla^2 u + a\nabla u + b,~~~ u_0= 1, u'_1=0$$ Supposing I have correctly set up the Dirichlet and Neumann conditions for the steady state pa...
Are there any mature Python packages that can plot functions, and possibly use adaptive sampling? I am looking to pass only a function (can be a numerical black box) and a range, and expect a plot as the output. What I am not looking for: manually generating the sampling points, manually computing the function values, ...
What are the most accurate algorithms for evaluating a polynomial using floating point arithmetic? The internet seems to suggest that Horner's method is commonly used. In particular I have a cubic polynomial of the form f(x) = a x^3 + b x^2 + c x + d, which I am evaluating in the naive way with floating point arithmeti...
I have a bunch of readings that run every 4 hours, however each sensor has a different offset. One sensor might read at $t = 0,4,8,12,16,20$ and another senor reads at $t = 1,5,9,13,17,21$. This makes it difficult to compare the reading. It would be nice to put them all on equal footing - "normalization". To do this...
I'm looking at FEM discretizations of $$u_i - \Delta u_i = f$$ for $u_1, u_2$ on subdomains $\Omega_1, \Omega_2$ with interface $\Gamma$. A Neumann-Neumann transmission condition can be formulated by solving for a flux $\lambda$ on $\Gamma$ such that $n\cdot \nabla u_1 = \lambda = -n\cdot \nabla u_2$. One "dual" varia...
[I previously asked my question on StackOverflow but this site may be more appropriate] In Matlab, I am currently using the MultiStart as an optimization algo in a parallel setup for a computer cluster. For example, this is my Matlab code: opts = optimoptions(@fmincon,'Algorithm','sqp','Use Parallel','Always'); %The op...
I am trying to compute the weight matrix for a set of straight ray paths through a reconstruction region. Ideally, I would like to be able to do this for both a rectangular grid region, where each grid cell is a rectangular prism, and a geodetic grid region, where grid cell boundaries are specified in latitude, longitu...
In most (all?) implementations of the Fast Multipole Method (FMM), octrees are used to decompose the relevant domain. Theoretically, octrees provide a simple volumetric bound, which is useful for proving the O(n) runtime of a FMM. Beyond this theoretical rationale, are there benefits to using an Octree over other tree ...
I would like to implement custom, domain-specific algorithms for sparse matrix orderings. I am looking for Python packages for ordering sparse matrices. It would be nice to have: The underlying datastructures handle sparsity (matrix sizes: $10^4-10^6$) To be able to handle highly unsymmetric matrices. (Introducing art...
I'm developing a tool that allows users to select a closed boundary (a polygon) on the triangle mesh and then from this boundary, generate a NURBS surface fitting the original mesh surface. My idea is as following: Generate a list of NURBS curves from the closed boundary (polygon) Combine such curves together using...
Let $u$ be the answer of a PDE.Is there any relationship between $u,\frac{\partial u} {\partial n}$ and $\Delta u$. I have the values of $u$ and $\frac{\partial u} {\partial n}$ on $\partial \Omega$ but I need the value of $\Delta u$ on the boundary. I think it's impossible, but is there anyone who know how to do this...
Has anyone here had any success (or at least tried) compiling the HSL_ME57 (or similar such as MA57, etc.) matrix factorization libraries? Do any C wrappers exist for the Fortran function calls? I'm not having much luck compiling the library using GCC 4.9 (latest version). Here are the errors I am getting: gfortran -g...
I do have a Diffusion coefficient in a convection diffusion PDE which is discontinuous and looks like (concentration on the x-Axis): For numerical reasons i use the integrated form: I calculate the functions in beforehand and during my calculations i interpolate the diffusion coefficient depending on the actual conce...
Is there a good introduction into wavelet Galerkin schemes for numerical partial (and ordinary) differential equations?
I would like to perform a surface integration over a portion $D$ of an ellipsoid. A plane arbitrarily intersects the ellipsoid forming two sections, of which one is $D$. I do not know how I can discretize $D$ in order to perform the numerical integration. Attempt at a Solution I parameterize the ellipsoid in spherical...
I have a working knowledge of calculus and have been able to understand the application of Newton-Raphson technique for unconstrained optimization. Please point me to some of the easy to understand tutorials for advanced techniques like BFGS and LBFGS. I prefer video lectures to books and books to papers. My aim is to ...
In a constrained optimization problem, I found in a paper a way to define new variables such that the constraints disappear. They only give the new variable definitions, and I would like to understand how they did. The context is thermodynamics. A mixture of $c$ components can phase separates into $p$ phases. $z_i$ is ...
I'm a novice in object-oriented programming, but this design technique seems very interesting for me. I have a Fortran 90 CFD package , not very complex, but it is already very hard to maintain and to add new physics or other features. As I learnt for now it can reduce complexity of program, but most important from my ...
I am trying to interpolate irregular data $f(\theta, \phi)$ on a sphere and I have so far tried a scipy approach using Kd-Trees and inverse distance weighting, which works ok - however I was wondering if there is an open-source library for spherical interpolation. I have come across the SHTns library, which is suggeste...
For my application, I need factors $\tilde C$ so that $$ \tilde C{}^T \tilde C = C^TMC $$ where $C$ is a long matrix, i.e. $C$ has much more columns than rows, and $M$ is a small symmetric positive definite (mass) matrix. Since my code assembles $MC$, I will also have to use some inverses of $M$. I have found that with...
I'm working on a code that we eventually plan to scale up to 10's or 100's of thousands of processors (using MPI). I have a single HDF5 file (mesh nodes and connectivity, etc) that needs to be read and distributed to every process with identical data. This is only done once during the setup part of the code. The curren...
I am trying to replicate Fortran90 array syntax using a C++ library. The libraries themselves are discussed at length in this question. They can all do something like this: D = alpha*A + beta*B + gamma*C for vectors A, B, C and scalars alpha, beta, gamma. This could be translated as: for (i = 0; i < D.length; i++) ...
I deal with PDE module in COMSOL and I would like to simulate Poisson's equation. Actually I need to simulate the distribution of the electric filed created by the spherical probe in the material, hence I need to consider at least two different domains: air and material. Air and material have different properties, so...
What are the subtleties involved in solving vector PDEs on manifolds? Can someone suggest a reference summarizing the problems involved? Specifically I want to solve a vector Helmholtz equation with a source field on a curved manifold (e.g. a sphere, or a sphere with distortions). How do I go about solving this? Say us...
I've currently begun studying Finite Element Method (FEM) and I'm finding it a little difficult to find resources that break it down into something comprehensible. All the resources I've found are simply too advanced for me to understand as I do not have a mathematics background (hence the confusion). I'd like to kindl...
function [R, RI , S ] = Matrix_block (A,N) [U,D]= schur (A); E=ordeig(D) ; [R, S]= ordschur (U,D, abs (E) <1000* eps ) ; RI=R'; m= max(max(R* RI-eye (2*N) ) ) ; if m >100* eps; sprintf( 'R not unitary , N: %d , Maximum : %d \n ' ,N,m); end C = R*S*RI-A; m= max(max( abs (C) ) ) ; if m >10* eps ; sprintf ('Rtransf...
For ease of explanation, suppose that you began with a two-dimensional surface in (x1, x2, x3, x4)-space, and the surface begins as a flat planar region in the (x1, x2)-plane. The boundaries of this flat region is not that important to resolve, but it would have a closed boundary. Pretend it is a square. So this surfac...
I am interested in methods for solving the optimization problem $$ \begin{array}{rl} \arg\min_x & x^T A x \\ \mathrm{s.t.} & x^T x = 1 \\ & Bx = 0 \end{array} $$ where $A$ is symmetric and full rank with well-separated eigenvalues, and $B$ has a nontrivial null space. In other words, I want to restrict $A$ to the null...
I've spent some time writing a spectral element solver aimed at solving fluid flow problems concerning the motion of self-propelled bodies. I've gotten to the point where the code has grown long enough that I'm having trouble organizing things in a way that is simple and understandable. Presently, I have written it in ...
I want to numerically solve the diffusion equation $\partial_t u = D \partial_x^2 u$ in Fourier space, and can think of multiple ways to do it. Setup Option 1 Differentiating $u$ twice in Fourier space brings down two factors of $ik$ from the exponential $e^{i k x}$. $$\partial_t \tilde{u}_k = D (ik)^2 \tilde{u}_k$$ wh...
Electromagnetic metamaterials are resonant, periodic structures (repetition of a unit cell) involving both dielectric and conducting elements, and are used and simulated in frequency ranges from microwave (a few hundred MHz) up to optical and more (up to PHz) frequencies. These structures are simulated in frequency dom...
I have scatter plot and I want to trace the border of that. for example: Plot: and I wanted it traced: Or at least wanted to know the border points? Also, is it possible to detect if any point exist on inside or not?
I have a partiuclar kind of graph problem and (not having a background in graph algorithms) I would like to know how this kind of problem is called in the literature and what algorithms exist for solving it. I have an undirected graph consisting of vertices $V$ and edges $E$. Each edge has a potential $p_e \in [0..1]$ ...
I have an expression (let's say determinant of matrix A) expressed in symbolic form in terms of 2 decision variables x1, x2 and 2 parameters q1 and q2. I'm minimizing this using fmincon for different start point and parameter value combinations. For certain combinations of x1, x2, q1, q2 the matrix A is not invertible ...
I do not need a complete answer but just some advice. I have a sparse matrix of points in a volume. I know a surface passing by these points exists and this surface is mostly flat and relatively smooth with some small harmonic contents. See the two images below (this surface of the first one is a bit too complicated an...
I am minimising a diagonal quadratic matrix using CPLEX. All off diagonal elements are zero. It has 500 variables and 20 linear constraints plus each variable is constrained to be within 0 and 1 All of the elements on the diagonal are greater than zero. CPLEX complains that it is either not-optimal or unbounded depend...
I run Python/C simulations for biological problems, so the range of computational tasks can be broad. Here are some examples: 1) continuum model simulations: FEM type 2) agent-based simulations: each agent may be a 2D polygon, on whose vertices ODEs are defined, modelling the time evolution of interesting variables, an...
So, I'm trying to simulate polygon rigid body physics, both linear and angular. To calculate the MTV is easy in SAT (Minimum Translation Vector), and to use it to adjust position is also easy: PolygonA.center -= MTV * .5 PolygonB.center += MTV * .5 But if you want to adjust velocity and angular velocity with it how wo...
Consider solving numerically for roots: $( x_0, y_0): f(x_0, y_0) = 0, g(x_0, y_0) = 0$ where you only know that f, g continuously differentiable but the theoretical differentiation is not a possible. So for this rather take it as continuous only. $ f_x(x,y) \leq 0$ $ g_y(x,y) \leq 0$. $f_y $ and $g_x $are per se n...
I'm solving an ODE, where currently the dependent variables are the (time dependent) spatial Fourier coefficients. It turns out that the phenomena I'm interested in describing is spatially localized, and it takes an impractical number of Fourier coefficients to fully describe it. Therefore, I'm interested in looking at...
I want to construct a MIP formulation for Ising model. For simplicity, I will only include terms involving nearest-neighbor pairs and triangular terms. I propose one formulation and ask whether there would be some stronger formulation form that would be potentially faster in computation. Thank you :D the original objec...
In Lapack (zhseqr) and matlab, the eigenvalues of a complex matrix are computed successfully. I notice that QR iteration or algorithm is involved with that process. QR iteration repeats to call QR decomposition of R*Q from the previous step. Here is my question: QR decomposition in Lapack (zgeqrf) produces real diagon...
I am writing a finite element solver in C++. The main bottle neck is assembling the global stiffness matrix in sparse compressed row storage (so far I am only solving steady problems). Because I don't know how many nonzero entries exist in each row, I am currently assuming a constant upper bound on the number of non-ze...
Suppose I have a quadrature method with a theoretical error estimate that scales with the number of points as $e(N)$: $$\int_a^b f(x)\mathrm{d}x = \sum_{i=1}^N w_i f(x_i) + \mathcal{O}\bigl(e(N)\bigr)$$ For example, $e(N) = N^{-4}$ for Simpson's rule, or $e(N) = N^{-2}$ for the trapezoidal rule. In this question I only...
Given a problem like this: $$ \text{min } ||Ex-f|| \text{ s.t.}$$ $$ Gx \ge 0$$ $$ Cx = d $$ And assuming that the matrices are medium sized (dimensions in the low thousands) and dense, what's the state-of-the-art for solving this system (imagine for use in a real time system)? Preferably using something like an activ...
I have a single sparse matrix $A$ for which I can easily compute $Ax$ and $A^*x$ and I would like to solve $\min(||Ax||) \text{ s.t. } ||x||=1$. I know the answer is the right singular vector associated with the smallest singular value, and thus I can use something like Lanczos (or one of the modern bells-and-whistles ...
The diffusion equation is: $ \frac{\partial T}{\partial t} = \alpha \left( \frac{\partial^2 T}{\partial x^2} \right) $ An explicit finite difference approach can be used to solve this, forward in time and central differences in space. Approximating the diffusion equation at a node i, yields, $\frac{T_i^{n+1}-T_i^n}{...
I have done Molecular Dynamics Simulation and now want to venture into Lattice Boltzmann Method. What would be the best reference book/lecture notes/videos for a beginner?
Given symmetric, positive-definite matrix $A$ and its preconditioner $M^{-1}$. What's kind of preconditioner $M^{-1}$ which preserve the symmetry of $M^{-1}A$?
I've coded up a Stokes Flow problem using finite elements and am in the process of verifying that it works. I'm just not sure what convergence rate I should be expecting as I globally refine the mesh. I know for scalar problems using linear basis functions I'd expect order $h^2$ convergence ($h$ is element size), and u...
I have some technical question concerning the ellipsoid method Referring to the paper : http://paswkshop.comm.utoronto.ca/~weiyu/01658226.pdf It is mentioned in p.1317 at the last line in the left column that "When the subgradient of the dual objective function has a bounded norm [26], the ellipsoid update is guarantee...
How many years it would take our laptops to be as fast as the fastest super computer in 2000 according to Moore's law?
Due to the derivation of an algorithm I tried to use Maple (9.5) to calculate some block matrix expression. Unfortunately Maple seems to ignore the assumption I set on the variable. Lets consider the following minimal example: restart; with(LinearAlgebra); assume(A,'SquareMatrix'); assume(B,'SquareMatrix'); E:=Matri...
What is the fastest multithreaded radix sort code out there? I am using radix sort to sort the Morton/Hilbert keys when constructing a tree structure. The number of identical keys is in the range of 10-100. I also need the sorting code to return a permutation index array so that I can sort other elements according to i...
I would like to numerically solve a hyperbolic PDE of the form $\frac{\partial\theta_t}{\partial t}(x,y)+\frac{\partial\left[\theta_t \gamma_t^x\right]}{\partial x}(x,y)+\frac{\partial\left[\theta_t \gamma_t^y\right]}{\partial y}(x,y)=0,$ which is very similar to the 2D advection equation, except that the partial deriv...
I would like to determine a temporal derivative and a Laplacian by the finite differences method to solve the heat equation in a 1-dimensional case. My aim is to get the sources term that is why I need to get all left terms of the equation. When I plot the sources term as a function of time, the result is surprising......
I am struggling with an equation that represents the Weak form of Galerkin method: $ \phi^{T}F(\textbf{u})\sim \int_{\Omega}^{ } \phi.f_{0}(\mathit{u},\nabla \mathit{u}) + \nabla\phi:f_{1}(\mathit{u},\nabla \mathit{}u) = 0 $ Where the pointwise functions $f_{0}$ and $f_{1}$ capture the problem physics. After discretizi...
These days, one can have 64 cores in a single node. I wonder how well the dense matrix-matrix product (SGEMM and DGEMM) scales with multiple CPUs/cores? I tried to find some relevant benchmarks, but couldn't.
So in my school we have a day where everybody participates in different activities. Each projects can have like 10 members. The whole day is divided in 2 or 3 different blocks, in which the pupils assigned to the activity change.(So in block 1 pupil x takes part in activity a and in the second block in activity d). Bef...
I am fairly new to using SRM, and I am wondering if I should be using srm CLI tools (srmping, srmls, srmcp, etc..) provided by dcache, or bestman2 counter parts (srm-ping, srm-ls). I used to think that either tools should work fine against either dcache, and bestman2 servers, but recently I am seeing this is not the ca...
After reading three books about finite element method, with two of them covering also finite volume and grid generation, I found myself lost when I have to discuss these topics with library developers scientists that use an advanced mathematical language (for example, they usually encompass the discussion with Sobolev ...
I have a MIP which I know the solution almost for certain. I want to use gurobi to prove that the true solution (even if it is not the one i provide) shall not lie more than 0.5% deviated from the solution I gave. I believe that simply keep cutting without branching would possibly save much more time. Do you know a way...
Is there any fast way to compute the barycentric Lagrange interpolation using matlab? something more faster than using repmat instead of for loops
I'm using interior point algorithm for solving a nonlinear optimization problem and want to provide Hessian of the Lagrangian as part of fmincon to speed up the process (running couple of thousand variations for different sets of parameters) The workflow that I'm designing has the (nonlinear) objective function, form o...
I'm trying to generate start points for my optimization problem in Matlab. At this point Im not worried about feasibility but only a fast way to generate the points from which I could test the performance of different algorithms available within fmincon. Though am not worried about feasibility I don't want to use rando...