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
update inclusion benchmark #788
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,20 @@ | ||
#!/bin/bash | ||
|
||
# global refinement: | ||
for r in "3" "4" "5" "6" "7" "8" | ||
echo "--Global Refinement--" | ||
for r in "4" "5" "6" "7" "8" "9" | ||
do | ||
echo "ref $r:" | ||
cp global.prm.base temp.prm | ||
echo "subsection Mesh refinement" >>temp.prm | ||
echo "set Output directory = output/global/ref$r" >> temp.prm | ||
echo "subsection Mesh refinement" >> temp.prm | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you really want to run your model for different averaging algorithms (as your description of the pull request implies), this is the place where it should go. for avg in "none" "arithmetic average" "geometric average" "harmonic average" "pick largest" "project to Q1" And then this will be changed automatically in the input file. And then you don't even need the line 'set Material averaging = none' in the input file you added above. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. agreed, @bjs2 can you add that? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, I can do that. |
||
echo "set Initial global refinement = $r" >> temp.prm | ||
echo "end" >> temp.prm | ||
./aspect temp.prm | grep Error | ||
./aspect temp.prm | grep DoFs | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Now the output is just the number of DoFs instead of the error, but I think you want both, right? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. no. We print dofs and error on the same line. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, sure, I didn't think about that. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @tjhei Do you think it would be better to print the DoFs and errors on separate lines? It could make the readability better. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think having everything in one line is very convenient (copy&paste into a spreadsheet etc). |
||
rm -f temp.prm | ||
done | ||
|
||
|
||
# adaptive refinement: | ||
./aspect adaptive.prm | egrep "freedom|Error" | ||
echo "--Adaptive Refinement--" | ||
./aspect adaptive.prm | grep DoFs | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be good to use introspection.block_indices.pressure (and the same for the velocity) instead of just 0 and 1 here. Also, if the direct solver is used, pressure and velocity are in the same block, and then the numbers 0 and 1 are suddenly not correct any more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agreed