Simulated star formations with RAMSES