Skip to content

Draft: add support for nanoparticle models#148

Open
pm-blanco wants to merge 84 commits intopyMBE-dev:mainfrom
pm-blanco:db_nanoparticles
Open

Draft: add support for nanoparticle models#148
pm-blanco wants to merge 84 commits intopyMBE-dev:mainfrom
pm-blanco:db_nanoparticles

Conversation

@pm-blanco
Copy link
Collaborator

@pm-blanco pm-blanco commented Mar 9, 2026

Closes #144

Added

  • Added support for nanoparticle templates and instances in the canonical storage layer via NanoparticleTemplate and NanoparticleInstance.
  • Added new API methods pmb.define_nanoparticle and pmb.create_nanoparticle to define and build nanoparticles with configurable core particles and surface site composition.
  • Added nanoparticle site-construction utilities in pyMBE.lib.nanoparticle_tools for spherical site distribution, patch construction, and overlap checks.
  • Added sample script samples/nanoparticles_grxmc.py to demonstrate nanoparticle setup and simulation workflows.
  • Added dedicated nanoparticle unit tests (testsuite/nanoparticle_unit_tests.py) and coverage for nanoparticle-related code paths.

Changed

  • Rigid-body setup is now integrated into nanoparticle creation, allowing nanoparticles to be initialized as rigid objects directly from pmb.create_nanoparticle.
  • Nanoparticle construction now supports primary/secondary site partitioning and multi-patch layouts driven by template parameters.

Fixed

pinedaps and others added 30 commits March 11, 2025 19:23
…ke more robust. Remove unnecessary pieces of code in pyMBE (assign_molecule and get_type_map)
…distribution of sites and two different kinds of sites (one main site and a secondary site)
…create_nanoparticle(), specifically: reading data from pmb.df and creating the center of the nanoparticles
…or uniformly distributing points on a sphere pmb.uniform_distribution_sites_on_sphere(). First draft of the fucntion create_patches()
…f main sites. Need to be fully tested and add the secondary sites to the output list
…he secondary patch implemented, but not working properly. Final report of the construction working.
… Implementation of the calculation of distances between sites and dipole and quadrupole moments. Improving docs of auxiliary functions and readability of the code.
Pablo and others added 25 commits February 4, 2026 09:38
…emplates with nested residues, continue refactoring samples
Co-authored-by: pinedaps <sebastian.pineda_pineda@chem.lu.se>
Co-authored-by: Sebastian Pineda <sebastian.pineda_pineda@chem.lu.se>
…rticles. Updating the code to the new database format of pyMBE

Co-authored-by: Sebastian Pineda <sebastian.pineda_pineda@chem.lu.se>
… instance logic

Co-authored-by: Sebastian Pineda <sebastian.pineda_pineda@chem.lu.se>
…e_nanoparticle

Co-authored-by: Sebastian Pineda <sebastian.pineda_pineda@chem.lu.se>
…unning fine

Co-authored-by: Sebastian Pineda <sebastian.pineda_pineda@chem.lu.se>
Co-authored-by: Sebastian Pineda <pinedaps@chem.lu.se>
Co-authored-by: Sebastian Pineda <pinedaps@chem.lu.se>
Co-authored-by: Sebastian Pineda <pinedaps@chem.lu.se>
@pm-blanco pm-blanco added enhancement New feature or request bug Something isn't working labels Mar 9, 2026
@pm-blanco pm-blanco added this to the pyMBEv2.0.0 milestone Mar 9, 2026
@pm-blanco pm-blanco linked an issue Mar 9, 2026 that may be closed by this pull request
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for nanoparticle models

2 participants