UDF函数求助
-
这些是内部函数,只有头文件里有声明。是常见的商业软件保密方法。(只发布头文件和源代码编译成的动态链接库)
如果要使用,
第一步,包含定义该函数的头文件
第二步,编译的时候链接到包含该函数定义的动态链接库。可以使用grep找到包含该函数的声明头文件和各状况下的动态链接库。
can@M320:/ansys_inc> sudo grep -r Alloc_Storage_Vars . grep: ./v231/fluent/fluent23.1.0/linmic/3ddp_node/fluent_mpi.23.1.0: binary file matches grep: ./v231/fluent/fluent23.1.0/linmic/2ddp_node/fluent_mpi.23.1.0: binary file matches grep: ./v231/fluent/fluent23.1.0/linmic/2d_node/fluent_mpi.23.1.0: binary file matches grep: ./v231/fluent/fluent23.1.0/linmic/3d_node/fluent_mpi.23.1.0: binary file matches grep: ./v231/fluent/fluent23.1.0/addons/mhd/lnamd64/3ddp_host/libudf.so: binary file matches grep: ./v231/fluent/fluent23.1.0/addons/mhd/lnamd64/3ddp_node/libudf.so: binary file matches grep: ./v231/fluent/fluent23.1.0/addons/mhd/lnamd64/2ddp_node/libudf.so: binary file matches grep: ./v231/fluent/fluent23.1.0/addons/mhd/lnamd64/3d_host/libudf.so: binary file matches grep: ./v231/fluent/fluent23.1.0/addons/mhd/lnamd64/2d_node/libudf.so: binary file matches grep: ./v231/fluent/fluent23.1.0/addons/mhd/lnamd64/2d_host/libudf.so: binary file matches grep: ./v231/fluent/fluent23.1.0/addons/mhd/lnamd64/2ddp_host/libudf.so: binary file matches grep: ./v231/fluent/fluent23.1.0/addons/mhd/lnamd64/3d_node/libudf.so: binary file matches grep: ./v231/fluent/fluent23.1.0/addons/msmdbatt/lnamd64/3ddp_node/cae_batt.o: binary file matches grep: ./v231/fluent/fluent23.1.0/addons/msmdbatt/lnamd64/3ddp_node/libudf.so: binary file matches grep: ./v231/fluent/fluent23.1.0/addons/msmdbatt/lnamd64/3d_node/cae_batt.o: binary file matches grep: ./v231/fluent/fluent23.1.0/addons/msmdbatt/lnamd64/3d_node/libudf.so: binary file matches grep: ./v231/fluent/fluent23.1.0/addons/htc/lnamd64/3ddp_node/libhtcns.so: binary file matches grep: ./v231/fluent/fluent23.1.0/addons/htc/lnamd64/2ddp_node/libhtcns.so: binary file matches grep: ./v231/fluent/fluent23.1.0/addons/htc/lnamd64/2d_node/libhtcns.so: binary file matches grep: ./v231/fluent/fluent23.1.0/addons/htc/lnamd64/3d_node/libhtcns.so: binary file matches grep: ./v231/fluent/fluent23.1.0/addons/fensapice/lnamd64/3ddp_node/libudf.so: binary file matches grep: ./v231/fluent/fluent23.1.0/addons/fensapice/lnamd64/3d_node/libudf.so: binary file matches grep: ./v231/fluent/fluent23.1.0/addons/rom/lnamd64/3ddp_host/libudf.so: binary file matches grep: ./v231/fluent/fluent23.1.0/addons/rom/lnamd64/3ddp_node/libudf.so: binary file matches grep: ./v231/fluent/fluent23.1.0/addons/rom/lnamd64/2ddp_node/libudf.so: binary file matches grep: ./v231/fluent/fluent23.1.0/addons/rom/lnamd64/3d_host/libudf.so: binary file matches grep: ./v231/fluent/fluent23.1.0/addons/rom/lnamd64/2d_node/libudf.so: binary file matches grep: ./v231/fluent/fluent23.1.0/addons/rom/lnamd64/2d_host/libudf.so: binary file matches grep: ./v231/fluent/fluent23.1.0/addons/rom/lnamd64/2ddp_host/libudf.so: binary file matches grep: ./v231/fluent/fluent23.1.0/addons/rom/lnamd64/3d_node/libudf.so: binary file matches grep: ./v231/fluent/fluent23.1.0/addons/adjoint/lnamd64/3ddp_host/libudf.so: binary file matches grep: ./v231/fluent/fluent23.1.0/addons/adjoint/lnamd64/3ddp_node/libudf.so: binary file matches grep: ./v231/fluent/fluent23.1.0/addons/adjoint/lnamd64/2ddp_node/libudf.so: binary file matches grep: ./v231/fluent/fluent23.1.0/addons/adjoint/lnamd64/3d_host/libudf.so: binary file matches grep: ./v231/fluent/fluent23.1.0/addons/adjoint/lnamd64/2d_node/libudf.so: binary file matches grep: ./v231/fluent/fluent23.1.0/addons/adjoint/lnamd64/2d_host/libudf.so: binary file matches grep: ./v231/fluent/fluent23.1.0/addons/adjoint/lnamd64/2ddp_host/libudf.so: binary file matches grep: ./v231/fluent/fluent23.1.0/addons/adjoint/lnamd64/3d_node/libudf.so: binary file matches grep: ./v231/fluent/fluent23.1.0/addons/mpm/lnamd64/3ddp_node/libudf.so: binary file matches grep: ./v231/fluent/fluent23.1.0/addons/mpm/lnamd64/2ddp_node/libudf.so: binary file matches grep: ./v231/fluent/fluent23.1.0/addons/mpm/lnamd64/2d_node/libudf.so: binary file matches grep: ./v231/fluent/fluent23.1.0/addons/mpm/lnamd64/3d_node/libudf.so: binary file matches grep: ./v231/fluent/fluent23.1.0/lnamd64/3ddp_host/fluent.23.1.0: binary file matches grep: ./v231/fluent/fluent23.1.0/lnamd64/3ddp_node/fluent_mpi.23.1.0: binary file matches grep: ./v231/fluent/fluent23.1.0/lnamd64/2ddp_node/fluent_mpi.23.1.0: binary file matches grep: ./v231/fluent/fluent23.1.0/lnamd64/3d_host/fluent.23.1.0: binary file matches grep: ./v231/fluent/fluent23.1.0/lnamd64/2d_node/fluent_mpi.23.1.0: binary file matches grep: ./v231/fluent/fluent23.1.0/lnamd64/2d_host/fluent.23.1.0: binary file matches grep: ./v231/fluent/fluent23.1.0/lnamd64/2ddp_host/fluent.23.1.0: binary file matches grep: ./v231/fluent/fluent23.1.0/lnamd64/3d_node/fluent_mpi.23.1.0: binary file matches ./v231/fluent/fluent23.1.0/src/storage/storage.h:FLUENT_EXPORT void Alloc_Storage_Vars(Domain *, ...); ./v231/fluent/fluent23.1.0/src/storage/storage.h:FLUENT_EXPORT void MD_Alloc_Storage_Vars(Domain *, ...);