instruction stringlengths 43 28.1k |
|---|
My program (in Python, using FEniCS):
mesh=UnitSquareMesh(16,16)
U_h = VectorFunctionSpace(mesh, "Lagrange", 1)
B = VectorFunctionSpace(mesh, "Bubble", degree=3,dim=2)
Mini_h = U_h + B
Boundary definition (for example, u0_boundary and u1_boundary are part of square, respectively):
w0 = Constant("0.0")
bc0 = DirichletB... |
I generated a mesh file in gambit and wanted to convert it to xml format. I tried the code below, but there is no output.
from dolfin import *
from dolfin_utils import meshconvert
dolfin-convert cylinder6.msh out.xml
can anyone tell me how to convert using dolfin??
|
I'm looking for sparse SPD matrices with right hand side? There is UF collection of sparse matrices, however, I'm not sure how do I search of the matrices of these kind efficiently (I'm doing a naive search which hasn't given me any results so far and it takes arbitrary long for some of the matrices).
|
I plans to use CSDP to solve the following semi-definite problem:
$$\min_{B, \beta}\operatorname{trace}(CB) \\
\text{s.t.} \ \operatorname{trace}(AB)=1 \\
\beta\geqslant 0 \\
\begin{bmatrix}
1 & \beta^{T}\\
\beta& B
\end{bmatrix}\succeq 0$$
where $A$, $B$, $C$ are $M\times M$ matrices,and $\beta$ is an $M$-dimensiona... |
I need to solve the following equation in FEniCS:
$$
\boldsymbol{\nabla} \cdot \begin{pmatrix}
f(y)\frac{\partial u}{\partial x} - g(x,y)\frac{\partial u}{\partial y} \\
- g(x,y)\frac{\partial u}{\partial x}+f(x)\frac{\partial u}{\partial y}
\end{pmatrix}=0.
$$
As far as I understand, the weak form will look like:... |
Eventually, I would like to numerically simulate the transient compressible flow in an axial compressor during start-up.
However, I know that this is a very challenging undertaking (to say the least).
Nonetheless I would like to ask if there are recommendations for background literature, simple models, examples, frankl... |
Full configuration interaction quantum Monte Carlo seems like it is poised to overtake DFT in some applications pretty soon. I am curious if there is any freely available implementation of the method, as I cannot seem to find one.
|
I'm conducting a molecular dynamics simulation for silica. Some time ago I turned to the fluctuating dipole model, and after much effort I'm still having problems implementing it.
In short, all oxygen atoms in the system are polarizable, and their dipole moments depend on their position with respect to all the other at... |
I am learning OpenFOAM as a hobby and using my Vespa racing as the topic to apply it to. The objective is to produce modifications that improve the top speed (as well as getting some values such as lift). I am basing my simulation on the motorbike tutorial.
The motorbike tutorial uses the kOmegaSST turbulence model but... |
I have a numerical ODE simulation that I computed at fixed time step $h$ using a 4-th order Runge-Kutta method (RK4), producing a series of results $(x_1,y_1), (x_2,y_2), (x_3,y_3) \dots (x_N,y_N)$.
If I want to find an approximate solution $y$ at a location $x$ in between my intervals, I could use
linear interpolati... |
Hey there and thanks for giving time to look at my question. This is a updated version of my question which I posted earlier in physics.stackexchange.com
I'm currently studying a 2D exciton spinor Bose-Einstein Condensate and am curious about the ground state of this system. The mathematical method of getting to the g... |
I want to implement differential equations in C# from Open Cell cellml file. The mathematical model is described in this article. I have parsed xml, and calculate operations, but can't correctly implement the equations. I can not understand how to evaluate differential equations. The format of operations is content mat... |
I'm trying to figure out if there is a faster way to compute all the eigenvalues and eigenvectors of a very big and sparse adjacency matrix than using scipy.sparse.linalg.eigsh As far as I know, this methods only uses the sparseness and symmetry attributes of the matrix. An adjacency matrix is also binary, what makes m... |
Let's say you have a general matrix $A$, with diagonal entries $a_{ii} = d>0$. (No assumptions are made about the off-diagonal elements.) Then Jacobi preconditioning doesn't improve condition number, because
$$
\kappa(A)= \left|\frac{\lambda_{\rm{max}}(A)}{\lambda_{\rm{min}}(A)} \right|
$$
becomes
$$
\kappa(M^{-1}A)= ... |
I have such a problem - I would need to expand a discrete function in a sine fourier series but I would like to use exponential based library for FFT (I will use CUDA to compute it).
What have I to do with the signal I'm sending to the procedure so this is treated as sine fourier? I think I should add zeros but I am no... |
How can I convert matrices L and U output by dgssvx() of SuperLU to triples format (to matrix market format)? Also how can I convert input matrix A in triples format (in matrix market format) to the format required by SuperLU? What is the easiest way to perform these format conversions?
|
I am new to scientific computing. I am looking for a Fortran ( preferably f90) implementation of an Octree.
My problem requires an Octree which divides my domain until there aren't more than some N particles(or sources where I know the density value which can be plugged in an integral equation method to solve an equati... |
I would like to numerically find a mutual capacitance of two stripes of metal on the opposites sides of a cylinder. The problem is obviously a 2D Laplace equation. I would like to find the potential outside the cylinder as well. Therefore I have something like this:
mesh = UnitCircleMesh(50)
V = FunctionSpace(mesh, 'La... |
I have a dataset of 3-dimensional points for which I'd like to construct a mesh, using python. All the software I've seen requires that you provide the edges. Is there a program in python which takes as the input a set of points in 3D and output a mesh? If possible, I'd like the meshing to be uniform.
|
In semiconductor simulation, it is common that the equations are scaled so they have normalised values. For example, in extreme cases electron density in semiconductors can vary over 18 order of magnitude, and electric field can change shapely, over 6 (or more) orders of magnitude.
However, the papers never really give... |
I carefully read all circa 70 pages of FEniCS tutorial and I still do not understand how to solve electrostatic problems when I have materials with different dielectric constant. The self contained system of equations in electrostatic
$$
\mathrm{div}\boldsymbol{\mathcal{D}}=4\pi\rho,\\
\boldsymbol{\mathcal{D}}=\varepsi... |
The advection equation needs to be discretized in order to be used for the Crank-Nicolson method. Can someone show me how to do that?
|
The title is the question. This technique involves using the "matrix of cofactors", or "adjugate matrix", and gives explicit formulae for the components of the inverse of a square matrix. It is not easy to do by hand for a matrix bigger than, say, $3\times 3$. For an $n\times n$ matrix, it requires computing the det... |
I'm making a model of a square box where water comes in and the water level rises. I want it to be a transient, turbulent, VOF-model. The velocity of water entering changes in time ($-0.2$ to $0.2$ m/s).
For now I use a steady, laminar inflow of $0.2$ m/s, a grid of $10,000$ cells (the geometry is roughly $100\times 10... |
This presentation by the Imperial College in London has a nice example in it, on page 8, Burgers Equations. The first part of their code reads like this:
from dolfin import*
n = 30
mesh = UnitInterval(n)
V = FunctionSpace(mesh, "CG",2)
ic = project(Expression("sin(2*pi*x[0])"), V)
u = Function(ic)
u_next = Function(V)... |
I have an ODE without a boundary condition:
$\small\left(\frac{d}{dr}C(r)\right)^4-2C(r)\left(\frac{d^2}{dr^2}C(r)\right)\left(\frac{d}{dr}C(r)\right)^2+2\left(\frac{d}{dr}C(r)\right)C(r)^2\left(\frac{d^3}{dr^3}C(r)\right)-4\left(\frac{d^2}{dr^2}C(r)\right)^2C(r)^2+12C(r)^2\left(\frac{d^2}{dr^2}C(r)\right)-8C(r)^2=0$
I... |
I was wondering if there exist any good (accurate/fast/easy-to-use) open-source FEM solvers for 3D time-harmonic Maxwell's equations. I am looking to simulate systems a few wavelengths large in the X/Y dimensions and tens of wavelengths in the Z dimension, so relatively small-size problems. All my dielectrics are homog... |
I am trying to solve the 2D Poisson equation using
the Discontinuous Galerkin method (DG) and the following
discretization (I have a png file but I am not allowed
to upload it, sorry):
Equation :
$$\nabla \cdot( \kappa \nabla T) + f = 0$$
New equations :
$$q = \kappa \nabla T\\\nabla \cdot q = -f$$
Weak form with numer... |
I've seen that there is a way to use the finite differences method, on a cartesian orthogonal grid, to perform calculations on potential flow about an obstacle without using the Neumann conditions, but only Dirichlet conditions. It is done using the stream function, i tested it and it seem to work. But this method has ... |
I have this funny equation
$$
\frac{\partial^2 u}{\partial t^2} = \frac{\partial^3 u}{\partial x^3}, \qquad x \in [0,1], \qquad t \in (0,T]
$$
with initial conditions $u(x,0) = \sin(2\pi x)$, $\frac{\partial u}{\partial t}(x,0) = 0$ and periodic boundary conditions: $u(0,t) = u(1,t)$, $\frac{\partial u}{\partial x}(0,... |
This is my first time using FEniCS. I am trying to solve an elliptic PDE, fairly similar to the Laplace equation, on a rectangle with two holes in it. The holes are level sets of an energy function, so I am not completely in control over their geometry. For a first approximation I can use ellipses, but I would like to ... |
I want to calculate the unknown electrical potential distribution $\phi(x)$ (notice this is a function of $x$) from a known electric field distribution $\boldsymbol{E}(x)$ using the Poisson equation,
$$
-\frac{\partial^2 \phi}{\partial x^2} = \frac{\partial\boldsymbol{E}}{\partial x}
$$
I would like to do this numerica... |
today I tried some evaluation on a DG function space (Fenics 1.2.0).
In my calculations I need to use meshes with a large number of cells (~10mio).
At the moment it takes a very long time to create a DG function space (in my distinct case a vector function space) for meshes which contains many cells.
For example:
from ... |
I want to know if there is any way to define the test and trial function in the way that I want instead of using the default functions. So if I want define the polynomial and basis and coefficient, how can I do it in Fenics? Here is the concept in general:
I am trying to solve stochastic partial differential equation w... |
I found the following simulation of an orbit given the semi-major axis of the ellipse, eccentricity, initial velocity, the mass of the object being orbited, and initial position of the orbiting satellite.
The program basically starts off with the following initial conditions:
$$
h \to stepSize\\
a \to semiMajorAxis\\... |
This might be a naive question, but when applying a implicit discretization to a PDE with a source term, should the source be averaged in time? For example if we take the diffusion equation with a non-linear source term,
$$
u_t = u_{xx}+s(x,t,u)
$$
We can apply the following central difference implicit scheme to the di... |
I just started working in a lab that is trying to design microfluidics devices to trap and manipulate colonies of E. coli cells. Given a 3D model of such a device created in Autodesk Inventor (or a similar program), and leaving out the cells, what would be the best way to simulate fluid flow through the channels of the... |
Starting with the advection equation in conservation form.
$$
u_t = (a(x)u)_x
$$
where $a(x)$ is a velocity which depend on space, and $u$ is a concentration of a species which is conserved.
Discretising the flux (where the flux $f=a(x)u$, is defined on the edges of the cells between mesh points) gives,
$$
u_t = \frac... |
I know I already posted this question and I thank you for your answers, but unfortunately I didn't find what I was looking for among them. Anyway now I'll rewrite the question more clearly, because before perhaps I've not been specific enough.
I've seen that there is a way to use the finite differences method, on a car... |
Looking at the stokes-iterative demo of FEniCS, after solving the linear system using
U = Function(W)
solver.solve(U.vector(), bb)
the solution U is split:
u, p = U.split()
Is there a function with which I can get the indices of Uwhich contain the u solution and the p solution?
For example, if U =[u1 p1 u2 p2,...] th... |
I want to determine the big and small frequency seperation from timeseries data for the sun. An excerpt of the data (timeseries and power series) is plotted below.
The power series is calculated in MATLAB like this:
n = length(t_obs);
dt = diff(t_obs(1:2));
y = fft(d_obs, n);
P = y .* conj(y)/n;
f = (0:n/2)/(n*dt);
f ... |
I've just started messing around with FEniCS. I am solving Poisson with 3rd order elements and would like to visualize the results. However, when I use plot(u), the visualization is just a linear interpolation of the results. I get the same thing when I output to VTK. In another code I am working with, I wrote a VTK ou... |
In the incompressible Navier-Stokes equations,
\begin{align*}
\rho\left(\mathbf{u}_t + (\mathbf{u} \cdot \nabla)\mathbf{u}\right) &= - \nabla p + \mu\Delta\mathbf{u} + \mathbf{f}\\
\nabla\cdot\mathbf{u} &= 0
\end{align*}
the pressure term is often referred to as a Lagrange multiplier enforcing the incompressibility con... |
Consider the semi-classical laser driving two-level atom, where the laser is treated classically and the atom is treated quantum mechanically. The effect of laser on the atom is a dipole coupling:
$$
i\,\dot\Psi(t)=[-\frac{\omega_0}{2}\sigma_z+\Omega(t)\cos(\omega t)\sigma_x]\Psi(t)
$$
where $\Psi(t)$ is the wavefuncti... |
kernel LPP is of form:
$$\min_{\alpha} \ \alpha^{T}KLK\alpha
\\
s.t. \ \alpha^{T}KDK\alpha = 1$$
and it eventually results in solving generalized eigenvalue problem below:
$$KLK \alpha= \lambda KDK \alpha$$
It has same eigenvalues as:
$$Ly=\lambda Dy$$
so here I solve the above eigen system knowing that:
$$y=K \alpha... |
Suppose I have a function which divides an $m$-bit unsigned integer $a$ by an $n$-bit unsigned integer $b$ and returns the quotient as a fixed-point number with $t$ fractional bits, truncating towards zero. So I have $f(a,b)= 2^{-t}\lfloor 2^t\cdot(a/b)\rfloor$, with $0 \leq a < 2^m$ and $0 < b < 2^n$.
What is the smal... |
I am trying to solve Ideal MHD equation using semi discrete methods, ENO spatial reconstructions and TVD RK time stepping. I am getting different steady state solutions with different temporal order. Is it correct?
|
I have a gas (assuming air) at $T$ = 500 K that enters a cylindrical pipe. The outlet target temperature is 330 K.
There will be heat transfer via: Forced convection from the gas to the inside of the pipe, conduction through the pipe thickness, convection to the ambient air environment ($T_\infty=300$ K) and radiation ... |
Let $A$ be a general symmetric matrix operator and $P$ be the unique orthogonal projection onto $\operatorname{Range}(A) = \operatorname{Null}(A)^\perp$.
Analytically, the system
$$Ax = Pb$$
should have a solution for any vector $b$. If we further stipulate that this solution lie in $\operatorname{Range}(A)$, the solu... |
I have the following semi-definite programming problem that I want to put in a standard form in order to estimate its order of complexity.
The problem is:
$$
\max_{x_{i,j}}\sum_{i \in \mathbf{F} }^{ }\sum_{j \in \mathbf{F} }^{ } w_{i,j}^{+}x_{i,j}+w^{-}\left(1- x_{i,j}\right )
$$
subject to the constraints
$$
C1: x_{i... |
I am running a mesh independence study. I start with Mesh 1 and proceed up to Mesh 4, each time doubling the number cells in the mesh. In parallel, I am comparing my computational results to experimental data. M. 1 shows poor results. M. 2 shows a significant improvement and a good match to experimetnal results. M. 3 a... |
I have a big file with 3 columns: density, dimension, value.
example:
10 0.3 200
10 0.4 300
20 0.3 250
20 0.4 320
...
I am trying to draw a 3d plot - mesh with mesh() function in octave, like this:
data = load ("file.txt");
mesh(data(:,1), data (:,2), data (:,3));
Problem I have is , I always get erro... |
Is there an rigorous proof of ENO-WENO schemes being non oscillatory?
|
I am looking for a simple method to compute potential flow (then non-viscous) around an obstacle. The method I am looking for must NOT use coordinate transformation, panel methods, finite element methods; it should work just on a standard cartesian grid and it should preferably use the finite differences method. There ... |
can you give me a link for a good and simple explanation of the Shortley-Weller finite-difference scheme? I tried to google it but all I get is (inaccessible) academic publications. I also tried reading the dedicated chapter (4.8) in the Wolfgang Hackbusch's book "Elliptic Differential Equations" but I found it rather... |
For the ODE
$$
\dot{x} = f(x)
$$
we have the 2-stage, second order SSP RK scheme (Shu, Osher, Gottlieb)
$$
x^{(0)} = x^n
$$
$$
x^{(1)} = x^{(0)} + \Delta t f(x^{(0)})
$$
$$
x^{(2)} = \frac{1}{2} x^n + \frac{1}{2}[ x^{(1)} + \Delta t f(x^{(1)})]
$$
$$
x^{n+1} = x^{(2)}
$$
What is the scheme in case of the following ODE
... |
I am trying to gather literature material to study how people propose to implement generic frameworks to solve partial differential equations in C++.
Despite my effort to search the web, the only thing I found so far is the Programmer's Guide of OpenFOAM, which in chapter 1 and 2 gives an idea of the mapping between ma... |
I am solving an elliptic boundary value problem on a subset of the rectangle [-1,1]x[-1,1]. The domain contains the line segment x=0, however this does not need to be a part of the boundary, so it is not aligned with the facets by default.
I want to compute the flux of a solution function across the line segment x=0. ... |
I'm trying to solve for electron and hole distribution function using Boltzmann equation with various scattering mechanisms. Since I land up with an integro-differential equation, analytical solution is very difficult. So, I am looking for general advice on where to start, and on how this problem could be solved using ... |
Well, in a numerical technique test we were given the following problem:
A physical phenomenon is modeled such that,
$F(f,d) = A(f)/d^2 + L$;
Where, $F$ is a function of frequency $f$ and distance $d$, and $L$ is random error.
Function $A(f)$ is unknown.
A function is given, to produce data set $(F,f,d)$. The function ... |
I'm looking for a mesh generation software that
is free and open source,
provides a sane scripting interface for domain specification,
works for complex geometries,
can generate 2D and 3D meshes,
What options do I have?
|
I plan to implement some optimization algorithms in Python, say to follow the sequence here or here.
What would be a systematic approach to testing the algorithms I write, using either well-known test datasets or creating my own?
|
I'm looking into moving some computations of mine to a data center to get more computation power. In the context of this process, I am getting confused by the differentiation of a computation node and a CPU.
Apparently some commercial software packages differentiate between the two. Is it correct to imagine each compu... |
The result I'm interested in is found within "Synchronization: A Universal Concept in Nonlinear Sciences" page $333$ figure $14.3$. The peculiar fragment is also provided at the end of this post.
So basically there is this dissipative coupling applied to one-dimensional array of initial conditions (horizontal axis) whi... |
Problem
I'm building a simple MPI Send/Recv hello world in Fortran and am running into an odd error. I want to make sure I'm not missing anything trivial before blaming OpenMPI or gfortran.
In the code below I send a simple array between two MPI processes. The first few entries of the data aren't sent correctly. The... |
Assume we have few terms contributing to element tensor and each requires different quadrature degree to be integrated exactly. Does it generally worth using different quadrature degrees for each term or should one use the single one with highest degree for all terms?
I would guess that for sufficiently large $N$ (numb... |
I am interested in implementing an moving mesh for an advection-diffusion problem. Adaptive Moving Mesh Methods gives a good example of how to do this for Burger's equation in 1D using finite-difference. Would someone be able to offer a worked example on solving the 1D advection-diffusion equation using finite-differen... |
I have COMSOL and the CFD package therein available, which provides me with an all-in-one solution for solving CFD problems. I have modeled and solved the geometry shown in the pictures below, which took me roughly one hour.
Now (just for kicks) I want to do the same in FEniCS and see how that goes. At this point, I am... |
Which is the preferred way to import into a FEniCS (python) program a mesh which was generated in an external generator which provides sub-domain and boundary markers? I was using MeshData->MeshFunctions for that purpose, but switching to parallel mpi program I've found that those MeshFunctions are not transferred to ... |
I have a 3x3 covariance matrix (so, real, symmetric, dense, 3x3), I would like it's principal eigenvector, and speed is a concern. Is there a fast algorithm for this specific problem? I've seen algorithms for calculating all the eigenvectors of a real symmetric matrix, but those routines seem to be optimized for large ... |
I use RBF kernel function to implement one kernel based machine learning algorithm(KLPP),
the resulting kernel matrix $K$ $$K(i,j)= \exp\left({\frac{-(x_{i}-x_{j})^2}{ \sigma_{m}^2}}\right)$$
is shown to be extremely ill-conditioned.The condition number of L2-norm comes $10^{17}-10^{64}$
Is there any way to make it we... |
For model reduction, I want to compute the left singular vectors associated to the - say 20 - largest singular values of a matrix $A \in \mathbb R^{N,k}$, where $N\approx 10^6$ and $k\approx 10^3$. Unfortunately, my matrix $A$ will be dense without any structure.
If I just call the svd routine from the numpy.linalg mod... |
What are the strategies one can use to keep maximum number of non attacking pieces (all pieces other than pawn) on an $n\times n$ board? It is like an $n$-queen problem but here instead of only queen other pieces also come into picture. Like if I have a knight, queen, king, bishop, knight what are the best strategies t... |
Currently the way I compute histograms for data is by generating grid in $N$ dimensions (where $N$ is the dimension of the data) and searching through the $M$ data points in each dimension to see in which bin each one of them fits.
This is the same as an exhaustive search and takes very long if $N$ and $M$ are large (i... |
I am attempting to calculate temperature of section of rock in the earth as a function of vertical position in the rock and time. Along with it I am calculating the heat flow through the rock as a function of vertical position in the rock and time. Note that this is a one-dimensional examination of the problem- imagi... |
I need to assemble a matrix (in dense form, of moderate size, say dimension 1000) which is most easily expressed as the product of several (4) sparse matrices. These matrices are most easily expressed by their action (a matrix-vector multiplication routine), although I suppose it's not too hard to write them out explic... |
I'm using Trilinos for a problem and I have an Epetra_MultiVector object with 1 vector of length m*n*nFrames. I need to turn it into an Epetra_MultiVector object with nFrames of length m*n. The first m*n entries need to go into the first vector, the second into the second vector and so on.
I have this working fine with... |
I am following the approach of Hundsdorfer from Numerical solution of time-dependent advection-diffusion-reaction equations in which they introduce adaptive upwinding. The method can adapt from pure upwind ($\kappa=1$) to pure central ($\kappa=0$) discretisation for the advection term (N.B. the diffusion term is always... |
I am trying to implement a program the numerical method to solve ODE called Block BDF as explained in this article: https://waset.org/journals/waset/v38/v38-49.pdf
As it is variable step-size, I need to compute the LTE (local truncation), that is $LTE=y_{n+2}^{(5)}-y_{n+2}^{(4)}$. There is a formula in the article for ... |
For a relatively simple Markov chain Monte Carlo process, such as using Metropolis to find calculate thermal averages for an Ising model, how is it possible to determine whether quantities have converged?
If one knows the autocorrelation time, this seems relatively simple. You just run it for a sufficiently high multip... |
I have to present a working 3D simulation of an arbitrary comet in a close proximity to the Sun or to the Jupiter. In specific, I want to simulate comets D/1993 F2 and C/2011 W3, using the theoretical model I have proposed in my recent reseach. My deadline is 1st April 2014.
As I see it now - I make my comet of tons of... |
I am a new Matlab user and wondering if there is any built-in operator or function which could convert the hour of the year into calendar date and time for that year. For example,
Hour 0 in year 2000 is 2000-01-01 00:00:00
Hour 1 is 2000-01-01 01:00:00
and so on.
|
Is there any way to implement an element wise contraction force (i.e., a force which causes the FEs themselves to contract onto themselves)? For example this would happen when something dehydrates. Preferably with first order tetrahedral elements, but if the only way to do it is have a vertex in the centre of the eleme... |
I have a two iterative method for approximating the inverse of given square matrix $A$ whose error terms are given as follows
Error estimate of method $1$:
$\lVert A^{-1} - X_{k}\rVert \leq q^{2^{k+1}-3}(1-q^{2^{k+1}})^{-1}\|R_{0}\|$, $0<q<1$, $k = 0, 1,\dots$
$R_{0} = I - AX_{0}$ , $X_{k}$ is the sequence of approxi... |
I'm a bit confused by the vast amount of literature on solving eigenvalue problems. I have a sparse (large) matrix which I have already factored (by Cholesky or LDU). I would like to compute few eigenvectors of this matrix associated to the smallest eigenvalues. Is there any method that is :
1) efficient in terms of co... |
I'm trying to understand and implement panel methods for a two-dimensional airfoil.
I haven't found yet a very detailed explanation on how to implement it, and there are some things I don't' still understand.
Here it is how I would implement it, I know it is only one of many possible implementations, please let me kno... |
I'm modelling a tidal harbour in Ansys Fluent and want to include a turbulence model in my simulation. I want to predict the water movements around a pontoon which is situated in the harbour. Which turbulence model should I use, a $k$-$\varepsilon$ model or a $k$-$\omega$ model?
The harbour is modelled as a rectangular... |
I know that ATLAS is able to optimize itself for the machine it is compiled on and thus maximum benefits are found by compiling from source. Is there any benefit to compiling LAPACK from source? It would be much easier to just install the prebuilt package.
|
Suppose a function $f$ can be computed such that the bound on the relative error is $R$ i.e. $f^-(x) = f(x)(1+r)$ where $f^-$ and $f$ are respectively the
computed and exact value $f$ and $|r| \leq R$
I want to bound the relative error of the following derivative approximations
in terms of $h$ and $R$ for a general $... |
I want to determine the spectral radius of a large non-symmetric matrix $A$ whose dominant eigenvalues are a pair of complex conjugates. My first instinct was to use a power iteration with a starting vector $x$ in the complex plane. I do recall that this method tends to have trouble when the dominant eigenvalue is co... |
I have been reading about Tetrahedral Mesh Refinement algorithms, but the literature covering this is very wide. My work involves implementation of different 3D computational geometry algorithms, and I have often experienced that an algorithm with very good theoretical complexity may be an implementational nightmare. A... |
For an implicit scheme I want to solve system $Ax=B$, where $A$ is a non-symmetric square matrix. I want source codes of large sparse matrix solvers (e.g. LU-SGS) to use in my code which is in C language. I have tried preconditioned GMRES code from this site but its getting slow and takes huge amount of memory(sometime... |
I have one algorithm that generates a feasible solution to a linear programming problem. However, it is very likely that this is not a corner point. This makes it not suitable for direct use as an initial feasible solution for a bounded Simplex solver. How can I efficiently find a corner point from this solution that I... |
I use matlab/fortran to deal with some large eigenvalue problem (FEM type).
For example, I use spalloc and eigs to declare and solve the problem in Matlab,
could anyone give some advice on how can I do it in Fortran? any routine like spalloc/eigs?
|
Is there a fast nearest neighbor search algorithm that generates the nearest neighbors, not based on Euclidean distances but based on geographic distances over a set of latitudes/longitudes. The fast nearest neighbor search based on Euclidean distances though is based on spatial indexing using R-Trees, K-D Trees etc. W... |
Following Hundsdorfer approach the finite volume discretisation of the advection-diffusion equation (conservative form) on non-uniform cell centered grid can be written as,
$$
w_j^{\prime} = \frac{w_{j-1}}{h_j}\left( \frac{ah_j}{2h_{-}} + \frac{d}{h_{-}} \right) - \frac{w_j}{h_j}\left( \frac{a}{2}\left[ \frac{h_{j-1}}{... |
Has anyone here used double precision scientific computing with new generation (e.g. K20) GPUs through Python?
I know that this technology is rapidly evolving, but what is the best way to do this currently? GPU is out of scope for the popular scientific Python libraries numpy and scipy, and I had wanted to use theano ... |
I am not trying to start a Language flame war here. I merely want to ask a simple question:
Is there a good resource for comparisons for languages for scientific computing?
By comparisons, I mean on the grounds of:
Number of stable libraries which can be used.
Programming Effort
Speed
etc.
I found a couple of compariso... |
I am currently developing a domain decomposition method for the solution of the scattering problem. Basically I am solving a system of Helmholtz BVPs iteratively. I discretize the equations using finite element method over triangular or tetrahedral meshes. I'm developing the code towards my Phd thesis. I am aware of so... |
I want to incorporate matrix solver into my program. Is it possible to separate out any library of matrix solver from PETSc? I am working in C language. It will be very helpful if I get any library without installing PETSc. If I get it, then I will just add those source codes and will use it.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.