A system of cause-effect representation and simulation for computer-aided design