Search found 23 matches
- Mon Mar 11, 2024 12:39 am
- Forum: code_saturne usage
- Topic: streamwise periodicity
- Replies: 26
- Views: 28307
Re: streamwise periodicity
Hi Yvan, Sorry for the bothering. But there are something wrong in my last post. I have confirmed that the actual delta enthalpy is not 0 between two consecutive time steps. The following are two consecutive time steps outputs in the run_solver.log: time step 1: feedback_term: 0.000000 total_enthalp...
- Fri Mar 08, 2024 2:14 pm
- Forum: code_saturne usage
- Topic: streamwise periodicity
- Replies: 26
- Views: 28307
Re: streamwise periodicity
Hi Yvan, Thanks for your reply. One point is that It might not related to the code now. The delta enthalpy might be actually really small (might be 0) between two consecutive time steps (since the temperature condition is just two different constant values for ground and air, no heat emission). So I...
- Fri Mar 08, 2024 4:05 am
- Forum: code_saturne usage
- Topic: streamwise periodicity
- Replies: 26
- Views: 28307
Re: streamwise periodicity
Hi Yvan, Thanks for your prompt feedback! When I add the parallel sums, I obtain expected values for the total volume as shown in the run_solver.log. "feedback_term: 0.000000e+00 total_enthalpy: 1.529331e+02 total_enthalpy_prev: 1.529331e+02 total_volume: 5.237434e-01" The total volume 5.2...
- Fri Mar 08, 2024 1:52 am
- Forum: code_saturne usage
- Topic: streamwise periodicity
- Replies: 26
- Views: 28307
Re: streamwise periodicity
Hi Yvan, Thanks for your feedback. I've made some revisions to the heat sink term code. Please find the latest version attached. The code works but the results are wrong. I use the following two lines (line 30-31) to get the temperature at the current time step and the previous time step. const cs_r...
- Tue Feb 27, 2024 2:07 am
- Forum: code_saturne usage
- Topic: streamwise periodicity
- Replies: 26
- Views: 28307
Re: streamwise periodicity
Dear Yvan, Thanks! There is no compile error after the revision based on your suggestion. However it's stuck at the initialization stage as shown in the attachment. The simulation will not stop until I cancel it, but there is no output after the steps showing in the run_solver.log. Could you please ...
- Thu Feb 22, 2024 3:28 am
- Forum: code_saturne usage
- Topic: streamwise periodicity
- Replies: 26
- Views: 28307
Re: streamwise periodicity
Hi Yvan, Thanks! Regarding the heat sink term code, I've provided the revised file. Despite multiple revisions, there remains one unresolved error. This error is specifically related to the following line: const cs_real_3_t centroid = domain->mesh_quantities->cell_cen . The compile error report is a...
- Wed Feb 21, 2024 4:34 pm
- Forum: code_saturne usage
- Topic: streamwise periodicity
- Replies: 26
- Views: 28307
Re: streamwise periodicity
Hi Yvan, Sorry for the bothering again. For the heat sink term: I wonder if there an example of user functions to add heat sink term? I wrote a draft code (as attached) based on the discussed object but it doesn't work and no error report. There might be some errors since I am not familiar with writ...
- Mon Feb 19, 2024 6:50 pm
- Forum: code_saturne usage
- Topic: streamwise periodicity
- Replies: 26
- Views: 28307
Re: streamwise periodicity
Hi Yvan, Thanks for your suggestions about the thermal sink term. I will work on implementing this code into my case. I am reaching out to seek help with an issue related to the cs_user_source_terms.c you provided. I just revised the selected surface to "INLET" part and added the necessary...
- Fri Feb 16, 2024 3:49 pm
- Forum: code_saturne usage
- Topic: streamwise periodicity
- Replies: 26
- Views: 28307
Re: streamwise periodicity
Hi, Yvan, Thanks! Sorry for the late reply. I've been exploring a method involving controller to dynamically adjust the momentum source term based on the difference between target mass flow and current mass flow at inlet. This approach seems quite similar to the one you provided. I will compare thes...
- Tue Jan 23, 2024 6:00 pm
- Forum: code_saturne usage
- Topic: streamwise periodicity
- Replies: 26
- Views: 28307
Re: streamwise periodicity
Hi Yvan,
Thanks! I will wait for your feedback.
Best regards,
Ximeng
Thanks! I will wait for your feedback.
Best regards,
Ximeng