Hello Yvan,
I understand the limit. Rewriting my code with one-dimensional Fortran arrays (and simple pointer in C), it worked perfectly.
Thanks for your help!
Best regards,
Jeremie
Search found 25 matches
- Thu Mar 24, 2022 11:30 am
- Forum: code_saturne usage
- Topic: use variables defined in cs_user_modules.f90 in a C routine
- Replies: 5
- Views: 2401
- Wed Mar 23, 2022 2:19 pm
- Forum: code_saturne usage
- Topic: use variables defined in cs_user_modules.f90 in a C routine
- Replies: 5
- Views: 2401
Re: use variables defined in cs_user_modules.f90 in a C routine
Dear Yvan, I am finally stuck with allocatable arrays in Fortran for using them in C. I used sthe subroutines provided in the cs_user_module-user-arrays.f90 routine in EXAMPLES to declare, init and pass array pointer to C with th ehelp of c_loc() . I initialized my array in cs_user_initialization.f9...
- Mon Mar 21, 2022 5:00 pm
- Forum: code_saturne usage
- Topic: use variables defined in cs_user_modules.f90 in a C routine
- Replies: 5
- Views: 2401
Re: use variables defined in cs_user_modules.f90 in a C routine
Thank you very much for your detailed guideline. Indeed it worked well with constant and arrays with constant dimensions. I'm now in the process of working with allocatable arrays, it's a little bit more difficult... I've seen some elements in EXAMPLES directory that should help me. Best regards, Je...
- Tue Mar 15, 2022 3:21 pm
- Forum: code_saturne usage
- Topic: use variables defined in cs_user_modules.f90 in a C routine
- Replies: 5
- Views: 2401
use variables defined in cs_user_modules.f90 in a C routine
Hello, I search in the forum and user guide but I didn't find an answer. I'm using CS6.1. I would like to import a module defined in cs_user_modules.f90 (specially vars which are used by a number of other Fortran routines) in a C routine (cs_user_postprocess.c). How could I do that? Thanks for your ...
- Mon Aug 31, 2020 8:07 am
- Forum: code_saturne usage
- Topic: Lagrangien module and boundary conditions
- Replies: 8
- Views: 4691
Re: Lagrangien module and boundary conditions
Dear Yvan,
This is exactly what I need.
Again, with all my thanks for your support,
Jeremie
This is exactly what I need.
Again, with all my thanks for your support,
Jeremie
- Sat Aug 29, 2020 9:10 am
- Forum: code_saturne usage
- Topic: Lagrangien module and boundary conditions
- Replies: 8
- Views: 4691
Re: Lagrangien module and boundary conditions
Hello Yvan, Thank you very much for your help, I've installed CS6 and your solution is actually working! I would need another information on cs_glob_time_step structure : when I work with a constant time step, I can use cs_glob_time_step->dt_ref to retrieve the current time step but when I use a var...
- Wed Aug 26, 2020 3:47 pm
- Forum: code_saturne usage
- Topic: Lagrangien module and boundary conditions
- Replies: 8
- Views: 4691
Re: Lagrangien module and boundary conditions
Both...
I will try an upgrade for using these improvements of the Lagrangian module.
Another question : it's not clear for me how to play with time step, frequency and number of particles for defining my injection between (and only between) t=t_start and t=t_stop?
Best regards,
Jeremie
I will try an upgrade for using these improvements of the Lagrangian module.
Another question : it's not clear for me how to play with time step, frequency and number of particles for defining my injection between (and only between) t=t_start and t=t_stop?
Best regards,
Jeremie
- Wed Aug 26, 2020 1:54 pm
- Forum: code_saturne usage
- Topic: Lagrangien module and boundary conditions
- Replies: 8
- Views: 4691
Re: Lagrangien module and boundary conditions
Thank you very much for your answer Yvan.
Unfortunately, I don't have access to CS6 for the moment due to configuration issues.
Would I be able to the same thing in uslain() subroutine for CS4?
Best regards,
Jeremie
Unfortunately, I don't have access to CS6 for the moment due to configuration issues.
Would I be able to the same thing in uslain() subroutine for CS4?
Best regards,
Jeremie
- Wed Aug 26, 2020 9:25 am
- Forum: code_saturne usage
- Topic: Lagrangien module and boundary conditions
- Replies: 8
- Views: 4691
Lagrangien module and boundary conditions
Dear CS team & saturnians, I'm using the lagrangien module of Code_Saturne for studying the dispersion of particles. What I would like to do is to define an inlet boundary condition for particles which is discontinued : at a certain time T0 (that comes after a restart) the particles are entering...
- Mon May 13, 2019 9:30 am
- Forum: code_saturne usage
- Topic: Adjacency, connectivity and mass flux through internal faces
- Replies: 2
- Views: 2531
Re: Adjacency, connectivity and mass flux through internal faces
Thank you Yvan for your feedback, I'm going to process your advises.
Best regards,
Jeremie
Best regards,
Jeremie