Search found 30 matches
- Thu Oct 11, 2018 1:15 pm
- Forum: code_saturne usage
- Topic: Regular malloc/free in CS
- Replies: 2
- Views: 2609
Regular malloc/free in CS
Hello, I am wondering is it obligatory to use BFT_MALLOC/BFT_FREE in the user functions (boundary conditions and initilization)? Or it is possible to use usual malloc/free? I am wondering about that because I am using regular malloc/free and looks like I have some memory leaks, but not sure where it...
- Thu Oct 04, 2018 6:18 pm
- Forum: code_saturne usage
- Topic: Rough wall boundary conditions by cs_user_boundary_conditions.c
- Replies: 4
- Views: 3489
Re: Rough wall boundary conditions by cs_user_boundary_conditions.c
Thanks for your reply, Yvan!
That approach works for me! )
Best regards,
Konstantin
That approach works for me! )
Best regards,
Konstantin
- Tue Oct 02, 2018 12:49 pm
- Forum: code_saturne usage
- Topic: Rough wall boundary conditions by cs_user_boundary_conditions.c
- Replies: 4
- Views: 3489
Re: Rough wall boundary conditions by cs_user_boundary_conditions.c
Thank you for reply, Yvan! It is still not clear to me where is the value of "nvar" come from? .. rcodcl[2*n_b_faces*nvar + ivarv*n_b_faces + face_id] = 0.001; //roughness value z0 ... And I have the other question about rough wall. Maybe you can give some recommendations for first cell si...
- Mon Oct 01, 2018 2:48 pm
- Forum: code_saturne usage
- Topic: Rough wall boundary conditions by cs_user_boundary_conditions.c
- Replies: 4
- Views: 3489
Rough wall boundary conditions by cs_user_boundary_conditions.c
Hello, I am trying to impose boundary conditions by using c-functions, but not so many examples with that. So the question is: How to set "z0" value for rough wall? I was trying to do it similarly to a fortran code: const int keyvar = cs_field_key_id("variable_id"); //botom cs_se...
- Wed Sep 12, 2018 10:14 am
- Forum: code_saturne usage
- Topic: Usage of cs_user_postprocess.c
- Replies: 6
- Views: 4389
Re: Usage of cs_user_postprocess.c
Thanks a lot, Yvan! That helps me
Best regards,
Konstantin
Best regards,
Konstantin
- Tue Sep 11, 2018 1:53 pm
- Forum: code_saturne usage
- Topic: Usage of cs_user_postprocess.c
- Replies: 6
- Views: 4389
Re: Usage of cs_user_postprocess.c
I've tried that values, and also these: cs_coord_3_t start = {0.1, 0.0, 0.1}; cs_coord_3_t end = {0.1, 1.1, 0.1}; but it does not help. Still same error: cs_probe.c:573: Fatal error. Stop execution since the given cs_probe_set_t structure is empty. Please check your settings. My mesh is 1D maybe it ...
- Tue Sep 11, 2018 12:45 pm
- Forum: code_saturne usage
- Topic: Usage of cs_user_postprocess.c
- Replies: 6
- Views: 4389
Re: Usage of cs_user_postprocess.c
Thanks for answering,
I am pretty sure that coordinates ( (0.0, 0.0, 0.0) and (0.0, 4.0, 0.0)) is inside the mesh. My mesh size is x:[0; 0.5], y:[0; 4.0], z[0; 0.5]. UPD: The same error when I trying to define some "bad" segment ( (10.0, 10.0, 10.0) and (10.0, 14.0, 10.0))
I am pretty sure that coordinates ( (0.0, 0.0, 0.0) and (0.0, 4.0, 0.0)) is inside the mesh. My mesh size is x:[0; 0.5], y:[0; 4.0], z[0; 0.5]. UPD: The same error when I trying to define some "bad" segment ( (10.0, 10.0, 10.0) and (10.0, 14.0, 10.0))
- Tue Sep 11, 2018 9:00 am
- Forum: code_saturne usage
- Topic: Usage of cs_user_postprocess.c
- Replies: 6
- Views: 4389
Usage of cs_user_postprocess.c
Good morning, Could you help me with my problem. I am using Code_Saturne 5.2. And I am trying to use cs_user_postprocess.c to define profiles. It does not work even for very simple definition. I was adapting file EXAMPLES/cs_user_postprocess-profiles.c for my case. But it gives me error: cs_probe.c:...
- Thu May 24, 2018 11:45 am
- Forum: code_saturne usage
- Topic: User roughness
- Replies: 0
- Views: 36557
User roughness
Dear all, Could you tell the definition of user roughness parameter which is set up in the GUI. Is it "ks" value (Nikuradze roughness) or "y0" value. Or some other value? In the source code (https://www.code-saturne.org/cms/sites/default/files/docs/5.1/doxygen/src/cs__wall__funct...
- Thu Nov 02, 2017 7:46 pm
- Forum: code_saturne usage
- Topic: Rough dimensionless dist yplus
- Replies: 4
- Views: 3920
Re: Rough dimensionless dist yplus
I just want to update this topic. Because I have the same problem. I need to calculate flow over very rough seabed (y0 = 0.4).I guess it is necessary to use cell size > y0, but I want to use fine mesh to study the phenomena that affect objects of size 0.1. What the practice should be applied in that...