New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document how to add new blocks #66
Comments
@menon-karthik I've been going through the code and it is was indeed not clear how to add a new element (block). Understanding how to add a new element would be made easier if the architecture and the concepts and nomenclature used in the implementation were documented. I will open an Issue for that. |
Based on #79, I think these are the broad steps in adding a new block: 1. Add the new block to the following lists/dictionaries:
2. Create a new class inherited from
3. Now implement the governing equations for the block.
4. Add the new files ( This looks quite daunting when listed out like this. We need a way to explain this better before putting it into the documentation. |
I just followed those steps to implement a chamber block and I got it working, so they're definitely helpful instructions! Some changes I think would be helpful: clarify that BlockClass is also in BlockType.h and then just format the instructions so they're broken up more. I think the most daunting thing about the instructions is that it looks like a lot of words. Maybe more bullet points with subsections/indenting to help group things would make things easier to follow? |
Just noting so we don't forget - this should be added to the Simvascular documentation when it's done. |
@menon-karthik Do you mean just briefly mention that it is possible to add new blocks in the SimVascular documentation and adding a link to the GitHub documentation? The add new blocks documentation is related to the solver implementation so it should just be placed in GitHub. @mrp089 What do you think? |
Yup. |
It would be nice to have a guide on how to add new blocks to the solver for new developers. I am working with @kharold23 and @aabrown100-git to add a new valve block. I will try and document the steps along the way and later add that to the documentation.
The text was updated successfully, but these errors were encountered: