Open
Description
📝 Description of the feature
Add ambient sources in core layer inside the core.source module
follow the same architecture based on the exisiting source example
set the default value as those in SCDM Speos.
create documentation example inside the core section
create unit test for thermic source in core section
Make sure the code coverage is higher 85%
Update the .toml file to use ansys_api_speos to 0.15.0
💡 Steps for implementing the feature
No response
🔗 Useful links and references
Example of creating uniform ambient source.
Other ambient type can be defined via defining the ambient=ProtoSourceTemplate.Ambient
from ansys.speos.core.kernel.source_template import ProtoSourceTemplate
from ansys.speos.core.kernel.spectrum import ProtoSpectrum
source_t_db=speos.client.source_templates()
spec_db = speos.client.spectrums()
spec_bb_2500 = spec_db.create(
ProtoSpectrum(
name="blackbody_2500",
description="blackbody spectrum - T 2500K",
blackbody=ProtoSpectrum.BlackBody(temperature=2500.0),
)
)
ambient_uniform = source_t_db.create(message=ProtoSourceTemplate(name="ambient_uniform", description="Uniform", ambient=ProtoSourceTemplate.Ambient(uniform_ambient=ProtoSourceTemplate.Ambient.UniformAmbient(luminance=1000, mirrored_extent=False, spectrum_guid=spec_bb_2500.key))))