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

learn more… | top users | synonyms

0
votes
0answers
10 views

Simulation of Parabolic Cylinder Function $U(a,x)$ for complex arguments

According to Wolfram Mathworld $U(a,x) = D_{-a-1/2} (x),$ and $D_v(z) = 2^{v/2}e^{-z^2/4}U(-\frac{1}{2}v, \frac{1}{2}, \frac{1}{2}z^2)$, Using the GNU Scientific Library (GSL) it seems possible ...
0
votes
1answer
118 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 ...
3
votes
0answers
104 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 ...
1
vote
1answer
39 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 ...
4
votes
0answers
41 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: ...
0
votes
0answers
41 views

Rotation of acceleration data into earth frame using quaternions [closed]

I am working on a project to find displacement using accelerometer and gyroscope. The problem I am facing is, when I rotate the acceleration data measured in body frame to the earth or initial frame ...
1
vote
0answers
69 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, ...
0
votes
0answers
17 views

Methods for discriminate model characteristics

Reading this recent trend, I was wondering if there are available methods to detect the qualitative features of experimental data, in order to get some clue about how to model those data. For ...
3
votes
1answer
132 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 ...
0
votes
3answers
155 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 ...
2
votes
1answer
54 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 ...
3
votes
1answer
80 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...
0
votes
0answers
46 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 ...
6
votes
3answers
268 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 ...
2
votes
1answer
41 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 ...
2
votes
2answers
79 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 ...
1
vote
0answers
70 views

Numerical inversion involved confluent hypergeometric (1F1) (or Kummer function)

Edit: the question is solved ! Thank you for your time ! This problem arises when I tried to compute the valua of Asian call otions using Inverse Laplace transform method. Let $r=\mu = 0.15; \sigma ...
0
votes
0answers
17 views

Converting events with irregular arrival times into a continous signal (1st, 2nd and 3rd order)

I got events coming in at irregular intervals. From these I need to emit the number of events arrived and the expected first and second derivative over some specified measurement period P. So ...
0
votes
2answers
79 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 = ...
3
votes
1answer
76 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 ...
2
votes
0answers
23 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 ...
3
votes
1answer
201 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} = ...
1
vote
2answers
303 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 ...
1
vote
0answers
135 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 ...
0
votes
0answers
42 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 ...
0
votes
0answers
21 views

validating results of a hypersonic flow

I am trying to simulate the air flow behind a strong shockwave. The air mixture in nonequilibrium contains only 5 species(N2, O2, NO, O and N) where the three molecules are in vibrational ...
0
votes
0answers
86 views

Color Coding Gradient in Matlab

I am trying to visualize bond strength via a color gradient in matlab (such that a high energy would be in red, low in blue). The underlying data structure, bond locations, and bond energies are ...
3
votes
1answer
63 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 ...
0
votes
1answer
155 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 ...
5
votes
1answer
154 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 ...
1
vote
0answers
83 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 ...
2
votes
1answer
158 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 ...
2
votes
1answer
78 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 ...
-1
votes
1answer
239 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 ...
4
votes
2answers
109 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 ...
0
votes
0answers
19 views

How to do numerical simulation of Impulsive Differential system?

I am working on a research paper on Plant-Pest-Natural enemy model. I want to plot graphs for my system as given below. I know how to simulate differential system using ODE45 command and then using ...
0
votes
2answers
121 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}} ...
0
votes
0answers
56 views

modify COMSOL codes

I am a physics student and I am planning to simulate microfluidics and capillary waves on a fluid film and I decided to use COMSOL. I am not so much aware of COMSOL abilities. I wonder if I can ...
1
vote
0answers
65 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 ...
2
votes
2answers
270 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 ...
0
votes
1answer
94 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??
0
votes
0answers
58 views

How come in distributed computing 10X 32GB systems doesn't equal 1 320GB system

is there a mathematical formula to relate how much memory per node is lost when you use parallel computing? for example, when running COMSOL (FEA, MUMPS) in parallel, a problem that would require ...
3
votes
2answers
174 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 ...
1
vote
1answer
202 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 ...
1
vote
2answers
148 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 ...
4
votes
1answer
124 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 ...
2
votes
2answers
158 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 ...
1
vote
1answer
58 views

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

Sorry for the noob question. I am trying to implement SPH using the directions shown in this paper. The density needs to be updated using the formula The smoothing kernel is If there are no ...
3
votes
0answers
74 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 ...
3
votes
0answers
54 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 ...