how can we export boundary pressure results

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
dimitri14
Posts: 40
Joined: Tue Jan 03, 2023 10:25 am

Re: how can we export boundary pressure results

Post by dimitri14 »

I have the solution 'Scalar' works
dimitri14
Posts: 40
Joined: Tue Jan 03, 2023 10:25 am

Re: how can we export boundary pressure results

Post by dimitri14 »

At this point i manage to obtain the displacement on the structure using code aster. I have created a med file incluing the distorted shape. At least i have to import it in code saturne : So i need to build the cubic mesh standing for fluid flow, and substract the distorted shape (step 4 to step 5)
question5.png
First i have transformed the distorted shape int o stl file, and using the geometry module tried to make a boolean substract with the box : the software always crash
Secondly i have imported the box mesh and distorted shape mesh in the mesh module, made a compound in order to have the ability to acces to the different group of faces in code saturne, but i obtained an error message about bad boundary condition definitions
So i'd liked to know if someone has an idea to help me to get through this problem (maybe using a tool like snappyhex mesh,)
ximeng
Posts: 37
Joined: Sun Jan 22, 2023 3:28 pm

Re: how can we export boundary pressure results

Post by ximeng »

Hi Yvan,

I’m trying to output the pressure on my structure’s boundary surfaces, but when I follow the instructions in the post it doesn’t show any pressure variables. I understand the normal stress may be similar to pressure, but should we use the normal stress as the pressure, or is there a way to output pressure directly? The setup file is attached.

Best regards,
Ximeng
Attachments
Writer.JPG
setup_boundaryPressure.xml
(19.3 KiB) Downloaded 56 times
Yvan Fournier
Posts: 4263
Joined: Mon Feb 20, 2012 3:25 pm

Re: how can we export boundary pressure results

Post by Yvan Fournier »

Hello, there is no direct way of doing this with the GUI.

In user-defined functions, setting a field's 'post_vis' keyword not to 1 but to
CS_POST_ON_LOCATION | CS_POST_BOUNDARY_NR
(or 3) should active the output off boundary values, bit note that those values are not reconstructed, so not exactly the ones matching the computation wherever the mesh is not orthogonal.

Best regards,

Yvan
Post Reply