Groups
Groups
Sign in
Groups
Groups
OpenFOAM
Conversations
About
Send feedback
Help
計算結果の桁数について
527 views
Skip to first unread message
wakamatsu
unread,
Aug 25, 2013, 10:18:36 PM
8/25/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to open...@googlegroups.com
いつもお世話になっております。
若松と申します。
現在、OpenFOAM(Version 2.2.1)のbuoyantBoussinesqPimpleFoamを使って
密閉空間内の自然対流を2次元解析しております。
温度場を計算したところ、小数点以下3桁(300.285Kなど)の値で出力されるのですが
これをさらに小さい桁(300.28567Kなど)で計算値を出す方法はあるのでしょうか。
小さい桁の値が必要で、境界条件で与える温度を300.00000Kなどとしてみたのですが
結果は変わりませんでした。
どなたか、ご教授よろしくお願いいたします。
Youhei Takagi
unread,
Aug 25, 2013, 11:03:53 PM
8/25/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to open...@googlegroups.com
若松様
高木と申します。
controlDictでwriteFormatがasciiの場合、
writePrecisionの整数値を大きくすることで
桁数を増やせます。ユーザーガイドもご参照ください。
wakamatsu
unread,
Aug 26, 2013, 12:39:22 AM
8/26/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to open...@googlegroups.com
高木様
若松です。
ご返信ありがとうございました。
ユーザーガイドを参照して桁数を変更いたします。
また、先日ご指摘ただいた点も検討し、解析を続けております。
度々のご教示、重ねて御礼申し上げます。
wakamatsu
unread,
Aug 27, 2013, 8:30:51 PM
8/27/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to open...@googlegroups.com
高木様
若松です。
連続の投稿、失礼いたします。
ご指摘の通り変更したところ、
controlDictにあるwriteControlごとに書きだされるTの値の
桁数を増やすことができました。
これをparaViewで可視化した後、温度をcsvファイルに書き出したのですが
この値に増やした桁数が反映されず、常に6桁で書き出されてしまいます。
paraViewで出力する桁数を変える方法はありますでしょうか。
OpenFOAM自体の話から少しそれてしまい恐縮ですが
ご教授お願い致します。
Youhei Takagi
unread,
Aug 27, 2013, 8:53:42 PM
8/27/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to open...@googlegroups.com
若松様
高木です。
通常の表示画面は3D Viewですが、追加するなどしてSpreadsheet Viewを表示させ、
その中にある"Precision"を変更すれば、出力桁数も変わるようです。下記も参考に
してください。
http://paraview.org/Wiki/ParaView/Displaying_Data
以上ご参考までに。
wakamatsu
unread,
Aug 27, 2013, 10:30:41 PM
8/27/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to open...@googlegroups.com
高木様
若松です。
ご返信ありがとうございます。
お示し頂いたURLを参考にさせていただきました。
IntegrateVariablesフィルタを追加してSpreadsheet Viewを表示させ、
ヘッダーの"Precision"を変更したところ、表示される桁数は変えることができました。
しかし、それらをSaveDataでcsvファイルに保存し、そのファイルを開くと
出力桁数は"Precision"を変更する前と変わりませんでした。
出力の仕方が違っているのでしょうか。
Youhei Takagi
unread,
Aug 27, 2013, 10:46:39 PM
8/27/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to open...@googlegroups.com
若松様
高木です。
手元の環境ではお答えした手順で、paraviewのView、及びcsvファイルで
変更が確認できたので、何が問題なのかはわかりません。元々の計算
データを確認されてみてはいかがでしょうか?
ちなみに、私自身は生の計算データはbinaryで吐き出しています。
wakamatsu
unread,
Aug 28, 2013, 12:57:52 AM
8/28/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to open...@googlegroups.com
高木様
若松です。
元のデータを確認したところ、必要な桁数はでておりました。
他の出力の方法を検討いたします。
お忙しいところ、ありがとうございました。
今後ともよろしくお願い致します。
Reply all
Reply to author
Forward
0 new messages