Questions tagged [simulation]

Simulation is the process of mimicking the behaviour of a real physical process or system using a representative model.

Filter by
Sorted by
Tagged with
0 votes
1 answer
1k views

Three body problem in C++

I am in a begginers programming course and we got a little project. I chose to simulate the three body problem using the Euler method. Even though the system is chaotic there are some special cases ...
Maxi's user avatar
  • 1
2 votes
0 answers
227 views

Initial conditions of nbody problem

Note: I have edited the original question to try to be clearer. I'm trying to simulate a gravitational nbody problem with a Barnes-Hut algorithm, in which the bodies start in a homogeneous sphere ...
RedPointyJackson's user avatar
1 vote
1 answer
97 views

Convergence Criteria for Two Fluid Flow Solver

Which one of the following is suitable for judging convergence in Two-Fluid Flow Solver? 1) Absolute Residual (L^2-Norm). 2) Relative Residual. 3) Fraction Change in Velocity, Pressure and Volume ...
Hanumat's user avatar
  • 21
3 votes
1 answer
587 views

Mobile robot path following using model predictive control (MPC)

I'am trying to implement a path following algorithm based on MPC (Model Predictive Control), found in this paper : Path Following Mobile Robot in the Presence of Velocity Constraints Principle: ...
Inounx's user avatar
  • 51
1 vote
0 answers
137 views

CFD implementation in software [closed]

I've been learning CFD theory for 4 months (which includes FEA, FDM AND FVM) and now I want to start running simulations. As a novice to CFD software, I would appreciate some advice on where to start, ...
vraj chauhan's user avatar
2 votes
1 answer
176 views

Methods for solving $x'=Ax+b$ for small, sparse, singular $A$

I am in the process of building a robotics physics engine. I have been using the Linear ODE $x' = Ax + b$ for the core of my physics integration, but have never found a really good solution method for ...
computer-whisperer's user avatar
0 votes
3 answers
1k views

Simple Simulation Examples in Computational Fluid Dynamics

I would like to incorporate a CFD topic in a project I currently have. The deadline is a little less than a month from now. Basically, what I would like to do is solve some equations and simulate ...
Inquisitor101's user avatar
4 votes
2 answers
806 views

Help understanding and implementing fast multipole method for N-body

I've been trying to understand the Fast Multipole Method but not really getting anywhere. It seems like the fastest mainstream N-body simulation algorithm, and I would like to implement it in an ...
Magnus Wolffelt's user avatar
2 votes
1 answer
88 views

$(1+x^M)^{1/M}$ need to be able to calculate any order derivatives vs. $x$ and $M$ for $x\ge 0$ and $M\gt 2$

cannot delete my own question, so I try to overwrite it instead...
user avatar
1 vote
0 answers
66 views

Solving a nonlinear problem with CDF

I'm trying to solve this problem: $\begin{cases} \partial_t E=-k\left([f(\rho)-i.\left[\delta+\frac{1}{2}a\left[\dfrac{\nabla^2_{\bot}}{4}+1-\rho^2\right]\right]]E - 2CP\right)\\ \partial_t P=-\...
alxg's user avatar
  • 166
5 votes
3 answers
1k views

What do C, C++ and Java have that Fortran 2003 don't? [closed]

As you may know, Fortran is widely and longly (?) used in science. I've heard a lot of people saying that we natural scientists should all migrate to C++ or Java. I've seen people increasingly ...
Leonardo Castro's user avatar
2 votes
1 answer
78 views

Is it common or to use objects for calculation of pair interactions in physics and chemistry simulations?

When simulation atoms, molecules, colloids, autc., are there programs that define each interacting unity as an object in the OOP sense? In my own case, I've been simulating magnetic nanoparticles in ...
Leonardo Castro's user avatar
2 votes
2 answers
185 views

Is model-view-controller useful pattern useful to build scientific simulation programs?

I work with scientific simulation, but what I like the most in programming is creating graphical user interfaces and 2D or 3D outputs to visualize the evolution of the simulations. I know most input ...
Leonardo Castro's user avatar
0 votes
2 answers
7k views

Simple java gravity simulation

I'm trying to write a class that uses Newton's law of Gravitation to work out the field of a planet. I've tested my code by inputting values for Earth, for purely vertical motion, so I should get g = -...
user13948's user avatar
  • 133
3 votes
1 answer
659 views

How to model the mixing of two fluids in a container?

