fluent scheme 之 xyplot 功能
来源:互联网 发布:被男友强啪的经验知乎 编辑:程序博客网 时间:2024/06/05 10:01
在 FLUENT 中,利用 xyplot 功能可以绘制一些曲线,查看某些变量随某一参数的变化情况。
还是先给出一个例子吧。
(define (hy-write-xyplot-file-2 fn v1 v2 v3 title labels llabels) (let ((p (open-output-file fn))) (newline) (format p "(title \"~a\")" title) (newline p) (format p "(labels \"~a\" \"~a\")" (car labels) (cadr labels)) (newline p) (newline p) (format p "(") (newline p) ; (format p "(xy/line/pattern \"----\")") (format p "(xy/marker/symbol \"()\")") (format p "(xy/marker/size 0.6)") (format p "(xy/scale/label/y \"~a\") " (car labels)) (format p "(xy/key/label \"~a\")" (car llabels)) (format p "(xy/key/legend \"~a\")" (cadr labels)) (format p "(xy/key/border? #f)") (newline p) (do ((i 0 (+ i 1))) ((>= i (length v1))) (begin (format p "~a ~a" (list-ref v1 i) (list-ref v2 i)) (newline p) ) ) (newline p) (format p ")") (newline p) (newline p) (newline p) (format p "(") (newline p) ; (format p "(xy/line/pattern \"----\")") (format p "(xy/marker/symbol \"[]\")") (format p "(xy/marker/size 0.6)") (format p "(xy/scale/label/y \"~a\") " (cadr labels)) (format p "(xy/key/label \"~a\")" (cadr llabels)) (format p "(xy/key/legend \"~a\")" (cadr labels)) (format p "(xy/key/border? #f)") (newline p) (do ((i 0 (+ i 1))) ((>= i (length v1))) (begin (format p "~a ~a" (list-ref v1 i) (list-ref v3 i)) (newline p) ) ) (newline p) (format p ")") (newline p) (close-input-port p) #t ))(hy-write-xyplot-file-2 "xyplot.xy" '(1 2 3 4 5 6 7) '(1 2 3 4 5 6 7) '(2 4 6 8 10 12 14) "xyplot" '("position" "velocity") '("A" "B"))(xy-plot-file "xyplot.xy")
fluent 提供了一些可以修改的参数,包括文字标签,显示范围,符号等,GUI 中也可以进行操作。
- fluent scheme 之 xyplot 功能
- Fluent Scheme 之对话框
- Fluent Scheme 之 GUI 命令
- gambit 命令之 xyplot
- FLUENT Scheme 脚本
- Fluent Scheme 脚本收集
- Fluent Scheme --- Menu
- FLUENT Scheme RP variables
- Fluent Scheme 脚本收集
- Fluent Scheme --- Interaction in Text mode
- fluent 并行版的 Scheme 问题
- Fluent Scheme --- 用命令执行菜单对应的动作
- fluent UDF 和 Scheme 之间的数据交换探究
- Fluent Scheme 中 Custom Field Function 相关操作
- Scheme之功能分解和封装内部函数/块结构
- [原创]Fluent NHibernate之旅
- fluent 二次开发之数据交换
- Fluent UDF 之向量运算
- 揭开私有继承的面纱
- ubuntu 11.04安装QQ【笔记】
- Molpro 2010.1 PL20并行编译(一):InfiniBand网络
- 黑马程序员--C#中静态类构造方法
- HTML解析器 jsoup
- fluent scheme 之 xyplot 功能
- windows系统设置: 系统死机-重启设置 window7 自动登录
- Molpro 2010.1 PL20并行编译(二):千兆网络
- Service 两种启动方式
- Java如何传参数到main中
- 一些很好数学网站
- STL 介绍 用法 (转载)
- 回溯法解决装载问题
- C#脚本实践(五): 调试器