Skip to content

add absorption examples#1

Open
vjd wants to merge 4 commits intomrgsolve:masterfrom
vjd:master
Open

add absorption examples#1
vjd wants to merge 4 commits intomrgsolve:masterfrom
vjd:master

Conversation

@vjd
Copy link
Copy Markdown

@vjd vjd commented Dec 12, 2017

Added two examples -

  • parallel absorption
  • mixed first and zero order
  • weibull (does not work - get a solver error)

Copy link
Copy Markdown

@kylebaron kylebaron left a comment

Choose a reason for hiding this comment

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

@vjd Do you mind updating examples so compartments aren't listed in $CAPTURE ? Also, I'd like to encourage using capture typedef in $TABLE. Would you mind changing that too?

I don't want to enforce a style guide or anything like that, but I'd like to request that vignettes utilize certain features just so that these features get into the examples and hopefully get used more.

$TABLE
double CP = CENT/VC;

$CAPTURE CP GUT CENT
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Remove $CAPTURE here.

dxdt_CENT = KA*GUT - (CL/VC)*CENT;

$TABLE
double CP = CENT/VC;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

capture CP = CENT/VC;

dxdt_CENT = KA*GUT - (CL/VC)*CENT;

$TABLE
double CP = CENT/VC;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

capture CP = CENT/VC;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

... and similar comment for other examples too.

$TABLE
double CP = CENT/VC;

$CAPTURE CP GUT CENT
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Remove $CAPTURE

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

... same comment for other examples too.

Copy link
Copy Markdown

@kylebaron kylebaron left a comment

Choose a reason for hiding this comment

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

@vjd can you make these minor changes ?

Comment thread absorption/weibull.Rmd
double GAMA1 = GAMA;

// Weibull function
double WB = 1 - exp(pow((-KA*TIME),GAMA1));
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@vjd move the minus sign?
`double WB = 1 - exp(-pow((KA*TIME),GAMA));``

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.

2 participants