コード例 #1
0
        public override object Read(string path)
        {
            var rawData = new TopoSetDictData();
            string txt;
            using (var reader = new StreamReader(path))
            {
                txt = reader.ReadToEnd();
            }

            //var grammar = new OpenFoamGrammar();
            //var parser = new Parser(grammar);
            //var tree = parser.Parse(txt);

            //foreach (ParseTreeNode rootEntryNode in tree.Root.FindDictEntries(null))
            //{
            //    var identifier = rootEntryNode.GetEntryIdentifier();
            //    switch (identifier)
            //    {
            //        //case "turbineArrayOn":
            //        //    rawData.TurbineArrayOn = rootEntryNode.GetBasicValBool();
            //        //    break;
            //    }
            //}
            return rawData;
        }
コード例 #2
0
        public override object Read(string path)
        {
            var    rawData = new TopoSetDictData();
            string txt;

            using (var reader = new StreamReader(path))
            {
                txt = reader.ReadToEnd();
            }

            //var grammar = new OpenFoamGrammar();
            //var parser = new Parser(grammar);
            //var tree = parser.Parse(txt);

            //foreach (ParseTreeNode rootEntryNode in tree.Root.FindDictEntries(null))
            //{
            //    var identifier = rootEntryNode.GetEntryIdentifier();
            //    switch (identifier)
            //    {
            //        //case "turbineArrayOn":
            //        //    rawData.TurbineArrayOn = rootEntryNode.GetBasicValBool();
            //        //    break;
            //    }
            //}
            return(rawData);
        }
コード例 #3
0
 public AblGeometryData()
 {
     BlockMesh = new BlockMeshDictData();
     TopoSet = new TopoSetDictData();
 }