Exemplo n.º 1
0
def InputRead(fname):

    if fname[-4:] == '.pro':
        props = fileParser(fname)
    else:
        props = fileParser(fname + '.pro')

    dataFileName = props.input

    nodes = NodeSet()
    nodes.readFromFile(dataFileName)

    elems = ElementSet(nodes, props)
    elems.readFromFile(dataFileName)

    dofs = DofSpace(elems)
    dofs.readFromFile(dataFileName)

    globdat = GlobalData(nodes, elems, dofs)

    globdat.readFromFile(dataFileName)

    globdat.active = True
    globdat.cycle = 0
    globdat.prefix = os.path.splitext(fname)[0]

    return props, globdat
Exemplo n.º 2
0
def InputReader( argv ):

  options, remainder = getopt.getopt( argv , 'a:k:v', ['all','author='])

  proFileName  = argv[1]
  props        = fileParser( proFileName )

  dataFileName = props.input

  nodes = NodeSet()
  nodes.readFromFile( dataFileName )
  
  elems = ElementSet( nodes , props )
  elems.readFromFile( dataFileName )
  
  dofs = DofSpace( elems )
  dofs.readFromFile( dataFileName )

  globdat = GlobalData( nodes, elems, dofs ) 

  globdat.readFromFile( dataFileName )

  globdat.active = True
  globdat.cycle  = 0
  globdat.prefix = os.path.splitext(proFileName)[0]
	
  return props,globdat
Exemplo n.º 3
0
def InputReader(argv):

    options, remainder = getopt.getopt(argv, 'a:k:v', ['all', 'author='])

    proFileName = argv[1]
    props = fileParser(proFileName)

    dataFileName = props.input

    nodes = NodeSet()
    nodes.readFromFile(dataFileName)

    elems = ElementSet(nodes, props)
    elems.readFromFile(dataFileName)

    dofs = DofSpace(elems)
    dofs.readFromFile(dataFileName)

    globdat = GlobalData(nodes, elems, dofs)

    globdat.readFromFile(dataFileName)

    globdat.active = True
    globdat.cycle = 0
    globdat.prefix = os.path.splitext(proFileName)[0]

    return props, globdat