Skip to content

Conversation

@menon-karthik
Copy link
Member

Closes #76

Added a hyperbolic tangent valve as described in #76.

I also made some other changes along the way:

  • Updated the docs in a few places. The main updates were to remove the Wiki page in README, add a few more references, and fix the documentation in BlockType, BlockFactory, ClosedLoopCoronaryRight and SimulationParameters (which weren't getting built by Doxygen before).
  • I moved InputParameters from BlockType to Parameters
  • Renamed some variables in SimulationParameters to make it more readable
  • Uncommented some debug messages (which I actually used while debugging) since they are executed only in the debug build and they don't need to be commented.

@menon-karthik menon-karthik requested a review from mrp089 November 29, 2023 17:24
@menon-karthik menon-karthik added the enhancement New feature or request label Nov 29, 2023
Copy link
Member

@mrp089 mrp089 left a comment

Choose a reason for hiding this comment

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

Nice work, @menon-karthik! And thank you for fixing a bunch of unrelated things!

I have a few minor comments. My only concern is if we break something by introducing upstream/downstream vessels.

* @brief Valve (tanh) block.
*
* Models the pressure drop across a diode-like valve, which is implemented as a
* non-linear hyperbolic-tangent resistor. See \cite pfaller2019importance.
Copy link
Member

Choose a reason for hiding this comment

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

Add equation number to (questionable) reference?

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

@mrp089
Copy link
Member

mrp089 commented Nov 29, 2023

And nice work, @kharold23! Feel free to reply to the comments as well (if you want).

@menon-karthik menon-karthik mentioned this pull request Dec 2, 2023
@mrp089
Copy link
Member

mrp089 commented Dec 2, 2023

Splendid!

@mrp089 mrp089 merged commit d0e3676 into SimVascular:master Dec 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add hyperbolic tangent valve

3 participants