Introduction
Introduction Statistics Contact Development Disclaimer Help
tadded lid driven cavity test - ns2dfd - 2D finite difference Navier Stokes sol…
git clone git://src.adamsgaard.dk/ns2dfd
Log
Files
Refs
LICENSE
---
commit 863e92eefbec760f48edd317013494c76d2972de
parent 83e65a0e85e82f9cb7c48f0f1bbbeaf2dbb319c9
Author: Anders Damsgaard <[email protected]>
Date: Thu, 6 Mar 2014 16:06:51 +0100
added lid driven cavity test
Diffstat:
A lid_driven_cavity.py | 13 +++++++++++++
1 file changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/lid_driven_cavity.py b/lid_driven_cavity.py
t@@ -0,0 +1,13 @@
+#!/usr/bin/env python
+import ns2dfd
+
+sim = ns2dfd.fluid()
+sim.U[:,-1] = 1.0
+sim.U[:,-2] = 1.0
+sim.reynolds_number(1000)
+sim.end_time(20.0)
+sim.boundary_conditions(2, 2, 2, 2)
+sim.run()
+sim.read(sim.sim_id + '00004.dat')
+print(sim.U)
+sim.writeVTK()
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.