cs_user_mesh.c
Posted: Mon Feb 08, 2016 5:03 pm
Hello,
I am using the routine cs_user_mesh.c to do two things:
1) create a series of thin walls in my volume mesh
2) collect all the free faces in my mesh in order to give them a wall type boundary condition
For 1):
I wish to collect a volume of cells and convert all the cell faces in this volume from internal faces to boundary faces in order to divide a given volume mesh into two seperate zones. I am using the command "plane[0,0,-1,5.0, epsilon=0.001]" on a test case but would like to know the following:
a) are the inputs for this command "plane[x, y, normal direction, z, tolerance]"?
b) is there a command word, such as "volume", that can be used to collect a volume of cells instead of a plane?
c) is it possible to use the command 'getcel' with 'x,y,z' limits in cs_user_mesh.c and if so, can you send me an example of how this is coded?
For 2):
I have copied the coding from the routine located in SRC/EXAMPLES/cs_user_mesh-groups-from-free-faces.c and put it into the cs_user_mesh.c routine that I am using. Can you please let me know:
a) what is the name of the group in which the free faces are stored?
b) is this group with the free faces available to be used by other routines, i.e. cs_user_boundary_conditions.f90, so that this group can be given a wall type boundary condition?
c) if this group isn't available to other routines, how can it be made available?
Best regards,
Brian Angel.
I am using the routine cs_user_mesh.c to do two things:
1) create a series of thin walls in my volume mesh
2) collect all the free faces in my mesh in order to give them a wall type boundary condition
For 1):
I wish to collect a volume of cells and convert all the cell faces in this volume from internal faces to boundary faces in order to divide a given volume mesh into two seperate zones. I am using the command "plane[0,0,-1,5.0, epsilon=0.001]" on a test case but would like to know the following:
a) are the inputs for this command "plane[x, y, normal direction, z, tolerance]"?
b) is there a command word, such as "volume", that can be used to collect a volume of cells instead of a plane?
c) is it possible to use the command 'getcel' with 'x,y,z' limits in cs_user_mesh.c and if so, can you send me an example of how this is coded?
For 2):
I have copied the coding from the routine located in SRC/EXAMPLES/cs_user_mesh-groups-from-free-faces.c and put it into the cs_user_mesh.c routine that I am using. Can you please let me know:
a) what is the name of the group in which the free faces are stored?
b) is this group with the free faces available to be used by other routines, i.e. cs_user_boundary_conditions.f90, so that this group can be given a wall type boundary condition?
c) if this group isn't available to other routines, how can it be made available?
Best regards,
Brian Angel.