Search found 18 matches

by JonasA
Thu Jul 12, 2018 9:33 am
Forum: code_saturne usage
Topic: Pressure drop definition
Replies: 6
Views: 8382

Re: Pressure drop definition

Thanks, I have done the changes and now it works. void cs_user_postprocess_values(const char *mesh_name, int mesh_id, int cat_id, cs_probe_set_t *probes, cs_lnum_t n_cells, cs_lnum_t n_i_faces, cs_lnum_t n_b_faces, cs_lnum_t n_vertices, const cs_lnum_t cell_list[], const cs_lnum_t i_face_list[], con...
by JonasA
Wed Jul 11, 2018 3:28 pm
Forum: code_saturne usage
Topic: Pressure drop definition
Replies: 6
Views: 8382

Re: Pressure drop definition

I have tried to add the manometric head to the variable that are written for the post processing. I have 2 problems: I have not manage to get access to the position of the center of the cell so the head will lack the height in the expression. And the computation crash whenever the writer is called (...
by JonasA
Wed Jul 11, 2018 1:43 pm
Forum: code_saturne usage
Topic: Pressure drop definition
Replies: 6
Views: 8382

Re: Pressure drop definition

Thank you Ivan, but I still do not get exactly what each of it means For example, is p u dS the integral of the the pressure multiply by the velocity on the surface? Or only the integral of the pressure. Is u .dS the volumetric flow rate? And rho u dS the mass flow rate? I'd love to have a pressure ...
by JonasA
Wed Jul 11, 2018 9:08 am
Forum: code_saturne usage
Topic: Pressure drop definition
Replies: 6
Views: 8382

Pressure drop definition

Hello, I'm using code_Saturne 5.08 to simulate a pump. I try using the functionality pressure drop definition in Calculation control > balance by zone. It gives me a result, but I have not found in the user guide how to interpret it. For example I have ** PRESSURE DROP BY ZONE at iteration 1322 ----...
by JonasA
Fri May 04, 2018 2:23 pm
Forum: code_saturne usage
Topic: mass flow over an internal surface
Replies: 11
Views: 10621

Re: mass flow over an internal surface

Thanks for the helpful answer. I did not manage to make the balance by zone function output the mass flow but changing the b into i mostly did the tricks. I finally settle for that BFT_MALLOC(face_list, n_b_faces, cs_lnum_t); cs_selector_get_i_face_list("INLET2", &n_faces, face_list); ...
by JonasA
Mon Apr 30, 2018 10:15 am
Forum: code_saturne usage
Topic: mass flow over an internal surface
Replies: 11
Views: 10621

Re: mass flow over an internal surface

Hi! I have also tried to compute the mass flow over an internal surface. Fortunately, my surface are horizontal so I don't need to get the faces normal as they are already known. The mass flow would be D= rho u_y A I am unsure about which C function to use. The selection group INLET1 where I want to...
by JonasA
Tue Apr 24, 2018 11:12 am
Forum: Syrthes related questions
Topic: Temperature dependence thermal conductivity in Syrthes
Replies: 1
Views: 5131

Re: Temperature dependence thermal conductivity in Syrthes

Hi, In this loop, the average temperature in the cell would be in the variable tmoy if you uncomment the line data_element_moy(ng,maillnodes,t,&nrefe,&x,&y,&z,&tmoy); that get the the reference of the groups to which the cell belongs, its position and the temperature of the given...
by JonasA
Tue Apr 24, 2018 10:58 am
Forum: Syrthes related questions
Topic: Syrthes: how to program a user function
Replies: 1
Views: 3917

Re: Syrthes: how to program a user function

Hi, I may answer a bit late but the way I'd do that is to copy user_ray.c from usr_examples to the case directory and then to modify it according to your need. There is an example about how to set flux magnitude but I have not understood how it works. The time (in second) is in the variable ct. user...
by JonasA
Wed Apr 11, 2018 3:45 pm
Forum: Syrthes related questions
Topic: Faillure when partitioning mesh with more body than CPU
Replies: 2
Views: 4383

Re: Faillure when partitioning mesh with more body than CPU

Thank you I have done what you said and sent a mail to the Syrthes team. The fault is mine. I had a body meshed two times in my conduction mesh that were causing the preprocessing to crash. So the error was that some nodes were belonging to multiple parts. I should have guessed it after the debuggin...
by JonasA
Fri Mar 30, 2018 3:29 pm
Forum: Syrthes related questions
Topic: Faillure when partitioning mesh with more body than CPU
Replies: 2
Views: 4383

Faillure when partitioning mesh with more body than CPU

Dear all, Thanks to the Syrthes team for the code, I have used Syrthes 4.3 for the past few weeks and it is very fast and powerful. I had an error when trying to run a case with more than one hundred bodies, the preprocessor function syrthes-pp call scotch or metis to do the partition (both gives th...