The relationship in both cases is Temperature Rise = Power * thermal resistance.
- Tj-Ta is the temperature rise (from "junction" to "ambient)
- theta(ja) is the thermal resistance. And the assumption is that the data sheet gives you this value.
This relation works just like E=IR only it's temperature and heat instead of voltage and current. The relationship you gave for the transistor is in a less useful form for this purpose. You want to apply a little algebra and thus come up with:
Tj-Ta = Pd * theta(ja)
This works for resistors as well, assuming the data sheet will give you a theta value from the resistor body to air. That's the equivalent of junction-to-ambient. In all but high-power pulse operation, it's just assumed that the resistor transfers all of the dissipated power to its body, and you only worry about how it transfers to the surrounding air.
Actually, in the real world, both the resistor and the transistor can transfer a considerable amount of heat out through its leads (or pads). Since your stated equation only mentions junction-to-ambient, that's all that's addressed here.
If you can't get a theta value, you'd have to come up with an allowable maximum temperature for the resistor, and use the resistor's stated power rating to arrive at a value for theta.
From the data you provide, this indeed seems like a bad design. I also get about 600 mW dissipation in R1 in the circuit you show.
The fact that the resistor is getting really hot is direct evidence that it is dissipating significant power for its size, but not necessarily too much. Resistors can run indefinitely without harm at temperatures that would burn your finger. A finger test doesn't really tell you whether it is dissipating just within the limit, or over it.
One possibility is that the circuit isn't as you show. Perhaps there is something else going on that isn't easily visible from the outside of the board. A good test would be to measure the actual voltage across the resistor. That together with the label on the resistor will give you a definitive answer to how much power it is dissipating.
Note that 0805 resistors are labeled with 3 or 4 digits. This is a floating point format with the last digit being the exponent of 10 and the previous digits the mantissa. A 5% 820 Ω resistor will be labeled "821", which means 82 x 101 = 820.
The power dissipated by a resistor is the square of the voltage across it divided by the resistance. In common units,
$$\mathrm{W}={\mathrm{V}^2\over\mathrm{\Omega}}$$
Therefore, the voltage that causes a particular dissipation is
$$\mathrm{V} = \sqrt{\mathrm{W}\cdot\mathrm{\Omega}}$$
At 125 mW, a 820 Ω resistor will have
$$V = \sqrt{125\mathrm{mW}\cdot820\mathrm{\Omega}} = 10.12\mathrm{V}$$
across it.
If the resistor is really 820 Ω, is really only good for 125 mW, and has more than 10 V on it, then yes, this is a flawed design. From the data you've given us, these premises seem to be true.
If it turns out the resistor really is overloaded, then probably what happened is that the unit was originally designed for a lower voltage. Somebody realized they were missing too much of the market by not supporting higher voltage. Whoever was supposed to check this in engineering either didn't, was generally incompetent, or just missed this one.
Of course why it is like this doesn't matter to you. You absolutely need to reject this system. Currently, it's just some other company putting a bad product in the field. If you incorporate that into your system, you are putting a bad product in the field, and own the resulting liability, and it will by your reputation that gets damaged.
While you definitely don't want to use this product (again, assuming things really are as you say), The device is very unlikely to catch on fire as a result. Such overloaded resistors will usually just burn out and fail open. There isn't enough flammable stuff around to cause a fire. However, the resistor could burn out and open before the fire fighters arrive, giving them wrong information as to where the fire is. That's the real danger of this system. Or, the system could latch the information until manually reset, so there are no symptoms during the first incident. However, now that channel is broken and won't respond to future fires in that zone. That's obviously really bad too.
Do the voltage measurement and point out your concern to the manufacturer. It might be worth hearing what they have to say, but it would have to be something really good for me to ever trust their products again. Remember that with electrical engineers, just like with any large group of people, there are really good ones at the top end, the decent-enough majority in the middle, and incompetents at the bottom. There are certainly incompetently designed products out there. You may have found one.
Best Answer
I've seen stacked SMT resistors as a method for correcting resistor value. But I haven't yet seen it as a method for increasing power rating.
Two (2) stacked resistors could indeed dissipate more heat than just one (1). But the convective heat transfer from the bottom resistor will be hindered by the upper resistor, so the power rating of the stack would be less than 2x individual \$P_{stack of 2} < 2P_{individual}\$ .
Your desired power rating is 350mW. Nominally, you would need 3x 125mW resistors. You may have to use a larger number of resistors.
Is this a one-off or production? If it's production, consider changing the board.