[off topic] Given your background,I was wondering if you could offer some clarification if I'd read some Bs or just misunderstood. Long ago I had read something in a petrochemical book, maybe I got wrong, but one little section I skimmed over seemed to point out a modern refinery cracking plant could use vegetable input stock with I think was a caveat in regard to cleaning or addition by-products. Is this feasible or done, or was I reading a fluffy passage that wasn't fact checked properly?
Yes, Hydroprocessing units at refineries can either co-process vegetable oil with hydrocarbons or run 100% on vegetable oil after some modifications.
Vegetable oils are tri-glycerides. These molecules can be cracked into three long chain paraffins and a propane molecule by reacting them with hydrogen at high temperature and pressure over a catalyst. This makes a raw diesel fuel that then needs to be isomerized to lower the cloud point (basically when it begins to freeze). The end result is a drop in replacement for fossil diesel fuel that burns smoother and cleaner.
Two refineries in the SF Bay Area have converted from fossil fuel operation to manufacturing this renewable diesel.
Fun fact: over 70% of diesel sold in California is now renewable or bio diesel. Both types start with tri glycerides - either vegetable oil, waste cooking oil or animal fats.