surfaceFeatureExtractを行ってもeMeshファイルが作成されない

626 views
Skip to first unread message

muraki

unread,
Oct 19, 2022, 4:19:32 AM10/19/22
to OpenFOAM
お世話になっております。openfoam初学者です。
現在snappyHexMeshでメッシュを作成するためにblockMesh→surfaceFeatureExtract→snappyHexMeshの順で実行しようとしているのですが、surfaceFeatureExtractが実行された後にeMeshファイルが作成されません。
エラーメッセージは出ていないので原因が分かる方いらっしゃれば教えていただきたいです。stlファイルが悪いのかと思い、以下のサイトにあがっているmodel.stlでも試してみましたが全く同じ結果となりました。動作環境はopenfoam2206をUbuntu 20.04.5 LTSで動かしています。よろしくお願いいたします。

ttsy shmz

unread,
Oct 19, 2022, 4:29:58 AM10/19/22
to open...@googlegroups.com
ttsyです。

surfaceFeatureExtractDictが不明なので原因は正直わかりませんが、includedAngleを180にしても駄目でしょうか?

iPadから送信

2022/10/19 17:19、'muraki' via OpenFOAM <open...@googlegroups.com>のメール:

お世話になっております。openfoam初学者です。
現在snappyHexMeshでメッシュを作成するためにblockMesh→surfaceFeatureExtract→snappyHexMeshの順で実行しようとしているのですが、surfaceFeatureExtractが実行された後にeMeshファイルが作成されません。
エラーメッセージは出ていないので原因が分かる方いらっしゃれば教えていただきたいです。stlファイルが悪いのかと思い、以下のサイトにあがっているmodel.stlでも試してみましたが全く同じ結果となりました。動作環境はopenfoam2206をUbuntu 20.04.5 LTSで動かしています。よろしくお願いいたします。

--
このメールは Google グループのグループ「OpenFOAM」に登録しているユーザーに送られています。
このグループから退会し、グループからのメールの配信を停止するには openfoam+u...@googlegroups.com にメールを送信してください。
このディスカッションをウェブ上で閲覧するには https://groups.google.com/d/msgid/openfoam/8843e597-fb5e-4892-9b92-193fd378070en%40googlegroups.com にアクセスしてください。

muraki

unread,
Oct 19, 2022, 4:36:46 AM10/19/22
to OpenFOAM
ttsy様 ご返信ありがとうございます。
includedAngleは90,150,180の3パターンで変えてみましたがすべて同様の結果となり、eMeshファイルは作成できませんでした。surfaceFeatureExtractはtutorialsのmotorBikeからもってきたものを変更しました。お願いいたします。

2022年10月19日水曜日 17:29:58 UTC+9 LongGe:
surfaceFeatureExtractDict

ttsy shmz

unread,
Oct 19, 2022, 4:50:55 AM10/19/22
to open...@googlegroups.com
ttsyです。

いま、PCが無いので細かく見れませんが、もう一つ試して下さい。stlファイルをobj形式に変換後、surfaceFeatureExtractを実行する。surfaceConvertコマンドで変換できたと思いますが、いま、help を打てないので、ご自身で調べて下さい。

iPadから送信

2022/10/19 17:36、'muraki' via OpenFOAM <open...@googlegroups.com>のメール:

ttsy様 ご返信ありがとうございます。
このディスカッションをウェブ上で閲覧するには https://groups.google.com/d/msgid/openfoam/3d0362ca-f75f-48a5-ac2d-30a0684c98a5n%40googlegroups.com にアクセスしてください。
surfaceFeatureExtractDict

muraki

unread,
Oct 19, 2022, 5:58:58 AM10/19/22
to OpenFOAM
ttsy様 ご返信ありがとうございます.
objファイルに変換しても同様の結果となりました.
ファイルのasciiとbinaryを変換しても問題は解決しておりません.
お願いいたします.

2022年10月19日水曜日 17:50:55 UTC+9 LongGe:

ttsy shmz

unread,
Oct 19, 2022, 5:20:12 PM10/19/22
to open...@googlegroups.com
ttsyです。

OpenFOAM/OpenFOAM-v2106/tutorials/incompressible/simpleFoam/motorBike
を使って試したとから言われてるような問題は発生してません。

このtutorialsとあなたの問題の差を調べてはいかがですか?

考えられる問題点
入力ファイルがウォータータイトでない
使われてるOpenFOAMの問題
使われてる環境の問題

わたしの実行環境は
M1 Mac, OpenCFD版v2106, ソースビルド
です。clangのネイティブビルドになります。

環境依存なら、わたしにお手伝いできる要素はほぼないかと思います。


iPhoneから送信

/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2106                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : _c15bfde3cb-20210624 OPENFOAM=2106
Arch   : "LSB;label=32;scalar=64"
Exec   : surfaceFeatureExtract
Date   : Oct 20 2022
Time   : 06:06:23
Host   : tatsuyanoMac-mini.local
PID    : 1950
I/O    : uncollated
Case   : /Volumes/home3/OpenFOAM/run/motorBike
nProcs : 1
trapFpe: Floating point exception trapping enabled (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 5, maxFileModificationPolls 20)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time


Note: Feature line extraction only valid on closed manifold surfaces

Reading surfaceFeatureExtractDict

Surfaces     : motorBike.obj
Output       : motorBike
Load options : offset
Write options: writeObj=yes writeVTK=off

Statistics:
Triangles    : 331653 in 67 region(s)
Vertices     : 132871
Bounding Box : (-0.291665 -0.350289 -4.232e-05) (1.75115 0.332267 1.35152)

