<p>
<span style="font-family:SimSun;">Hi everyon</span>
</p>
<p>
<span style="font-family:SimSun;">I am going to established a time-changed magnetic field boundary condition which coreesponds a current pulse for magnetic NohCylindrical simulation.(32.2.4) When I use a <strong>Grid_bcApplyToRegionSpecialized </strong><span style="font-family:SimSun;"></span>to</span> give a user defi<span style="font-family:SimSun;"><span style="font-family:SimSun;"><span style="font-family:SimSun;"><span style="font-family:SimSun;"><span style="font-family:SimSun;"><span style="font-family:SimSun;"><span style="font-family:SimSun;"><span style="font-family:SimSun;"><span style="font-family:SimSun;"><span style="font-family:SimSun;"><span style="font-family:SimSun;"><span style="font-family:SimSun;"><span style="font-family:SimSun;"><span style="font-family:SimSun;"><span style="font-family:SimSun;"><span style="font-family:SimSun;"><span style="font-family:SimSun;"><span style="font-family:SimSun;"><span style="font-family:SimSun;"><span style="font-family:SimSun;"><span style="font-family:SimSun;">ned condition to upper face, just like this</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span>
</p>
<p>
<span style="font-family:SimSun;"></span>
</p>
<p>
<br>
</p>
<p>
<strong>if(face==LOW) then</strong><br>
<strong> select case (bcTypeActual)</strong><br>
<strong> case default</strong><br>
<strong>!! print*,'boundary is',bcType</strong><br>
<strong>!! call Driver_abortFlash("unsupported boundary condition on Lower Face")</strong><br>
<strong> end select</strong><strong> </strong><br>
<strong> else !(face==HIGH)</strong><br>
<strong> select case (bcTypeActual)</strong><br>
<strong> </strong><br>
<strong> case(USER_DEFINED)</strong><br>
<strong> k=guard</strong><br>
<strong> if(isFace)k=k+1</strong><br>
<strong> </strong><br>
<strong> do i = 1,guard</strong><br>
<strong> if (ivar == MAGZ_VAR) then</strong><br>
<strong> regionData(k+i,1:je,1:ke,ivar)= 2.0e4<span style="font-family:SimSun;"></span></strong><strong> </strong><br>
<strong> else</strong><br>
<strong> regionData(k+i,1:je,1:ke,ivar)= regionData(k,1:je,1:ke,ivar)</strong><br>
<strong> end if<span style="font-family:SimSun;"></span></strong><br>
<strong> end do</strong><br>
<br>
<strong> case default</strong><br>
<strong>!! print*,'boundary is',bcType</strong><br>
<strong>!! call Driver_abortFlash("unsupported boundary condition on Upper Face")</strong><br>
<strong> end select</strong><br>
<strong> end if</strong><br>
<strong> end if</strong><br>
<strong> end do</strong>
</p>
<p>
However<span style="font-family:SimSun;"><span style="font-family:SimSun;"><span style="font-family:SimSun;"><span style="font-family:SimSun;"><span style="font-family:SimSun;"><span style="font-family:SimSun;"><span style="font-family:SimSun;"><span style="font-family:SimSun;">, I meet some errors like <span style="font-family:SimSun;"></span></span></span></span></span></span></span></span></span><br>
<strong></strong>
</p>
<span style="font-family:SimSun;"></span><img src="cid:181e8c62$1$1683804a82e$Coremail$zdy0903$stu.xjtu.edu.cn">
<p>
<span style="font-family:SimSun;">What should I do for that?</span>
</p>
<p>
<span style="font-family:SimSun;">A next question is that how can I set a time-changed boundary condition? </span><span style="font-family:SimSun;">What is the time-variable to be used here?</span>
</p>
<p>
<span style="font-family:SimSun;"><br>
</span>
</p>
<p>
<span style="font-family:SimSun;">Zhang</span>
</p>