Changeset 8337
- Timestamp:
- Feb 15, 2012, 12:11:18 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/utilities/mem_time_equation.py
r8330 r8337 4 4 TEST_CON = 'test_constants' 5 5 6 test_constants = {'tri_a':1.0, 'tri_b': 10.0} 7 system_constants = {'tornado.agso.gov.au':{'tri_a':100.0, 'tri_b': 20.0}, 8 TEST_CON:test_constants} 6 #these constants come from the Major Variables script that ran on tornado in serial 7 test_constants = {'tri_a_T':0.0000395, 'tri_b_T': 0.29575152, 8 'tim_a_T':0.03804736,'fil_a_T':0.005928693,'cons_T':-135.0661178, 9 'tri_a_S':0.00369572,'cons_S':331.7128095} 10 11 #these constants come from the Major Variables script that ran on tornado in serial 12 system_constants = {'tornado.agso.gov.au':{'tri_a_T':0.0000395, 'tri_b_T': 0.29575152, 13 'tim_a_T':0.03804736,'fil_a_T':0.005928693,'cons_T':-135.0661178, 14 'tri_a_S':0.00369572,'cons_S':331.7128095},TEST_CON:test_constants} 9 15 10 16 DEFAULT_HOST = 'tornado.agso.gov.au' … … 72 78 return result 73 79 74 80 #using the constants from the experiments into memory and time the Time and Memory are estimated 75 81 def time_equation(**kwargs): 76 82 77 time = kwargs['constants']['tri_a'] * kwargs['num_tri'] 78 #time = (1*num_trit + 2*tri_areat + 3*time_lengtht + 79 # 4*time_stept + 5*water_deptht + 6*velocityt 80 # + 7*per_water_covert +8*cpust + 9*cpu_speedt + 10) 83 time = kwargs['constants']['tri_a_T'] * (kwargs['num_tri']) ** 2 + 84 kwargs['constants']['tri_b_T'] * kwargs['num_tri'] + 85 kwargs['constants']['tim_a_T'] * kwargs['finaltime'] + 86 kwargs['constants']['fil_a_T'] * (kwargs['finaltime']/kwargs['yieldstep']) + 87 kwargs['constants']['cons_T'] 88 81 89 return time 82 90 83 91 84 92 def space_equation(**kwargs): 85 memory = 10 93 memory = kwargs['constants']['tri_a_S'] * kwargs['num_tri'] + 94 kwargs['constants']['cons_S'] 86 95 return memory 87 96
Note: See TracChangeset
for help on using the changeset viewer.