Page 1 of 1

zero velocity at the wall

Posted: Thu Sep 13, 2018 5:35 pm
by Ionut G
Hello,

I am trying to set from "cs_user_boundary_conditions.f90" zero velocity at the wall.
I am using this code:

Code: Select all

call getfbr('PLATE', nlelt, lstelt)
do ilelt = 1, nlelt

  ifac = lstelt(ilelt)
  
  rcodcl(ifac, iu, 1) = 0.d0
  rcodcl(ifac, iv, 1) = 0.d0
  rcodcl(ifac, iw, 1) = 0.d0
  
enddo
I get this error: SIGSEGV signal (forbidden memory area access) intercepted!

What I'm doing wrong?

Thank you,
ionut

Re: zero velocity at the wall

Posted: Fri Sep 14, 2018 3:17 pm
by Yvan Fournier
Hello,

Did you allocate the lstelt array?

Regards,

Yvan

Re: zero velocity at the wall

Posted: Mon Sep 17, 2018 3:12 pm
by Ionut G
Hi Yvan,

yes, i've allocated it.
I attached the file too.

Thank you,
Ionut

Re: zero velocity at the wall

Posted: Tue Sep 18, 2018 12:11 am
by Yvan Fournier
Hello,

Why did you comment some arguments from the cs_f_user_boundary_conditions subroutine ?

This is probably the cause of the crash.

Regards,

Yvan

Re: zero velocity at the wall

Posted: Tue Sep 18, 2018 9:43 am
by Ionut G
Hi,

I thought that if I don't need them I could comment them. I didn't want to use more memory if is not needed for the software.

I uncommented them and now is working.

Thank you,
Ionut