Skip to content

Senichi/time dependent speed up - #32

Open
senichenkov wants to merge 8 commits into
iterorganization:feature/wg-releasefrom
senichenkov:senichi/time_dependent_speed-up
Open

Senichi/time dependent speed up#32
senichenkov wants to merge 8 commits into
iterorganization:feature/wg-releasefrom
senichenkov:senichi/time_dependent_speed-up

Conversation

@senichenkov

Copy link
Copy Markdown
Contributor

These changes were suggested by Lisa K 'with her outstanding great wisdom'. Briefly speaking, sometimes it is necessary to keep terms like Ted(ne)/d(dt) (which are available only with 'b2mndt_style=2', but simultaneously do not care about true time-dependent mode - e.g. apply the speed-up by increasing dtee, dtei, dtmo in some regions. In such case it is worth to replace error messages with warning ones.
Additionally, for such cases a treatment of terms like Te
d(ne)/d(dt) is changed to speed-up the internal energy (or full momentum) even if dtee*rxf .ne. 1.0. Actually, a 'third' option from my User Forum presentation is implemented.

Comment thread src/equations/b2npht.F
else ! separate ion and neutral energy equation
wrk2 = 1.5_R8*(dv%ni(:,1)-psnl%ni(:,1))
& *ts_factor*psnl%ti/dtim*geo%cvVol
wrk2(mpg%nCi+1:mpg%nCv) = 0.0_R8

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is wrk2 in the guard cells still zeroed out in this case but not in the others above? I see later it does not matter, but it should be made consistent with the other cases.

Comment thread src/user/b2mod_wrsrt.F
write(hlp_frm,'(a,i3,a,i3,a,i3,a)') '(a1,6x,a4,5x,',
, nr_tmp*nrg_tmp,'(4x,a8,i2.2),',
, ns_tmp*nsp_tmp,'(4x,a8,a2),1x,',
, ns_tmp*nsp_tmp,'(4x,a8,a2),',

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you show me an example of the file before and after this format change?

Comment thread src/user/b2mod_wrsrt.F
@@ -352,7 +364,7 @@ subroutine b2wrsrti(nregionv,switch)
if (nfl_tmp.gt.0) then
write(hlp_frm,'(a,i3,a)') '(1p,e16.7,',
+ nr_tmp*nrg_tmp + ns_tmp*nsp_tmp + na_tmp*nrg_tmp*nsp_tmp,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The e3 part of the format here is so that 10^{-100} will be printed as 1.0E-100 instead of 1.0-100, which can confise some analysis scripts. You should not have removed it.

@@ -252,13 +253,13 @@ subroutine read_b2mod_numerics_namelist(nCv,ns,nsmin,nsmax,nnreg,
do ireg = 0, nnreg(0)
solveet(ireg) = (solveee(ireg).and.solveei(ireg))
& .and.solveet(ireg)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you should rephrase the (now) warning messages below to be more informative. If the user is asking for a dynamic simulation with the total momentum and/or energy equations, the message should ask whether this is intentional and under which conditions this can be a good or bad idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants