资源简介
物质点法开源代码 uintah-1.2.0,不错的开源代码,架构很庞大,最新版本为2.1.0
代码片段和文件信息
#! /usr/local/bin/python
#
# For more information please see: http://software.sci.utah.edu
#
# The MIT License
#
# Copyright (c) 2004 Scientific Computing and Imaging Institute
# University of Utah.
#
# License for the specific language governing rights and limitations under
# Permission is hereby granted free of charge to any person obtaining a
# copy of this software and associated documentation files (the “Software“)
# to deal in the Software without restriction including without limitation
# the rights to use copy modify merge publish distribute sublicense
# and/or sell copies of the Software and to permit persons to whom the
# Software is furnished to do so subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED “AS IS“ WITHOUT WARRANTY OF ANY KIND EXPRESS
# OR IMPLIED INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM DAMAGES OR OTHER
# LIABILITY WHETHER IN AN ACTION OF CONTRACT TORT OR OTHERWISE ARISING
# FROM OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.
#
# File: cd_templates_fields.py
# Author: Michael Callahan
# Created: Sept 2001
#
# Description: create field templates
import os
from sys import argv
ufields = [“LatVolField“
“TetVolField“
“HexVolField“
“TriSurfField“
“ImageField“
“CurveField“
“ScanlineField“
“PointCloudField“
“QuadraticTetVolField“
]
mfields = [“MaskedTetVolField“
“MaskedHexVolField“
“MaskedLatVolField“
“MaskedTriSurfField“
]
fields = ufields + mfields
meshes = [(“LatVolMesh“ “FData3d“)
(“TetVolMesh“ “vector“)
(“HexVolMesh“ “vector“)
(“TriSurfMesh“ “vector“)
(“ImageMesh“ “FData2d“)
(“CurveMesh“ “vector“)
(“ScanlineMesh“ “vector“)
(“PointCloudMesh“ “vector“)
(“QuadraticTetVolMesh“ “vector“)
]
containers = [“vector“ “FData3d“ “FData2d“]
tdatas = [“Tensor“]
vdatas = [“Vector“]
sdatas = [“double“ “float“ “int“ “short“ “unsigned char“]
odatas = []
datas = tdatas + vdatas + sdatas + odatas
if __name__ == ‘__main__‘ :
out = open(“cd_templates_fields.cc“ “w“)
out.write(“#include \n“)
out.write(“#include \n“)
out.write(“#include \n“)
out.write(“#include \n“)
for f in fields :
out.write(“#include \n“)
out.write(“\n“)
out.write(“\n“)
out.write(“using namespace SCIRun;\n“)
out.write(“\n“)
out.write(“\n“)
for f in
评论
共有 条评论