Jump to content

Color + divergence in smoke sims?


Recommended Posts

Hi.

I'm curious how fields get affected by adding divergence (i'm not asking about projection stage or velocity field)? Adding it will add density, but what about my additional scalar or vector fields (eg Cd)?

How can i control values in color (vector) field using divergence (or combustion model, which is the same in this aspect),

Cause while density is being added due to divergence, other fields stay the same and just advected by velocity (so the same amount of my color field vs bigger amount of density)?

Thanks in advance.

Link to comment
Share on other sites

I am not sure I completely get your question, but here is an explanation that might help.

Divergence in effect acts as a force. If I recall right where you have a positive value in your divergence field the gas / smoke / fluid will expand outward from that point, while if the value is negative then the fluid will be attracted in towards that point. It is the advection by velocity step that actually achieves this. So it doesn't directly affect density, though clearly it may do over time. Typically you have diversity at the source of an explosion, for example, to force the smoke / fire cloud outwards, but you are probably also emitting / sourcing density at that point also, so the density at the centre of the divergence might not change.

You can advect any field you like using exactly the same method as the solver uses for the density. If you use the add field tool from the shelf then it will set up not only your field but the advection by velocity for your field, so that your colour field, for example will be affected in the same way by divergence as the main smoke or fire.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...