Embodiments receive images of a body area of a patient; identify abnormal tissue in the image; generate a data set with the abnormal tissue masked out; deform a model template in space so that features in the deformed model template line up with corresponding features in the data set; place data representing the abnormal tissue back into the deformed model template; generate a model of electrical properties of tissues in the body area based on the deformed and modified model template; and determine an electrode placement layout that maximizes field strength in the abnormal tissue by using the model of electrical properties to simulate electromagnetic field distributions in the body area caused by simulated electrodes placed respective to the body area. The layout can then be used as a guide for placing electrodes respective to the body area of the patient to apply TTFields to the body area.