Constructing feature set from included angle 150
Selecting edges based purely on geometric tests: no
Removing all non-manifold edges (edges with > 2 connected faces) unless they cross multiple regions

Initial Feature set:
    points : 2292
    edges  : 20867
    of which
        region edges   : 8678
        external edges : 2966
        internal edges : 9223

Final Feature set:
    points : 20665
    of which
        convex             : 586
        concave            : 509
        mixed              : 1197
        non-feature        : 18373
    edges  : 20867
    of which
        external edges     : 7171
        internal edges     : 10915
        flat edges         : 95
        open edges         : 49
        multiply connected : 2637

Writing extendedFeatureEdgeMesh to "/Volumes/home3/OpenFOAM/run/motorBike/constant/extendedFeatureEdgeMesh/motorBike.extendedFeatureEdgeMesh"

Writing extendedEdgeMesh components to "/Volumes/home3/OpenFOAM/run/motorBike/constant/extendedFeatureEdgeMesh/motorBike"
Writing 586 convex feature points to "/Volumes/home3/OpenFOAM/run/motorBike/constant/extendedFeatureEdgeMesh/motorBike_convexFeaturePts.obj"
Writing 509 concave feature points to "/Volumes/home3/OpenFOAM/run/motorBike/constant/extendedFeatureEdgeMesh/motorBike_concaveFeaturePts.obj"
Writing 1197 mixed feature points to "/Volumes/home3/OpenFOAM/run/motorBike/constant/extendedFeatureEdgeMesh/motorBike_mixedFeaturePts.obj"
Writing 1197 mixed feature point structure to "/Volumes/home3/OpenFOAM/run/motorBike/constant/extendedFeatureEdgeMesh/motorBike_mixedFeaturePtsStructure.obj"
Writing 7171 external edges to "/Volumes/home3/OpenFOAM/run/motorBike/constant/extendedFeatureEdgeMesh/motorBike_externalEdges.obj"
Writing 10915 internal edges to "/Volumes/home3/OpenFOAM/run/motorBike/constant/extendedFeatureEdgeMesh/motorBike_internalEdges.obj"
Writing 95 flat edges to "/Volumes/home3/OpenFOAM/run/motorBike/constant/extendedFeatureEdgeMesh/motorBike_flatEdges.obj"
Writing 49 open edges to "/Volumes/home3/OpenFOAM/run/motorBike/constant/extendedFeatureEdgeMesh/motorBike_openEdges.obj"
Writing 2637 multiple edges to "/Volumes/home3/OpenFOAM/run/motorBike/constant/extendedFeatureEdgeMesh/motorBike_multipleEdges.obj"
Writing 8678 region edges to "/Volumes/home3/OpenFOAM/run/motorBike/constant/extendedFeatureEdgeMesh/motorBike_regionEdges.obj"
Writing 20867 edge directions to "/Volumes/home3/OpenFOAM/run/motorBike/constant/extendedFeatureEdgeMesh/motorBike_edgeDirections.obj"

Writing featureEdgeMesh to "/Volumes/home3/OpenFOAM/run/motorBike/constant/triSurface/motorBike.eMesh"
ExecutionTime = 0.64 s  ClockTime = 12 s

End


2022/10/19 18:59、'muraki' via OpenFOAM <open...@googlegroups.com>のメール:

ttsy様 ご返信ありがとうございます.
このディスカッションをウェブ上で閲覧するには https://groups.google.com/d/msgid/openfoam/dd185976-f862-409f-9c48-0d4f00d95072n%40googlegroups.com にアクセスしてください。

muraki

unread,
Oct 19, 2022, 11:11:37 PM10/19/22
to OpenFOAM
ttsy 様 ご返信ありがとうございます。
承知しました。
まずはtutorialとの差を確認してみようと思います。
また何かありましたらよろしくお願いいたします。

2022年10月20日木曜日 6:20:12 UTC+9 LongGe:

Masashi Imano

unread,
Oct 20, 2022, 12:49:21 AM10/20/22
to OpenFOAM
今野です.

所々全角のスペースが入っていますので,
それらを削除して試してみてください.

surfaceFeatureExtractDict
````
model.stl
{
全角→  // How to obtain raw features
extractionMethod extractFromSurface;

extractFromSurfaceCoeffs
全角→  {
includedAngle       150;
}

subsetFeatures
{
        // Keep nonManifold edges (edges with >2 connected faces)
        nonManifoldEdges       no;

        // Keep open edges (edges with 1 connected face)
        openEdges       yes;
    }
// Write features to obj format for postprocessing
全角→ writeObj 全角→  yes;
}
````
2022年10月20日木曜日 12:11:37 UTC+9 muraki:

muraki

unread,
Oct 20, 2022, 12:54:49 AM10/20/22
to OpenFOAM
今野 様 ご返信ありがとうございます。
motorBikeのチュートリアルのファイルからもう一度コピーして
書き直したら解決しました。
ありがとうございました。




2022年10月20日木曜日 13:49:21 UTC+9 Masashi Imano:

Masashi Imano

unread,
Oct 20, 2022, 1:12:12 AM10/20/22
to OpenFOAM
今野です.

それは良かったです.

OpenFOAMのファイルの修正には,
全角スペースかASCIIスペースかを判別できるようなエディタ(の設定)を用いたほうが良いと思います.
2022年10月20日木曜日 13:54:49 UTC+9 muraki:

muraki

unread,
Oct 20, 2022, 2:57:49 AM10/20/22
to OpenFOAM
今野 様 ご返信ありがとうございます。
参考にさせていただきます。

2022年10月20日木曜日 14:12:12 UTC+9 Masashi Imano:
Reply all
Reply to author
Forward
0 new messages