Search found 25 matches

by Oscar
Wed Oct 25, 2017 10:38 am
Forum: code_saturne usage
Topic: How to compute TKE Budgets
Replies: 6
Views: 11804

Re: How to compute TKE Budgets

Does anyone have a suggestion for solving this problem, I am very keen on understanding how CS can be used to compute these budget terms!
by Oscar
Tue Sep 12, 2017 9:28 pm
Forum: code_saturne usage
Topic: How to compute TKE Budgets
Replies: 6
Views: 11804

Re: How to compute TKE Budgets

Thank you for your response. Main terms of interest that I want to calculate are for example for the velocity field u_i = U_i + u'_i the terms: turbulent dissipation: \epsilon = \nu \left\langle \frac{\partial u'_i}{\partial x_j} \left[ \frac{\partial u'_i}{\partial x_j}+\frac{\partial u'_j}{\partia...
by Oscar
Sun Sep 10, 2017 5:58 pm
Forum: code_saturne usage
Topic: How to compute TKE Budgets
Replies: 6
Views: 11804

How to compute TKE Budgets

I am attempting to compute turbulent kinetic energy budget terms in an LES in CS V5. For example, in order to calculate the dissipation term I require to compute the average of the product of the velocity gradient tensor with itself. Calculation of time averages is currently done in cs_user_paramete...
by Oscar
Thu Oct 13, 2016 8:11 pm
Forum: code_saturne usage
Topic: Problem when using les_inflow module
Replies: 7
Views: 5391

Re: Problem when using les_inflow module

Hi Yvan, I found the problem and it was (as expected) a simple mistake on my part. I was not setting the intended velocity at the inlet when specifying the entry velocity in the 'advanced option'. On this point I have a follow up question regarding this issue: what is the difference between the foll...
by Oscar
Thu Oct 13, 2016 11:40 am
Forum: code_saturne usage
Topic: Problem when using les_inflow module
Replies: 7
Views: 5391

Re: Problem when using les_inflow module

Ok so the problem does not seem to be with the type of turbulence method because when I run without the advanced subroutine in the cs_user_les_inflow.f90 I now have correct looking mass fluxes at the inlet and outlet! Could it be that I am simply inadvertently assigning zero inlet velocity when usin...
by Oscar
Thu Oct 13, 2016 9:40 am
Forum: code_saturne usage
Topic: Problem when using les_inflow module
Replies: 7
Views: 5391

Re: Problem when using les_inflow module

Thanks for the quick reply. I am not sure how to activate the debug build as I am running on a cluster and I don't think I can pick and choose at the moment. However I will try the other Les inflow options and see if that solves the NaN problem. If you would like I can also send you the actual mesh ...
by Oscar
Thu Oct 13, 2016 9:06 am
Forum: code_saturne usage
Topic: Problem when using les_inflow module
Replies: 7
Views: 5391

Re: Problem when using les_inflow module

Hello, You can see the listing file inside the Same directory of SRC. I can't post my mesh because it's too big but in general it is a good quality hexahedron mesh. The CFL number is as you can see in the listing file. I have also tried with much smaller time steps but the result is the same. I find...
by Oscar
Wed Oct 12, 2016 1:17 am
Forum: code_saturne usage
Topic: Problem when using les_inflow module
Replies: 7
Views: 5391

Problem when using les_inflow module

Can someone tell me why I get the strange output in listing (zero residuals and the message "Incoming flow detained on faces...") This happened when I started attempting to use the les inflow module with the SEM enabled. Please refer to my SRC and listing (both contained inside the zip file)
by Oscar
Tue Oct 11, 2016 8:14 pm
Forum: code_saturne usage
Topic: Turbomachinery and mixing planes
Replies: 7
Views: 10522

Re: Turbomachinery and mixing planes

Brian - are you saying that in the case of two blade rows (say a rotor and stator row) it is possible to have a single moving rotor mesh passage which slides past a single stator mesh passage (provided there is an integer ratio between the number of blades) in code_saturne!? If so I would be very in...
by Oscar
Mon Oct 10, 2016 4:24 pm
Forum: code_saturne usage
Topic: Rotating reference frame with subroutines
Replies: 1
Views: 2417

Re: Rotating reference frame with subroutines

Apologies - I think I see now that the rotation vector specified in rotation_define has elements that are the omega in each direction! However I am not that the above is the correct way to set up the simulation in a rotating reference frame. Could someone confirm?