cs_user_radiative_transfer_bcs function upgrade

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
AdamLarat
Posts: 1
Joined: Fri May 16, 2025 3:30 pm

cs_user_radiative_transfer_bcs function upgrade

Post by AdamLarat »

Hi,
I am starting a new project using Code_Saturne and I first wish to upgrade for v7.1 to v8.0.
Unfortunately, I have a user defined function cs_user_radiative_transfer_bcs which used to have the following signature :

Code: Select all

void cs_user_radiative_transfer_bcs	(	int 	nvar,
const int 	bc_type[],
int 	icodcl[],
int 	isothp[],
cs_real_t * 	tmin,
cs_real_t * 	tmax,
cs_real_t * 	tx,
const cs_real_t 	dt[],
cs_real_t 	rcodcl[],
const cs_real_t 	thwall[],
const cs_real_t 	qincid[],
cs_real_t 	hfcnvp[],
cs_real_t 	flcnvp[],
cs_real_t 	xlamp[],
cs_real_t 	epap[],
cs_real_t 	epsp[],
cs_real_t 	textp[] 
)		
when the new expected signature is now

Code: Select all

void cs_user_radiative_transfer_bcs	(	cs_domain_t * 	domain,
const int 	bc_type[],
int 	isothp[],
cs_real_t * 	tmin,
cs_real_t * 	tmax,
cs_real_t * 	tx,
const cs_real_t 	dt[],
const cs_real_t 	thwall[],
const cs_real_t 	qincid[],
cs_real_t 	hfcnvp[],
cs_real_t 	flcnvp[],
cs_real_t 	xlamp[],
cs_real_t 	epap[],
cs_real_t 	epsp[],
cs_real_t 	textp[] 
)		
The code I am running is using the nvar integer parameter and is filling up the rcodcl output vector of the v7.1. Both have disappeared in the v8.0 signature.
Could someone help me translating my user defined function to Code_Saturne_v8.0 ? 
Thanks a lot!
Yvan Fournier
Posts: 4220
Joined: Mon Feb 20, 2012 3:25 pm

Re: cs_user_radiative_transfer_bcs function upgrade

Post by Yvan Fournier »

Hello,

You can compare examples in v8.0 (https://github.com/code-saturne/code_sa ... sfer_bcs.c) and v7.0 (https://github.com/code-saturne/code_sa ... sfer_bcs.c) to see how you can adapt the code.

With the v8.0 approach, you will not need nvar anymore.

Best regards,

Yvan
Post Reply