Direct numerical simulation of flexible molecules and data-driven molecular conformation