Electric arc initialization

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
alexandre.lebouvier

Electric arc initialization

Post by alexandre.lebouvier »

Hello,

I use the electric arc module (ielarc = 2) of CS 2.2.1, but it seems that the code does not enter the cs_user_initialization file where I define my hot column (through the enthalpy) for the ignition of the arc. That line does not appear in the listing file for example :

9001 format( /,&
' ELECTRIC MODULE' ,/,&
' variables initialization by user' ,/,&
/)

My file is based on the example given in the software. No problem for the other specific loops like uselrc. Is there an option somewhere ?

Thank you

Alex
Jacques Fontaine
Posts: 118
Joined: Mon Feb 20, 2012 2:07 pm

Re: Electric arc initialization

Post by Jacques Fontaine »

Hello,

Could you post your:
listing, user fortrans, xml, and if it's possible your mesh.
Ty,
JF
alexandre.lebouvier

Re: Electric arc initialization

Post by alexandre.lebouvier »

Hello,

My mesh is too big, but it was working fine on CS 2.0_rc2.
I attached my files.

Alexandre
Attachments
plasma_cs2.2.tar.gz
(53.19 KiB) Downloaded 482 times
Jacques Fontaine
Posts: 118
Joined: Mon Feb 20, 2012 2:07 pm

Re: Electric arc initialization

Post by Jacques Fontaine »

ippmod(ielarc) = 2 so you enter in :

Code: Select all

 
elseif (ippmod(ielarc).ge.1) then

  if (ntcabs.eq.1) then
    write(nfecra,9011)
  endif

  return

endif
before your print.
alexandre.lebouvier

Re: Electric arc initialization

Post by alexandre.lebouvier »

This is not really my point.I may not be clear. My problem is that the hot column I define (L256, cs_user_initialization) is not read by the code and at the first time step, I get the same initial temperature in the whole domain. Looking at deeply the initialization file, I saw that I don't get for example some of the messages I should get in the listing file like these ones : 'ELECTRIC ARC MODULE : THERMAL PROPERTIES ARE READ IN A FILE' or 'ELECTRIC MODULE variables initialization by user'. That makes me think that the initialization file is maybe not used in my case...

Alexandre
Jacques Fontaine
Posts: 118
Joined: Mon Feb 20, 2012 2:07 pm

Re: Electric arc initialization

Post by Jacques Fontaine »

Hello,

Sorry, I'm not be clear.

L175 there is a "return". If ippmod(ielarc) (=2) is never changed, the code enters in cs_user_ninitalization and returns to the main program at line 175. The code under line 175 is not taken into account.

As explained in the example you must remove the code between :

TEST_TO_REMOVE_FOR_USE_OF_SUBROUTINE_START
and
TEST_TO_REMOVE_FOR_USE_OF_SUBROUTINE_END

in order to use the end of subroutine.
Best regards,
JF
alexandre.lebouvier

Re: Electric arc initialization

Post by alexandre.lebouvier »

Thank you very much, my case is working fine now!
Post Reply