NumSim
Este é um repositório para métodos numéricos em C++ e Python.
Install / Use
/learn @ffernandoalves/NumSimREADME
NumSim
Este é um repositório para métodos numéricos em C++ e CPython. Os "metódos númericos" vão ser escritos em c++ e,
por enquanto, a utilização do Python é repassar o dados iniciais para os metódos (em c++) e fazer a visualização
da simulação (matplotlib).
Os "metodos" init dos "metódos númericos" são escritos em CPython.
Livro de referência: Numerical Simulation in Molecular Dynamics: Numerics, Algorithms, Parallelization, Applications by Michael Griebel, Gerhard Zumbusch, Stephan Knapek
Instalação
A versão do Python utilizada na implementação é python3.7.
git clone https://github.com/ffernandoalves/NumSim.git
cd NumSim
python3.7 setup.py install
<!---
Usando virtualenv:
git clone https://github.com/ffernandoalves/NumSim.git
cd NumSim
virtualenv -p /usr/bin/python3.7 venv
source venv/bin/activate
venv/bin/python3.7 setup.py install
ex: ```venv/bin/python3.7 my_sim.py```
-->
Exemplo
from numsim import init_verlet, load_data_generated, start_animation
data_in = "examples/data/sun_system.csv"
data_out = "examples/data/output.csv"
init_verlet(data_in, data_out, delta_t=0.05, t_end=30.5)
df = load_data_generated(data_out)
start_animation(df)

TODO
-
[ ] Melhorar o modulo
animation.pye torná-lo mais geral;- [x] Renomear nomes de variáveis, funções e classes;
- [ ] Salvar simulação, formatos:
- [x]
mp4; - [x]
gif; - [ ]
image (png).
- [x]
- [ ] Ajustar o Time da simulação.
-
[ ] Criar um script para manipulação de dados, em um arquivo separado, em
c++(vervelocity_verlet.cpp); -
[ ] Implementar os capítulos restantes [1].
- [ ] Refazer a simulação em
c++(OpenGL).
Referências
[1] Griebel, M.; Knapek, S.; Zumbush, G. Numerical Simulation in Molecular Dynamics; Springer: Berlin‐Heidelberg, 2007.
Licença
Related Skills
node-connect
342.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
claude-opus-4-5-migration
84.7kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
frontend-design
84.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
model-usage
342.0kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
