Hi,
I wonder whether code_saturne can deal with zero-thickness wall or not?
Your kind feedback is greatly appreciated.
Best regards,
George XU
zero-thickness wall
Forum rules
Please read the forum usage recommendations before posting.
Please read the forum usage recommendations before posting.
Re: zero-thickness wall
Hello,
Code_Saturne may deal with zero-thickness walls, if the proper precautions are taken while building the mesh: a face is considered to be a boundary face if it is connected to a single cell, and matching of faces to cells when importing meshes is detemined by matching of vertex numbers.
This means that two faces on each side of a zero-thickness wall must have at least one their vertices with different numbers/ids (even if those vertices have the same coordinates). If the faces are based on the same vertices, they will be merged, and you will have an interior face.
In the upcoming version 2.1 of the code (which is a "developpement" version with many changes and improvements, and should be released within a month), there is a user subroutine allowing the generation of thin walls even with identical vertices, which makes this much easier (though precautions must be taken for post-processing, as post-processing tools often have a similar logic as Code_Saturne regardign the definition of boundary/interior faces, so thething wall will appear in the boundary mesh output by code_Saturne, but will not be visible in the volume mesh).
Best regards,
Yvan
Code_Saturne may deal with zero-thickness walls, if the proper precautions are taken while building the mesh: a face is considered to be a boundary face if it is connected to a single cell, and matching of faces to cells when importing meshes is detemined by matching of vertex numbers.
This means that two faces on each side of a zero-thickness wall must have at least one their vertices with different numbers/ids (even if those vertices have the same coordinates). If the faces are based on the same vertices, they will be merged, and you will have an interior face.
In the upcoming version 2.1 of the code (which is a "developpement" version with many changes and improvements, and should be released within a month), there is a user subroutine allowing the generation of thin walls even with identical vertices, which makes this much easier (though precautions must be taken for post-processing, as post-processing tools often have a similar logic as Code_Saturne regardign the definition of boundary/interior faces, so thething wall will appear in the boundary mesh output by code_Saturne, but will not be visible in the volume mesh).
Best regards,
Yvan
Re: zero-thickness wall
Hi Yvan
As you said, a new user subroutine for zero-thickness wall treatment would be available in cs-2.1.0. Is such a file available in the latest version? COuld you please advise what the file name is? Any suggestions about how to use the subroutine in order to achieve the control of zero-thickness walls with equal number of vertices?
thanks.
George
As you said, a new user subroutine for zero-thickness wall treatment would be available in cs-2.1.0. Is such a file available in the latest version? COuld you please advise what the file name is? Any suggestions about how to use the subroutine in order to achieve the control of zero-thickness walls with equal number of vertices?
thanks.
George
Re: zero-thickness wall
Hello,
The required function is cs_user_mesh_thinwall.c, and is available in any given cases SRC/REFERENCE/base directory, starting with Code_Saturne 2.1.0.
Best regards,
Yvan
The required function is cs_user_mesh_thinwall.c, and is available in any given cases SRC/REFERENCE/base directory, starting with Code_Saturne 2.1.0.
Best regards,
Yvan
Re: zero-thickness wall
Hi Yvan,
Thanks for your information. Any clue or guideline how to prepare the mesh and activate the thinwall using the subroutine?
Best regards,
George
Thanks for your information. Any clue or guideline how to prepare the mesh and activate the thinwall using the subroutine?
Best regards,
George
Re: zero-thickness wall
Hello,
There is an example in the file cs_user_mesh_thinwall.c. To "activate" the user subroutines you must copy them from SRC/REFERENCE/* to SRC/. If you want to perform preprocessing only, you can run the calculation in "Mesh preprocessing" mode. This option is available in the GUI (Calculation management/Run type) or in the user script cs_user_script.py (--preprocess) (to use it: copy it from DATA/REFERENCE to DATA/).
Best regards,
JF
There is an example in the file cs_user_mesh_thinwall.c. To "activate" the user subroutines you must copy them from SRC/REFERENCE/* to SRC/. If you want to perform preprocessing only, you can run the calculation in "Mesh preprocessing" mode. This option is available in the GUI (Calculation management/Run type) or in the user script cs_user_script.py (--preprocess) (to use it: copy it from DATA/REFERENCE to DATA/).
Best regards,
JF