Changeset 8337


Ignore:
Timestamp:
Feb 15, 2012, 12:11:18 PM (13 years ago)
Author:
pittj
Message:

the constants added from experiments results

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/utilities/mem_time_equation.py

    r8330 r8337  
    44TEST_CON = 'test_constants'
    55
    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
     7test_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
     12system_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}
    915
    1016DEFAULT_HOST = 'tornado.agso.gov.au'
     
    7278    return result
    7379       
    74 
     80#using the constants from the experiments into memory and time the Time and Memory are estimated
    7581def time_equation(**kwargs):
    7682   
    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 
    8189    return time
    8290
    8391
    8492def space_equation(**kwargs):
    85     memory = 10
     93    memory = kwargs['constants']['tri_a_S'] * kwargs['num_tri'] +
     94             kwargs['constants']['cons_S']
    8695    return memory
    8796
Note: See TracChangeset for help on using the changeset viewer.