nems_mom_cap mom_cap implementation for NEMS model 20171024: all codes are copied from https://github.com/feiliuesmf/nems_mom_cap.git/branches/rs116_20170616