Search found 32 matches

by C.FLAG.
Fri Apr 21, 2023 8:11 am
Forum: code_saturne usage
Topic: Boundary forces and internal coupling
Replies: 1
Views: 1024

Boundary forces and internal coupling

Hello, I am running a case with internal coupling and natural convection (Boussinesq). On the solid side, the pressure seems exactly constant and the velocity is zero, as expected. However, when looking at Yplus on coupled faces or when looking at the average / variance of the field "boundary_f...
by C.FLAG.
Mon May 11, 2020 4:44 pm
Forum: code_saturne usage
Topic: Computation of ustar during a restart on a frozen field
Replies: 3
Views: 2916

Re: Computation of ustar during a restart on a frozen field

Hello, Here is the modification in tridim so that I can use ustar in the scalar boundary conditions when doing a restart on a frozen velocity field : I simply call condli twice at the first time step of the restart. iterns = 1 do while (iterns.le.nterup) ! Calls user BCs and computes BC coefficients...
by C.FLAG.
Sun May 10, 2020 7:10 am
Forum: code_saturne usage
Topic: Computation of ustar during a restart on a frozen field
Replies: 3
Views: 2916

Re: Computation of ustar during a restart on a frozen field

Thanks Yvan,

During initialization and at the first time step, the friction velocity is exactly zero when used in scalar boundary conditions. But at the second time step, it is updated and no longer zero! I will try to figure out how to force earlier update of the field.

Regards,
Cédric
by C.FLAG.
Wed May 06, 2020 11:59 am
Forum: code_saturne usage
Topic: Computation of ustar during a restart on a frozen field
Replies: 3
Views: 2916

Computation of ustar during a restart on a frozen field

Hello,

It looks like the field "ustar" is zero when trying to use it when imposing scalar boundary conditions after a restart on a frozen velocity field. Any idea to force the code to estimate it ?

Thanks,
Cédric
by C.FLAG.
Sat Mar 28, 2020 8:21 am
Forum: code_saturne usage
Topic: ibeta
Replies: 2
Views: 2704

Re: ibeta

Hello, It looks like the parameter ibeta is automatically defined in base/varpos.f90 when idilat=0 or irovar=1. When idilat=0, the user should provide the thermal expansion coefficient in a user subroutine, such as usphyv (cs_user_physical_properties.f90). Check cs_user_parameters-base.c if you want...
by C.FLAG.
Fri Mar 27, 2020 6:50 pm
Forum: Installation issues
Topic: Code_Saturne in a docker container
Replies: 3
Views: 3515

Re: Code_Saturne in a docker container

Re,

Some updated Dockerfile scripts can be found at https://github.com/code-saturne/code_sa ... -container.

Regards,
Cédric
by C.FLAG.
Fri Mar 27, 2020 3:37 pm
Forum: Installation issues
Topic: Code_Saturne in a docker container
Replies: 3
Views: 3515

Re: Code_Saturne in a docker container

Hello Yvan, Here is an updated script with CGNS and a debug build ; FROM ubuntu:18.04 as builder RUN apt-get update -y RUN apt-get upgrade -y RUN DEBIAN_FRONTEND=noninteractive apt-get install -y tzdata RUN apt-get install -y \ wget zlib1g-dev \ vim gedit git gitk \ gfortran g++ gcc make cmake \ pyt...
by C.FLAG.
Fri Mar 27, 2020 11:32 am
Forum: Installation issues
Topic: Code_Saturne in a docker container
Replies: 3
Views: 3515

Code_Saturne in a docker container

Hello, Following a relatively large number of installation issues (unexperienced users, exotic platforms, ...), I expose below an experiment towards a more universal way to use Code_Saturne based on Docker. Below is a Dockerfile for Code_Saturne 6.0.2 with MED and HDF5 based on Ubuntu 18: FROM ubunt...
by C.FLAG.
Wed Feb 26, 2020 8:54 am
Forum: code_saturne usage
Topic: Question about the mapped inlet subroutine
Replies: 16
Views: 10061

Re: Question about the mapped inlet subroutine

Hello,

It might be a good idea to include a source term in the momentum equation in the recycling region to compensate the friction at the wall? See cs_user_source_terms-momentum.c for example.

EDIT: you can also use the GUI to add a source term

Kind regards,
Cédric
by C.FLAG.
Tue Jan 07, 2020 2:11 pm
Forum: code_saturne usage
Topic: Change restart file from studymanager
Replies: 2
Views: 2504

Re: Change restart file from studymanager

Thank you for your reply Yvan. Current seemingly working solution is very similar to my original post : from model.StartRestartModel import StartRestartModel ... restart = StartRestartModel(case) restart.setRestartPath("/folder/smgr/case/RESU/simulation/checkpoint") Kind regards, Cédric