Different grain geometries in solid-fuel rockets produce various thrust curves:
I can imagine it's not too difficult to obtain a thrust curve of a specific grain geometry with a measurement while the engine burns. But are thrust curves also obtained in any way through calculation, without physical testing? And if yes, with what methods or formulae?