IPA: /pəˌtrɒl.əˈdʒɪk.əl.i/
KK: /pɛˈtrɑlədʒɪkli/
In a way that relates to the study of rocks and their formation.
The samples were analyzed petrologically to understand their mineral composition.
Petrologically → It is formed from "petro-" (from Greek "petra", meaning rock) and "-logy" (from Greek "logia", meaning study or discourse). The word "petrologically" refers to the study or discourse concerning rocks.
Think of 'petra' meaning rock and '-logy' meaning study — so petrologically relates to the study of rocks.