In the context of a research project of mine, I am faced with the difficult task of modeling the mixing of two fluids in a container. I would like to achieve the following: Given a container (...
Raoul's user avatar
  • 133
2 votes
0 answers
52 views

Limitations of particle in cell method for high density plasma

Are there any limitations of particle in cell (PIC) method for high density plasma? To be more specific, is modeling of a narrow channel of high density plasma possible or are there any limitations ...
ziky's user avatar
  • 121
3 votes
1 answer
484 views

Finite difference scheme for 2D sound propagation

I am simulating the sound wave propagation in non-rectangular and asymetric spaces using finite-difference method. I presume linear acoustics equations to be enough (i.e. $\Box p = 0$, $\Box \vec{v} = ...
Victor Pira's user avatar
1 vote
2 answers
3k views

Good desktop PC for molecular dynamics simulations

I want to build a new desktop PC for MD simulations of relatively simple protein/carbohydrate systems using mainly GROMACS and Amber force field. No ab initio or QM-MM simulations are intended for now....
user3277482's user avatar
1 vote
0 answers
1k views

BiCopter simulation in Matlab

I derived a bicopter dynamical model with two servos and two BLDC motors. And now am trying to simulate it using Matlab. As base for simulation I used this paper and this code Unfortunately, the ...
Andrew's user avatar
  • 11
1 vote
0 answers
58 views

Software to simulate behavioral economic models?

I am looking for a way to simulate behavioral economic models to illustrate the effects of changing parameters. I am familiar with statistical analysis (especially R), but I only have few programming ...
Ander M. Morris's user avatar
3 votes
1 answer
133 views

Solve implicit ODE numerically in orbit simulation

I'm trying to plot the orbit of a compact binary star system where general relativistic effects become important. I'm using post-Newtonian approximation and I want to solve the orbit numerically based ...
Sam's user avatar
  • 153
0 votes
1 answer
1k views

How to calculate divergence and vorticity from a velocity field using finite elements

I am in the process of writing a finite element solver for the Navier-Stokes equations and am having trouble computing things like the divergence and vorticity correctly. Currently to compute the ...
James's user avatar
  • 1,889
6 votes
2 answers
591 views

Implementing the pressure correction method using finite elements

Ok so I am nearing the completion of my finite element Navier-Stokes solver that uses the $\theta$-method for time stepping and the pressure correction method for the pressure. I am following the ...
James's user avatar
  • 1,889
1 vote
0 answers
505 views

ANSYS Fluent: Defining External Force on a Cell Zone [closed]

I am using ANSYS Fluent 15 to simulate a case of fluid flow. In my case, I have three cell zones in my simulation, let's call them top, middle and bottom. My requirement is to put a vertical constant ...
Tanmay Agrawal's user avatar
3 votes
1 answer
962 views

Pressure projection method boundary conditions

When using the pressure projection method to solve the incompressible Navier-Stokes equations do we apply Neumann boundary conditions for pressure only where there are associated no-slip velocity ...
James's user avatar
  • 1,889
2 votes
1 answer
134 views

CFD turbulence modelling mean pressures vs peak pressures

I have been experimenting with using Autodesk CFD to investigate facade/ cladding pressures on a (rectangular) building, comparing results with cladding/ facades pressures pressures from design codes ...
Jon's user avatar
  • 121
-1 votes
1 answer
392 views

How to initiate spirals in this model?

I am trying to reproduce Tang & Othmer paper which is related to excitations and oscillations in G-protein model in Dictyostelium discoideum, an amoeba species. The mathematical model in the paper ...
dexterdev's user avatar
4 votes
2 answers
131 views

Can other running processes harm the performance of my simulation?

I don't have an high-end machine on which run my simulation (Python + C extensions, based on numpy for calculations) Thus I intend to run the program on my PC, for several hours. I won't use the ...
seldon's user avatar
  • 143
0 votes
2 answers
164 views

Relationship between FEM solutions of PDE with different spatial resolutions

I use FEM to simulate deformations of elastic objects for animation applications in computer graphics. The governing equation is generally with the form: $$ \mathbf{M}\ddot{\mathbf{u}} +\mathbf{C}\dot{...
Fei Zhu's user avatar
  • 335
1 vote
0 answers
134 views

Conservation at grid interface in adaptive mesh refinement

I am using adaptive mesh refinement to solve one dimensional inviscid Burgers equation. However I am facing some difficulty to handle grid interfaces which are not uniform (coarse-fine grid interface)....
Tanmay Agrawal's user avatar
3 votes
2 answers
2k views

GPU-enabled Lattice Boltzmann solvers?

Is anybody aware of any GPU-enabled Lattice Boltzmann solvers (preferably on C++/OpenCL and open-source) that would be recommended? I have found Advanced Simulation Library, but it seems to be very ...
user1876484's user avatar
0 votes
1 answer
443 views

How to generate movie of the simulation done in LAMMPS? [closed]

I simulated nanowire deformation using LAMMPS and visualized it using VMD in Centos 6.5. But I'm not able to generate .jpg image file or the simulation movie. How can I proceed??
Rishabh Sethi's user avatar
3 votes
2 answers
731 views

Should a colorbar have constant values throughout a simulation?

The default option for matplotlib's pcolormesh (also true for VisIt and I think also true for Matlab) is to allow the maximum and minimum of a colorbar vary. Which ...
Ryan Farber's user avatar
1 vote
1 answer
729 views

Hypersonic flow in Fluent

I am working in my graduating project about the hypersonic flow, particularly the properties of the air behind a strong shock wave, I try to do a simulation for that process in Fluent but I don't know ...
Navaro's user avatar
  • 156
2 votes
2 answers
586 views

Simulating a Simple Pendulum - Increasing amplitude on each swing?

I am trying to animate a dampened pendulum using RK4 for a highschool project. The equations that describe the dampened system are as follows: (from http://www.maths.tcd.ie/~smurray/Pendulumwriteup....
Fidem's user avatar
  • 23
4 votes
1 answer
641 views

Surface charge boundary conditon for Poisson-Boltzmann solver

I want to set up a surface charge boundary condition for the simulation of semiconductor and electrolyte interface. The 2D-Poisson example and surface charge boundary condition are shown in following ...
Chean Lee's user avatar
2 votes
2 answers
1k views

How to interpret/convert density in 2D simulations?

Density has units of $kg/m^3$. In simulations often scaling is done to deal with non-dimensional values, so the physical density is converted to the non-dimensional density so that it can be used in ...
zed111's user avatar
  • 201
2 votes
3 answers
347 views

Value of density when there are no or very few neighbours in SPH simulation

I am trying to implement SPH using the directions shown in this paper. The density needs to be updated using the formula $$ \rho(\mathbf{x}_i)=\sum_j m_jW_\text{default}(\mathbf{x}_i-\mathbf{x}_j,h) ...
punitjajodia's user avatar
2 votes
0 answers
94 views

Tracking the speed of 2D oscillations on a lattice

I wrote a Monte Carlo simulation of the 2D Lotka-Volterra model on a discrete lattice (with periodic boundary conditions). A video that I produced (which images the system after some number of monte ...
Loonuh's user avatar
  • 253
3 votes
0 answers
118 views

Is it normal to expect the error of simulation of a damped harmonic oscillator to decrease as the damping factor decreases?

I am simulating a damped harmonic oscillator using the RK4 method of numerical integration. I am comparing the simulated results with the analytical ones (for the free evolution case) and obtaining ...
turnip's user avatar
  • 263
2 votes
1 answer
194 views

Poisson solver diverged

My 2D-Poisson solver is build for simulation of semiconductor. The algorithm is Gauss-Seidel iterative method. If I use simple PN junction for simulation testing, it diverged while I applied high ...
Chean Lee's user avatar
9 votes
3 answers
2k views

What are the differences between CFD simulations and realistic ocean/atmosphere model simulations?

The field of computational fluid dynamics (CFD) is dedicated to solving the Navier-Stokes equations (or some simplification of them). A subset of CFD, ocean and atmospheric models numerically solve ...
arkaia's user avatar
  • 201
3 votes
2 answers
2k views

Using Trilinos and/or Petsc in Windows with Visual Studio?

I am currently working on a project of building a simulator. Up till now I have mostly played around with very simple examples, but with regards to the future I have been thinking that it might be a ...
Axiom's user avatar
  • 131
1 vote
1 answer
114 views

Confusion in modeling and computing [closed]

I come from a computer graphics background without any professional in computational science. But I find my job(game engine development) being related to this field. May I ask some general questions ...
TheBusyTypist's user avatar
4 votes
1 answer
1k views

Numerically solve a PDE in Python with a term calculated by coarse-graining

I'm trying to solve a PDE in Python of the form, $\dfrac{\partial c(\mathbf{x}, t)}{\partial t} = \mathrm{D} \nabla^2 c(\mathbf{x}, t) -\gamma \rho(\mathbf{x}, t) c(\mathbf{x}, t)$ where $c$ ...
EddieJessup's user avatar
2 votes
2 answers
123 views

Simulating interaction of Smart Fluids with Solids

Is it possible to simulate interaction of Smart Fluids with Solids? Is there a software capable of doing so? What I Know: The two software that I know of are Autodesk Simulation Mechanical and ...
Prabal Gupta's user avatar
6 votes
1 answer
530 views

Lagrange Multipliers in Multi-body Finite Element Code

I'm working on a Multibody dynamics code using the finite element method to simulate the behaviour of flexible beams (using this paper if anyone is interested/ it is relevant). I'd like to model ...
Peter Greaves's user avatar
2 votes
2 answers
235 views

Which processor should I consider buying for a desktop built for scientific computing?

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: ...
bzm3r's user avatar
  • 669
4 votes
1 answer
63 views

Iteratively refine bounds on exp for Metropolis criterion

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 ...
Grieverheart's user avatar
0 votes
1 answer
73 views

Particle Collision to Static paticles

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 ...
Devashish Das's user avatar