A lot of questions about exporting to IFC beyond current (2021 R1) capabilities. OpenRail exports civil meshes with properties. It also export alignments.
IFC rail is in the scope but not available yet. Meanwhile IFC export from OpenRail is limited.However, there are other ways to export to IFC such as:
and maybe others.
Some few answers and video here.