Skip to content

fluent3DMeshToFoam throws fatal error when converting ASCII msh file to OpenFOAM polyMesh. #585

@TimoLin

Description

@TimoLin

For newer versions of fluent meshing, the ASCII mesh files contains following lines starts with (cad: like

(cad/adv-options ((recursive? #f) (continue-on-error? #f) (create-faceting? #t) (savepmdb? #f) (length-unit "mm") (import-part-names? #f) (import-body-names? #t) (create-conformal-faceting? #t) (conformal-faceting-minsize 0) (conformal-faceting-maxsize 0) (conformal-faceting-curvature-normal-angle 10) (sag-control? #f) (sag-tolerance 0) (sag-maxsize 0) (encl-symm-processing #f) (import-ns? #t) (ns-pattern "Layer*") (ns-regex "^(Color|Layer|Material|[0-9]:).*") (conf-faceting-merge-nodes #t) (conf-faceting-make-objs-independent #t) (conf-faceting-edge-proximity #f) (conf-faceting-cells-per-gap 3) (conf-faceting-size-field-load? #t) (conf-faceting-size-field-file "****\FM_aisi-work_1804\\ignitor-ug2.sf") (conf-faceting-size-field-save? #f) (do-refaceting? #f) (sag-minsize 0) (conformal-tess #f) (conformal-tess-minsize 0) (conformal-tess-maxsize 0) (conformal-tess-tolerance 0) (double-connected-face-label "") (single-connected-edge-label "single") (name-separator-character ":") (use-collection-names "auto") (use-component-names "auto") (object-type "auto") (reconstruct-topology "") (import-named-selection-labels? #t) (separate-features-by-type? #f) (named-selection-failure "failed") (use-body-names? #t) (use-part-names? "no") (replacement-char "-") (create-regions-per-body? #t) (derive-zone-name? #f) (merge-nodes? #t) (defeaturing? #f) (defeaturing-tol 0) (defeaturing-skew 0.7) (modify-all-duplicate-names? #f) (use-part-or-body-names-as-suffix-to-named-selections? #f) (strip-file-name-extension-from-naming? #f) (import-label-for-body-named-selection? #t) (strip-path-prefix-from-names? "auto") (merge-objects-per-body-named-selection? #f) (use-conformal-faceting-sizing-table? #f) (conf-faceting-filter-edges? #f) (ug-nx-cad-faceting? #f) (cad-ug-tolerance 0.1) (cad-ug-maxsize 0) (cad-ug-angular-deviation 0) (align-edge-tessellation #f) (cfd-surface-mesh-controls-additional ((curvature #t) (proximity #f) (growth-rate 1.2) (proximity-source-type ("EdgeEdge")) (ignore-orientation #t) (ignore-self #f) (scope-sizing? #t))) (sag-refine-faceting? #f) (create-label-per-body-during-cad-faceting? #f) (import-facet-quality "Source") (additional-xml-lines "") (conformal-tess? #f)))

When using the conversion tool:

fluent3DMeshToFoam ./test.msh -scale 0.001

It throws the following fatal error:

Zone: 49 name: outlet:wall_comb:-----:feature.49 type: boundary-edge.  Reading zone data...done.


--> FOAM FATAL ERROR: 
Do not understand characters: [
    on line 10845179

    From function virtual int yyFlexLexer::yylex()
    in file fluent3DMeshToFoam.L at line 748.

FOAM exiting

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions