Search found 12 matches

by jankolino
Mon Aug 19, 2019 1:41 pm
Forum: code_saturne usage
Topic: Extract 2D profiles and compute averages
Replies: 8
Views: 3790

Re: Extract 2D profiles and compute averages

Hello again, Now, I am trying to run my code faster and therefore am trying to avoid writing in files as much as possible. With that said, I want to create an array, that is not going to be reinitialized in every time step but only updated. Is there any nice solution to this or should I use cs_field...
by jankolino
Fri Aug 09, 2019 8:34 am
Forum: code_saturne usage
Topic: Extract 2D profiles and compute averages
Replies: 8
Views: 3790

Re: Extract 2D profiles and compute averages

Hello Yvan,

thanks for all the help, with your recommendations my code is running well now.

Kind regards,
Jan
by jankolino
Wed Aug 07, 2019 2:04 pm
Forum: code_saturne usage
Topic: Extract 2D profiles and compute averages
Replies: 8
Views: 3790

Re: Extract 2D profiles and compute averages

Hi there, I am sending the file through attachment. I have also tried with my own function to find the global minimum, but was not successful. I think the problem is not in the function itself, but with the parallelization. I must have done something wrong there. But as I see it, I find the local mi...
by jankolino
Tue Aug 06, 2019 2:20 pm
Forum: code_saturne usage
Topic: Extract 2D profiles and compute averages
Replies: 8
Views: 3790

Re: Extract 2D profiles and compute averages

Hello, thanks for the example. I have occurred another problem. I am calling function findpt (predefined) and am getting following error; extra_operations.o: In function `cs_user_extra_operations': extra_operations.c:(.text+0x240): undefined reference to `findpt' collect2: error: ld returned 1 exit ...
by jankolino
Thu Aug 01, 2019 1:26 pm
Forum: code_saturne usage
Topic: Extract 2D profiles and compute averages
Replies: 8
Views: 3790

Extract 2D profiles and compute averages

Hello, I am simulating flow through an annulus. I want to extract a profile at different r=R and calculate an average. I would basically average my field over phi and z. I saw that there is a 1D profile extraction possible (cs_extra_operations-extract_1d_profiles), but what would be the best way to ...
by jankolino
Tue Jul 16, 2019 7:52 am
Forum: code_saturne usage
Topic: Inlet flow with a velocity profile from some slice z = z0
Replies: 1
Views: 1689

Inlet flow with a velocity profile from some slice z = z0

Hello, I am simulating some unsteady flow through annulus. Because I am not sure of the velocity profile at the inlet (I just know desirable Reynolds numbers) and I want to create turbulent flow, I am planing to do the following procedure. Firstly, I define some random velocity profile and then afte...
by jankolino
Wed Aug 29, 2018 10:20 am
Forum: code_saturne usage
Topic: Velocity output for Melissa
Replies: 5
Views: 2410

Re: Velocity output for Melissa

HI again, I tried outputting only one velocity field at once and it does not work that either. If I try to output scalar and velocity fields it outputs scalar but does not output velocity. I do not have any other ideas currently, so any suggestions are welcome. Kind regards EDIT: Spotted the problem...
by jankolino
Wed Aug 22, 2018 7:54 am
Forum: code_saturne usage
Topic: Velocity output for Melissa
Replies: 5
Views: 2410

Re: Velocity output for Melissa

Hello, I tried to put only velocity x without a scalar, but then it does not output anything. I also tried to put everything on one writer and it does not work that way either, but didnt play with it as much. I`ll try with everything on one writer. The domain is the same for all three fields. Thanks...
by jankolino
Tue Aug 21, 2018 12:15 pm
Forum: code_saturne usage
Topic: Velocity output for Melissa
Replies: 5
Views: 2410

Velocity output for Melissa

Hi, I am using Code Saturne with Melissa software. I try to get it to output three different quantities. Scalar(concentration), velocity_x and velocity_y. I do it with cs_user_postprocess_var.f90, but I only manage to output the scalar field, the other two are empty and I am not sure what is wrong w...
by jankolino
Tue Aug 21, 2018 12:01 pm
Forum: code_saturne usage
Topic: Usage of IF, ELSE statement in mathematical expression editor
Replies: 7
Views: 3434

Re: Usage of IF, ELSE statement in mathematical expression editor

Thanks to all replies. Sorry I didnt answer earlier, but I got to make it work. It was a problem on my side.