Mesh imported ERROR: Mesh generated by pointwise

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
iorishx
Posts: 20
Joined: Fri Jun 19, 2015 11:33 am

Mesh imported ERROR: Mesh generated by pointwise

Post by iorishx »

Hello, does anyone use pointwise to generate mesh and then import to CS?
I selected cgns solver in pointwise and set two spanwise BCs as unspecified or user defined.
But always get an error:
"First face with boundary condition definition error (out of 306960)
has boundary condition type 0, center (2.85521, -0.00179797, 0.09875)"
I attached the listing file.

I am running an simulation of an aerofoil section, spanwise length is 0.1 chord length and both spanwise BCs are periodic.

Any helping comments are highly appreciated!!!
Attachments
listing.txt
The listing file for mesh error
(34.81 KiB) Downloaded 473 times
Yvan Fournier
Posts: 4207
Joined: Mon Feb 20, 2012 3:25 pm

Re: Mesh imported ERROR: Mesh generated by pointwise

Post by Yvan Fournier »

Hello,

According to you listing, the mesh is read correctly, and boundary groups read.

You did not provide your data setup. Did you define your boundary conditions ?

Regards,

Yvan
iorishx
Posts: 20
Joined: Fri Jun 19, 2015 11:33 am

Re: Mesh imported ERROR: Mesh generated by pointwise

Post by iorishx »

Yvan Fournier wrote:Hello,

According to you listing, the mesh is read correctly, and boundary groups read.

You did not provide your data setup. Did you define your boundary conditions ?

Regards,

Yvan
Hello, I defined my boundary conditions. Please see attached for my xml files.
It is the same xml file when I was using ICEM generated mesh which can be read correctly.
Do you know why it is not running with pointwise generated mesh?

Regards,
Xiang
Attachments
run_A7.xml
data setup xml file
(6.3 KiB) Downloaded 476 times
Yvan Fournier
Posts: 4207
Joined: Mon Feb 20, 2012 3:25 pm

Re: Mesh imported ERROR: Mesh generated by pointwise

Post by Yvan Fournier »

Hello,

I do not know what your mesh looks like, but aside from the LEFT and RIGHT groups (which you seem to use for periodicity, INLET includes 65800 faces, OUTLET 22120, and AIRFOIL 79920, so the sum does not match the total of 474800 boundary faces in your final mesh.

So you probably missed some boundary group definitions.

Did you check the error postprocessing as recommended in the listing ? It should show you where definitions are missing.

Regards,

Yvan
iorishx
Posts: 20
Joined: Fri Jun 19, 2015 11:33 am

Re: Mesh imported ERROR: Mesh generated by pointwise

Post by iorishx »

Yvan Fournier wrote:Hello,

I do not know what your mesh looks like, but aside from the LEFT and RIGHT groups (which you seem to use for periodicity, INLET includes 65800 faces, OUTLET 22120, and AIRFOIL 79920, so the sum does not match the total of 474800 boundary faces in your final mesh.

So you probably missed some boundary group definitions.

Did you check the error postprocessing as recommended in the listing ? It should show you where definitions are missing.

Regards,

Yvan
Thank you, Yvan. I visualized the error postprocessing as you suggested, please see attached.

It seems that code saturne treated all the connections inside the domain as boundaries. The connections in the domain are supposed to treated as interior cells. I believe this should be the problem.

To solve this problem, I can try to put all the connections as one boundary group, but what boundary conditions should I set up in CS? obviously it is neither inflow, outflow nor wall. I would like to set them as interior but do not know how. Please let me know if you have a good suggestion.

Regards,
Xiang
Attachments
BC_TYPE
BC_TYPE
Yvan Fournier
Posts: 4207
Joined: Mon Feb 20, 2012 3:25 pm

Re: Mesh imported ERROR: Mesh generated by pointwise

Post by Yvan Fournier »

Hello,

You probably have a warning about this in the postprocess.log file, with instructions on what to do.

You simply need to add a mesh joining operation for those boundary faces.

As selection criteria (for the joining), use "all[]", or better, "not (LEFT or RIGHT or INLET or OUTLET)".

Best regards,

Yvan
iorishx
Posts: 20
Joined: Fri Jun 19, 2015 11:33 am

Re: Mesh imported ERROR: Mesh generated by pointwise

Post by iorishx »

Yvan Fournier wrote:Hello,

You probably have a warning about this in the postprocess.log file, with instructions on what to do.

You simply need to add a mesh joining operation for those boundary faces.

As selection criteria (for the joining), use "all[]", or better, "not (LEFT or RIGHT or INLET or OUTLET)".

Best regards,

Yvan
Thanks for getting back to me, Yvan.

I assume you mean there is a warning in preprocess.log, and yes, the warning is
"Warning=======
The CGNS mesh read contains multizone ("one to one")
vertex equivalences which are not automatically handled
by the Preprocessor.
-> Use an appropriate joining option"

In terms of adding a mesh joing operation, do you mean Face joining (optional) under the Meshes selection? which in xml file is
" <joining>
<face_joining name="1">
<fraction>0.1</fraction>
<plane>25</plane>
<selector>all[]</selector> %% I assume this is the selection criteria you suggested
<verbosity>1</verbosity>
<visualization>1</visualization>
</face_joining>
</joining>"

Best regards,
Xiang
Yvan Fournier
Posts: 4207
Joined: Mon Feb 20, 2012 3:25 pm

Re: Mesh imported ERROR: Mesh generated by pointwise

Post by Yvan Fournier »

Hello,

Yes, that's the idea. Did you try it ?

Regards,

Yvan
iorishx
Posts: 20
Joined: Fri Jun 19, 2015 11:33 am

Re: Mesh imported ERROR: Mesh generated by pointwise

Post by iorishx »

Yvan Fournier wrote:Hello,

Yes, that's the idea. Did you try it ?

Regards,

Yvan
Hello, I tried it just now.

The code is running. But there are two problems.
1. When checking the joined mesh quality,
"Criterion 3: Least-Squares Gradient Quality: Number of bad cells detected: 268760 --> 1 %"
2. Every time step takes much longer time due to too many pressure iteration steps
"Variable Rhs norm N_iter Norm. residual derive Time residual
Pressure 0.60925E-02 3435 0.11973E+01 0.27027E+01 0.20117E+06"

I assume this is caused by the mesh joining. Any way to improve?

Regards,
Xiang
Yvan Fournier
Posts: 4207
Joined: Mon Feb 20, 2012 3:25 pm

Re: Mesh imported ERROR: Mesh generated by pointwise

Post by Yvan Fournier »

Hello,

The least-squares gradient quality might not be so bad if only 1% of cells are "bad", but I recommend visualizing the mesh quality to see where cells are bad: it may be due to the joining, but also to other factors, such as warping.

The number of iterations for pressure seems pretty high, especially if you are using multigrid and this is a "pseudo-equivalent" (number of iterations), but the first iterations might be more costly, and there might be other factors, such as gradient reconstruction choice, and especially time step/CFL aspects.

Here again, postprocessing/visualizing after a few iterations will probably provide more insight.

Regards,

Yvan
Post Reply