One of the things that was a major factor in creating the USA was the English laws that allowed their army to be quartered in civilian homes. It all seems to be of no matter today, but was very important in colonial times. In 1768 Boston with a population of about 15,000 was forced to provide food, housing, and other supplies for 4,000 soldiers. They were in fact the local law enforcement and put down any civil unrest, We were all in the past taught about the Boston Massacre. In many of the popular SHTF stories today, the Army arrives and then the story end as there are no more problems to write about. This not likely to be the case in the real world. The Army in fact is at best a legal war lord that we have some say in controlling. Its arrival may allow normalization of life and thus allow things to return to normal. It in itself does not create any new resources and all it can do is help in supplying order that allows a normal means of production to exist and to distribute existing resources. It does not create the fuel it uses, nor the food it distributes nor the weapons that it has. The truck patrolling for security is using fuel that could be used by a tractor, power a generator at the hospital, or pump water. The soldiers in the truck could be cutting fire wood, harvesting crops, rebuilding infrastructure, etc. The Army in its basic sense is a combination of a merchant with a law enforcement division. Both exist only as long as society, willingly or unwillingly is both willing and able to provide for their keep. The Walmart empire may continue to exist in all its might. It however does not create anything and will continue only as long as we as a society continue to select it as our barging chip with the rest of the world. That will only continue as long as we see a value in its existence. That is not always the case. Sears, K Mart, a lot of other groups no longer exist as we withdrew resources from them. Given the rapidly developing power structure within the US in which more and more of the power of the state is being controlled by the urban lower class, it is all too likely that the military and the urban groups will arrive at your house, move in, and take your food, fuel, etc and distribute it to the needy. Of course if you are allowed to stay in your home, you will work for the good of society. Stalin, Hitler, POL Pet, Mao, and much of colonial Africa has shown how well that works out. The military did maintain control as those in the cities were hungry, but those who raised the food were dead. Recent election and the efforts of some political groups to modify the civil service and military in such a way that they may control it and recent national election may indicate that the military and civil law may well not be in the best interests of a rural prepper just trying to keep his head down. In much of the USA it is already a lost cause. Laws limiting the amount of fuel you can store, what animals you can raise, and the permitting process either limit what you can do or require you to be in a data base that allows a central authority to take your "excess", often over a few days, and distribute them for the common good. Of course the authorities in order to maintain the common good are going to both get first crack at it and insure storage of goods so they can continue to maintain order. While that may not happen in the USA, it has been the common pattern in civilizations for the last few thousand years. The Roman Army was always I am sure the last to starve in a famine as was the government officials who oversaw them Constitutional Amendments – Amendment 3 – “Quartering of Troops”
I'd be more concerned with the number of Americans living paycheck to paycheck and not being able to work or even get paid, then add to this the fact that there are more renters now than ever before. Homelessness, chaos, riots, fire, and ruin await. Now think about all the illegals on the dole who are quartered in fancy hotels or all of the Puerto Rico and Dominican immigrants paid to move to small towns across the country. Factor in all of the illegals and legal migrants, compare to traditional Americans. I wouldn't be the least bit worried about troops because the logistics have changed dramatically over the decades. Modern armies bring their own supplies and living arrangements. I don't see the 3rd Amendment being a hitch at all, and it would apply to militia far more likely than the armed forces, which by the way ought to be disbanded when we are not at war and it is only the Navy that should be active permanently.