forked from lammps/lammps
-
Notifications
You must be signed in to change notification settings - Fork 0
merge PR #8 changes and other fixes #9
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
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
a02bfaf
Possible example
jtclemm fff3a9b
Overwriting rotational with corotational
jtclemm a010ea3
Renaming corotational hclass names
jtclemm 47aa957
Doc updates
jtclemm ace00b9
rename frame options and clean up
gsalkuin 8587ee4
fix typo
gsalkuin 0eb0ddb
Update doc/src/bond_bpm_rotational.rst
gsalkuin 0c789f2
add new metamaterial example
gsalkuin 62c65e2
Simplifying pre/post compute and nhistory
jtclemm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| ############################################################################### | ||
| # Magnetically actuated rod-based mechanical metamaterial | ||
| # Gabriel Alkuino (SyracuseU) - 2026/03/31 | ||
| ############################################################################### | ||
|
|
||
| units lj | ||
| dimension 3 | ||
| boundary m m m | ||
| atom_style hybrid bpm/sphere dipole | ||
| atom_modify map yes | ||
| newton on off | ||
| comm_modify vel yes cutoff 3.0 | ||
| special_bonds lj 0.0 1.0 1.0 coul 1.0 1.0 1.0 | ||
|
|
||
| read_data metamaterial.data | ||
| group magnets type 2 | ||
| set group all density 1.0 | ||
| set group magnets density 10. | ||
|
|
||
| bond_style bpm/rotational smooth no break no | ||
| bond_coeff 1 1.0 1.0 0.1 0.5 -1 -1 -1 -1 1e-3 1e-3 1e-3 1e-3 | ||
|
|
||
| timestep 1e-4 | ||
| thermo 1000 | ||
| thermo_style custom step ke pe ebond | ||
|
|
||
| compute q all property/atom quatw quati quatj quatk | ||
| #dump 1 all custom 1000 atomDump id type x y z c_q[*] mux muy muz | ||
|
|
||
| fix 1 all nve/bpm/sphere update dipole | ||
|
|
||
| variable bz equal 0.25*ramp(0,1) | ||
| fix 2 magnets efield 0.0 0.0 v_bz | ||
|
|
||
| run 100000 | ||
|
|
||
| variable bz equal 0.25 | ||
| fix 2 magnets efield 0.0 0.0 v_bz | ||
|
|
||
| fix 3 all viscous 1e-3 | ||
| fix 4 all viscous/sphere 1e-3 | ||
|
|
||
| run 50000 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.