Usage of cs_user_mesh_input subroutine
Posted: Wed Oct 03, 2012 10:25 am
Hello,
I want to have the translation of a mesh 5 times in heigh.
In this mesh, there are 4 boundary conditions : bas(down), haut(up), interne and externe.
But if make the translation, I have intermediate boundary conditions which are created.
So I remove the group but I don't succed to remove two groups : haut and bas.
It work for the first mesh and the last mesh because I remove only one group.
But CS create a group : no_group where I remove my groups.
I use the version 2.2.2 of CS.
My code is :
Thank you,
Damien
I want to have the translation of a mesh 5 times in heigh.
In this mesh, there are 4 boundary conditions : bas(down), haut(up), interne and externe.
But if make the translation, I have intermediate boundary conditions which are created.
So I remove the group but I don't succed to remove two groups : haut and bas.
It work for the first mesh and the last mesh because I remove only one group.
But CS create a group : no_group where I remove my groups.
I use the version 2.2.2 of CS.
My code is :
Code: Select all
void
cs_user_mesh_input(void)
{
/* Add same mesh with transformations */
if (true) {
const char *renames[] = {"Inlet", "Injection_2",
"haut",NULL};
const double transf_matrix[3][4] = {{1., 0., 0., 0.},
{0., 1., 0., 0.},
{0., 0., 1., 0.}};
cs_preprocessor_data_add_file("/home/DH07120S/2754/Etude_Hexa/19_aig_22/MESH/mesh_input/base",2,renames,transf_matrix);
}
/* Add same mesh with transformations */
if (true) {
const char *renames[] = {"Inlet", "Injection_2",
"haut , bas", NULL};
const double transf_matrix[3][4] = {{1., 0., 0., 0.},
{0., 1., 0., 0.},
{0., 0., 1., 0.180}};
cs_preprocessor_data_add_file("/home/DH07120S/2754/Etude_Hexa/19_aig_22/MESH/mesh_input/base",2,renames,transf_matrix);
}
/* Add same mesh with transformations */
if (true) {
const char *renames[] = {"Inlet", "Injection_2",
"haut , bas", NULL};
const double transf_matrix[3][4] = {{1., 0., 0., 0.},
{0., 1., 0., 0.},
{0., 0., 1., 0.360}};
cs_preprocessor_data_add_file("/home/DH07120S/2754/Etude_Hexa/19_aig_22/MESH/mesh_input/base",2,renames,transf_matrix);
}
/* Add same mesh with transformations */
if (true) {
const char *renames[] = {"Inlet", "Injection_2",
"haut , bas", NULL};
const double transf_matrix[3][4] = {{1., 0., 0., 0.},
{0., 1., 0., 0.},
{0., 0., 1., 0.540}};
cs_preprocessor_data_add_file("/home/DH07120S/2754/Etude_Hexa/19_aig_22/MESH/mesh_input/base",2,renames,transf_matrix);
}
/* Add same mesh with transformations */
if (true) {
const char *renames[] = {"Inlet", "Injection_2",
"bas", NULL};
const double transf_matrix[3][4] = {{1., 0., 0., 0.},
{0., 1., 0., 0.},
{0., 0., 1., 0.720}};
cs_preprocessor_data_add_file("/home/DH07120S/2754/Etude_Hexa/19_aig_22/MESH/mesh_input/base",2,renames,transf_matrix);
}
}
Damien