Month: October 2024
Cell and double in datatable
I work with Excel xlsx files where matrix represent scores (integers between 0 and 3). Each column corresponds to a visit and each row to a patient (with size around 100×200).
The data may contains MD and NA code, or empty cells (sometimes a few, sometime a lot), in function of the visits and the progress of the study.
With readtable (without option), I obtain double and cell.
I don’t understand how MATLAB makes its choice. Sometimes the column is in cell while there are only integers (?), sometime the column is in cell (or in double) for only few MD/NA codes, sometimes the colum is in double with a majority of nan (for empty cells or MD/NA codes).
In PowerQuery everything is in integer and only column with full empty cells are coded in text, so I don’t think it’s a problem with EXCEL.
Which rules MATLAB uses when importing ?
Do you have any suggestion ?
Thank you in advance.
SAINTHILLIER Jean MarieI work with Excel xlsx files where matrix represent scores (integers between 0 and 3). Each column corresponds to a visit and each row to a patient (with size around 100×200).
The data may contains MD and NA code, or empty cells (sometimes a few, sometime a lot), in function of the visits and the progress of the study.
With readtable (without option), I obtain double and cell.
I don’t understand how MATLAB makes its choice. Sometimes the column is in cell while there are only integers (?), sometime the column is in cell (or in double) for only few MD/NA codes, sometimes the colum is in double with a majority of nan (for empty cells or MD/NA codes).
In PowerQuery everything is in integer and only column with full empty cells are coded in text, so I don’t think it’s a problem with EXCEL.
Which rules MATLAB uses when importing ?
Do you have any suggestion ?
Thank you in advance.
SAINTHILLIER Jean Marie I work with Excel xlsx files where matrix represent scores (integers between 0 and 3). Each column corresponds to a visit and each row to a patient (with size around 100×200).
The data may contains MD and NA code, or empty cells (sometimes a few, sometime a lot), in function of the visits and the progress of the study.
With readtable (without option), I obtain double and cell.
I don’t understand how MATLAB makes its choice. Sometimes the column is in cell while there are only integers (?), sometime the column is in cell (or in double) for only few MD/NA codes, sometimes the colum is in double with a majority of nan (for empty cells or MD/NA codes).
In PowerQuery everything is in integer and only column with full empty cells are coded in text, so I don’t think it’s a problem with EXCEL.
Which rules MATLAB uses when importing ?
Do you have any suggestion ?
Thank you in advance.
SAINTHILLIER Jean Marie table, readtable, importing excel data MATLAB Answers — New Questions
Shapoint Online Doesnt return result if i write whole senteces
Hello
ill explain with example.
i have a document that names covering ” technical tricks in 2024″ and this documents a lot of word ” technical tricks”.
The documents is under Tech guide document library but i want to search it from home page.
If i search on home page search bar “Technical tricks”, nothing returns
If i search on document library search, see the results
if i search “Technical tricks*” , see many results
If i search “technical tricks” included quotation mark, see all results
if i search “tricks” , see many results
Played around query rules but nothing changed for that behavior.
what could be the issue?
Helloill explain with example.i have a document that names covering ” technical tricks in 2024″ and this documents a lot of word ” technical tricks”.The documents is under Tech guide document library but i want to search it from home page.If i search on home page search bar “Technical tricks”, nothing returnsIf i search on document library search, see the resultsif i search “Technical tricks*” , see many resultsIf i search “technical tricks” included quotation mark, see all resultsif i search “tricks” , see many resultsPlayed around query rules but nothing changed for that behavior.what could be the issue? Read More
Conditional Formatting Rules
Hello,
Is someone able to advise if it is possible to add a rule whereby the below (V & W) Column boxes are only highlighted when a selection has been made on a previous dropdown? Is there a way I can grey the box out or similar?
I can do basic conditional formatting but unsure if this falls into it.
Thank you in advance
Hello,Is someone able to advise if it is possible to add a rule whereby the below (V & W) Column boxes are only highlighted when a selection has been made on a previous dropdown? Is there a way I can grey the box out or similar? I can do basic conditional formatting but unsure if this falls into it. Thank you in advance Read More
1D heat conduction with heat generation in a plain plate
Heat is generated uniformly in a stainless steel plate having k 20 W/mK. The thickness of the plate is 1 cm and heat generation rate is 500 MW/m²; If the two side of plate are maintained at 100°C and 200°C, respectively, Calculate the temperature at the centre of the plate.Heat is generated uniformly in a stainless steel plate having k 20 W/mK. The thickness of the plate is 1 cm and heat generation rate is 500 MW/m²; If the two side of plate are maintained at 100°C and 200°C, respectively, Calculate the temperature at the centre of the plate. Heat is generated uniformly in a stainless steel plate having k 20 W/mK. The thickness of the plate is 1 cm and heat generation rate is 500 MW/m²; If the two side of plate are maintained at 100°C and 200°C, respectively, Calculate the temperature at the centre of the plate. heat generation MATLAB Answers — New Questions
Programmatically get bus data type of In Bus Element block
I’m looking to get the bus data type used in ‘In bus element’ blocks in Matlab environment, e.g. using the ‘get_param()’ function or similar. The In Bus Element selects 1 element from the bus, but I’m not interested in the type of the element, but I need the bus type (name) of the associated parent bus.
What I’m trying to do is to list the root level ports and associated bus data types of a given model that uses only In Bus Element and Out Bus Element blocks with specified bus data types.
The bus element ports are mapped to an Autosar interface, I’m not sure if that changes anything.I’m looking to get the bus data type used in ‘In bus element’ blocks in Matlab environment, e.g. using the ‘get_param()’ function or similar. The In Bus Element selects 1 element from the bus, but I’m not interested in the type of the element, but I need the bus type (name) of the associated parent bus.
What I’m trying to do is to list the root level ports and associated bus data types of a given model that uses only In Bus Element and Out Bus Element blocks with specified bus data types.
The bus element ports are mapped to an Autosar interface, I’m not sure if that changes anything. I’m looking to get the bus data type used in ‘In bus element’ blocks in Matlab environment, e.g. using the ‘get_param()’ function or similar. The In Bus Element selects 1 element from the bus, but I’m not interested in the type of the element, but I need the bus type (name) of the associated parent bus.
What I’m trying to do is to list the root level ports and associated bus data types of a given model that uses only In Bus Element and Out Bus Element blocks with specified bus data types.
The bus element ports are mapped to an Autosar interface, I’m not sure if that changes anything. simulink, matlab MATLAB Answers — New Questions
I wanna make 2D compressible fluid simulation when off gas ventilation at battery thermal runaway
clear; clc; close all;
% Simulation type:
% 1 – Particle Advection
% 2 – Velocity Heat Map
% 3 – Curl Heat Map
TYPE = 1;
% Simulation parameters
s = 100; % Grid size
ar = 5; % Aspect ratio
n = 120000; % Maximum number of particles
timestep = 0.01; % Time step
% Physical constants
initial_density = 1.225; % kg/m^3 (Air at sea level)
initial_temperature = 300; % K
initial_pressure = 101325; % Pa
R = 287; % Specific gas constant for air (J/kg/K)
viscosity = 1.8e-5; % Dynamic viscosity (Pa.s)
heat_diffusion = 0.001; % Heat diffusion coefficient
% Vent properties for thermal runaway
vent_temperature = 500; % High temperature vented gas (K)
vent_density = 0.5; % Low density vented gas (kg/m^3)
vent_velocity = 1; % High velocity out of the vent (m/s)
%vent_pressure_threshold = 2 * initial_pressure; % Vent opens when pressure exceeds this value
% Initialize colormap
jetMap = colormap(jet);
negJetMap = flipud(jetMap);
% Define vent/cube vertices
a = 40;
b = 60;
c = 50;
d = 55;
% Create grid
[X, Y] = meshgrid(1:s*ar, 1:s);
% Initialize fields for compressible flow
rho = ones(s, s*ar) * initial_density; % Density
T = ones(s, s*ar) * initial_temperature; % Temperature
p = ones(s, s*ar) * initial_pressure; % Pressure
vx = zeros(s, s*ar); % Velocity in x
vy = zeros(s, s*ar); % Velocity in y
% Initial positions of particles
[px, py] = meshgrid(0:d-c, a:b);
% Store initial positions for inflow
pxo = px;
pyo = py;
% Set up figure for visualization
f = figure(1);
set(f, ‘WindowState’, ‘maximized’);
% Simulation parameters
total_time = 10; % Total simulation time (adjust this as necessary)
num_steps = total_time / timestep; % Total number of time steps
% Set up figure for visualization
f = figure(1);
set(f, ‘WindowState’, ‘maximized’);
% Main simulation loop (for a fixed number of time steps)
for step = 1:num_steps
start = tic;
vent_pressure_threshold = sum(abs(p(:))); % Vent opens when pressure exceeds this value
if max(sum(p(1:d-c, a:b))) >= vent_pressure_threshold
% Update the venting region with high-temperature, high-velocity gas
T(1:d-c, a:b) = vent_temperature; % High temperature for vented gas
rho(1:d-c, a:b) = vent_density; % Low density for vented gas
vx(1:d-c, a:b) = vent_velocity; % High velocity out of the vent in x-direction
vy(1:d-c, a:b) = 0; % No vertical velocity for now
end
% Apply boundary conditions (no-slip walls and open boundaries)
vx(1, 🙂 = 0; vy(1, 🙂 = 0; % Top boundary (no-slip)
vx(end, 🙂 = 0; vy(end, 🙂 = 0; % Bottom boundary (no-slip)
vx(:, 1) = 0; vy(:, 1) = 0; % Left boundary (no-slip)
vx(:, end) = vx(:, end-1); % Open boundary (allow gas to exit freely)
vy(:, end) = vy(:, end-1); % Open boundary (allow gas to exit freely)
% Update pressure using the equation of state (Ideal Gas Law)
p = rho .* R .* T;
% Continuity equation (mass conservation)
drho_dt = -divergence(rho .* vx, rho .* vy);
% Momentum equations for compressible Navier-Stokes (simplified)
dvx_dt = -(vx .* gradient(vx) + vy .* gradient(vx)) …
– (1 ./ rho) .* gradient(p) …
+ viscosity * del2(vx); % Viscous term
dvy_dt = -(vx .* gradient(vy) + vy .* gradient(vy)) …
– (1 ./ rho) .* gradient(p) …
+ viscosity * del2(vy);
% Energy equation (heat transfer due to venting gas) (simplified)
dT_dt = -vx .* gradient(T) – vy .* gradient(T) …
+ heat_diffusion * del2(T);
% Update fields for the next timestep(matrix..?)
rho = rho + drho_dt * timestep;
vx = vx + dvx_dt * timestep;
vy = vy + dvy_dt * timestep;
T = T + dT_dt * timestep;
% Advect velocity field using Runge-Kutta 4th order method =>입자의 속도=vx,
% vy/ 속도장=pvx, pvy
[pvx, pvy] = RK4(X, Y, vx, vy, -1);
vx = interp2(vx, pvx, pvy, ‘cubic’, 0);
vy = interp2(vy, pvx, pvy, ‘cubic’, 0);
% Visualization and display updates can remain the same
if TYPE == 1
% Advect particles using Runge-Kutta 4th order method
[px, py] = RK4(px, py, vx, vy, timestep);
% Ensure px, py remain within the grid
px = max(min(px, s*ar), 1); % Constrain px within grid range
py = max(min(py, s), 1); % Constrain py within grid range
% 벤트 영역에 있는 입자들을 벤트 외부로 이동시키기 위한 조건 추가
% 벤트 내에 있는 입자들의 위치를 벤트 외부로 업데이트
inside_vent = (px >= 1 & px <= d-c & py >= a & py <= b);
px(inside_vent) = px(inside_vent) + vent_velocity * timestep;
% 벤트 영역을 벗어난 입자들이 계속 밖으로 나갈 수 있도록 처리
[pxo, pyo] = meshgrid(0:d-c, a:b);
% Add inflow particles only if vent opens (pressure threshold exceeded)
if max(max(p(a:b, c:d))) >= vent_pressure_threshold
px = [px; pxo];
py = [py; pyo];
end
% Plot particles
scatter(px(:), py(:), 1, ‘filled’);
axis equal;
axis([0 s*ar 0 s]);
xticks([]);
yticks([]);
hold on;
% Highlight vent/cube region
rectangle(‘Position’, [0, a, d-c, b-a], ‘EdgeColor’, ‘r’, ‘LineWidth’, 2);
stop = toc(start);
FPS = 1/stop;
% Update title with simulation metrics
title(sprintf("Pressure: %.5f # Particles: %d FPS: %.2f", …
sum(abs(p(:))) / (s*ar), length(px), FPS));
hold off;
drawnow;
elseif TYPE == 2
% Visualize velocity magnitude
velocity_Mag = sqrt(vx.^2 + vy.^2);
velocity_Mag = imresize(velocity_Mag, 10, ‘bicubic’);
imagesc(velocity_Mag);
colormap(negJetMap);
xticks([]);
yticks([]);
axis equal;
stop = toc(start);
FPS = 1/stop;
title(sprintf("FPS: %.2f", FPS));
drawnow;
elseif TYPE == 3
% Visualize curl field (vorticity)
CURL = abs(curl(vx, vy));
CURL = imresize(CURL, 10, ‘bicubic’);
imagesc(CURL);
colormap(negJetMap);
xticks([]);
yticks([]);
axis equal;
drawnow;
end
end
% Function for Runge-Kutta 4th order method for advection
function [x_new, y_new] = RK4(px, py, vx, vy, h)
k1x = interp2(vx, px, py, ‘linear’, 0);
k1y = interp2(vy, px, py, ‘linear’, 0);
k2x = interp2(vx, px + h/2 * k1x, py + h/2 * k1y, ‘linear’, 0);
k2y = interp2(vy, px + h/2 * k1x, py + h/2 * k1y, ‘linear’, 0);
k3x = interp2(vx, px + h/2 * k2x, py + h/2 * k2y, ‘linear’, 0);
k3y = interp2(vy, px + h/2 * k2x, py + h/2 * k2y, ‘linear’, 0);
k4x = interp2(vx, px + h * k3x, py + h * k3y, ‘linear’, 0);
k4y = interp2(vy, px + h * k3x, py + h * k3y, ‘linear’, 0);
x_new = px + h/6 * (k1x + 2*k2x + 2*k3x + k4x);
y_new = py + h/6 * (k1y + 2*k2y + 2*k3y + k4y);
end
Hi everyone, I am struggling with making code which can simulate 2D compressible fluid which is off gas when battery thermal runaway situation. I made initial condition for particles inside the rectangle area before vent isn’t destructed. After pressure is over the certain pressure threshold, vent become destructed and particles should move outside of rectangle area.
Right now, code upon is just showing particles inside vent(red rectangle), and calculating pressure value is too massive. I wanna modify this code to make particles move outside of vent after certain pressure value.
Method of updating model is based on continuity equation, Navier-Stokes momentum equation, Energy equation & Runge-Kutta 4th method. Main problem is with type 1. Mainly, what I wanna show is particle movement after the vent is destructed. Please help me, I’m waiting for u guys advise.clear; clc; close all;
% Simulation type:
% 1 – Particle Advection
% 2 – Velocity Heat Map
% 3 – Curl Heat Map
TYPE = 1;
% Simulation parameters
s = 100; % Grid size
ar = 5; % Aspect ratio
n = 120000; % Maximum number of particles
timestep = 0.01; % Time step
% Physical constants
initial_density = 1.225; % kg/m^3 (Air at sea level)
initial_temperature = 300; % K
initial_pressure = 101325; % Pa
R = 287; % Specific gas constant for air (J/kg/K)
viscosity = 1.8e-5; % Dynamic viscosity (Pa.s)
heat_diffusion = 0.001; % Heat diffusion coefficient
% Vent properties for thermal runaway
vent_temperature = 500; % High temperature vented gas (K)
vent_density = 0.5; % Low density vented gas (kg/m^3)
vent_velocity = 1; % High velocity out of the vent (m/s)
%vent_pressure_threshold = 2 * initial_pressure; % Vent opens when pressure exceeds this value
% Initialize colormap
jetMap = colormap(jet);
negJetMap = flipud(jetMap);
% Define vent/cube vertices
a = 40;
b = 60;
c = 50;
d = 55;
% Create grid
[X, Y] = meshgrid(1:s*ar, 1:s);
% Initialize fields for compressible flow
rho = ones(s, s*ar) * initial_density; % Density
T = ones(s, s*ar) * initial_temperature; % Temperature
p = ones(s, s*ar) * initial_pressure; % Pressure
vx = zeros(s, s*ar); % Velocity in x
vy = zeros(s, s*ar); % Velocity in y
% Initial positions of particles
[px, py] = meshgrid(0:d-c, a:b);
% Store initial positions for inflow
pxo = px;
pyo = py;
% Set up figure for visualization
f = figure(1);
set(f, ‘WindowState’, ‘maximized’);
% Simulation parameters
total_time = 10; % Total simulation time (adjust this as necessary)
num_steps = total_time / timestep; % Total number of time steps
% Set up figure for visualization
f = figure(1);
set(f, ‘WindowState’, ‘maximized’);
% Main simulation loop (for a fixed number of time steps)
for step = 1:num_steps
start = tic;
vent_pressure_threshold = sum(abs(p(:))); % Vent opens when pressure exceeds this value
if max(sum(p(1:d-c, a:b))) >= vent_pressure_threshold
% Update the venting region with high-temperature, high-velocity gas
T(1:d-c, a:b) = vent_temperature; % High temperature for vented gas
rho(1:d-c, a:b) = vent_density; % Low density for vented gas
vx(1:d-c, a:b) = vent_velocity; % High velocity out of the vent in x-direction
vy(1:d-c, a:b) = 0; % No vertical velocity for now
end
% Apply boundary conditions (no-slip walls and open boundaries)
vx(1, 🙂 = 0; vy(1, 🙂 = 0; % Top boundary (no-slip)
vx(end, 🙂 = 0; vy(end, 🙂 = 0; % Bottom boundary (no-slip)
vx(:, 1) = 0; vy(:, 1) = 0; % Left boundary (no-slip)
vx(:, end) = vx(:, end-1); % Open boundary (allow gas to exit freely)
vy(:, end) = vy(:, end-1); % Open boundary (allow gas to exit freely)
% Update pressure using the equation of state (Ideal Gas Law)
p = rho .* R .* T;
% Continuity equation (mass conservation)
drho_dt = -divergence(rho .* vx, rho .* vy);
% Momentum equations for compressible Navier-Stokes (simplified)
dvx_dt = -(vx .* gradient(vx) + vy .* gradient(vx)) …
– (1 ./ rho) .* gradient(p) …
+ viscosity * del2(vx); % Viscous term
dvy_dt = -(vx .* gradient(vy) + vy .* gradient(vy)) …
– (1 ./ rho) .* gradient(p) …
+ viscosity * del2(vy);
% Energy equation (heat transfer due to venting gas) (simplified)
dT_dt = -vx .* gradient(T) – vy .* gradient(T) …
+ heat_diffusion * del2(T);
% Update fields for the next timestep(matrix..?)
rho = rho + drho_dt * timestep;
vx = vx + dvx_dt * timestep;
vy = vy + dvy_dt * timestep;
T = T + dT_dt * timestep;
% Advect velocity field using Runge-Kutta 4th order method =>입자의 속도=vx,
% vy/ 속도장=pvx, pvy
[pvx, pvy] = RK4(X, Y, vx, vy, -1);
vx = interp2(vx, pvx, pvy, ‘cubic’, 0);
vy = interp2(vy, pvx, pvy, ‘cubic’, 0);
% Visualization and display updates can remain the same
if TYPE == 1
% Advect particles using Runge-Kutta 4th order method
[px, py] = RK4(px, py, vx, vy, timestep);
% Ensure px, py remain within the grid
px = max(min(px, s*ar), 1); % Constrain px within grid range
py = max(min(py, s), 1); % Constrain py within grid range
% 벤트 영역에 있는 입자들을 벤트 외부로 이동시키기 위한 조건 추가
% 벤트 내에 있는 입자들의 위치를 벤트 외부로 업데이트
inside_vent = (px >= 1 & px <= d-c & py >= a & py <= b);
px(inside_vent) = px(inside_vent) + vent_velocity * timestep;
% 벤트 영역을 벗어난 입자들이 계속 밖으로 나갈 수 있도록 처리
[pxo, pyo] = meshgrid(0:d-c, a:b);
% Add inflow particles only if vent opens (pressure threshold exceeded)
if max(max(p(a:b, c:d))) >= vent_pressure_threshold
px = [px; pxo];
py = [py; pyo];
end
% Plot particles
scatter(px(:), py(:), 1, ‘filled’);
axis equal;
axis([0 s*ar 0 s]);
xticks([]);
yticks([]);
hold on;
% Highlight vent/cube region
rectangle(‘Position’, [0, a, d-c, b-a], ‘EdgeColor’, ‘r’, ‘LineWidth’, 2);
stop = toc(start);
FPS = 1/stop;
% Update title with simulation metrics
title(sprintf("Pressure: %.5f # Particles: %d FPS: %.2f", …
sum(abs(p(:))) / (s*ar), length(px), FPS));
hold off;
drawnow;
elseif TYPE == 2
% Visualize velocity magnitude
velocity_Mag = sqrt(vx.^2 + vy.^2);
velocity_Mag = imresize(velocity_Mag, 10, ‘bicubic’);
imagesc(velocity_Mag);
colormap(negJetMap);
xticks([]);
yticks([]);
axis equal;
stop = toc(start);
FPS = 1/stop;
title(sprintf("FPS: %.2f", FPS));
drawnow;
elseif TYPE == 3
% Visualize curl field (vorticity)
CURL = abs(curl(vx, vy));
CURL = imresize(CURL, 10, ‘bicubic’);
imagesc(CURL);
colormap(negJetMap);
xticks([]);
yticks([]);
axis equal;
drawnow;
end
end
% Function for Runge-Kutta 4th order method for advection
function [x_new, y_new] = RK4(px, py, vx, vy, h)
k1x = interp2(vx, px, py, ‘linear’, 0);
k1y = interp2(vy, px, py, ‘linear’, 0);
k2x = interp2(vx, px + h/2 * k1x, py + h/2 * k1y, ‘linear’, 0);
k2y = interp2(vy, px + h/2 * k1x, py + h/2 * k1y, ‘linear’, 0);
k3x = interp2(vx, px + h/2 * k2x, py + h/2 * k2y, ‘linear’, 0);
k3y = interp2(vy, px + h/2 * k2x, py + h/2 * k2y, ‘linear’, 0);
k4x = interp2(vx, px + h * k3x, py + h * k3y, ‘linear’, 0);
k4y = interp2(vy, px + h * k3x, py + h * k3y, ‘linear’, 0);
x_new = px + h/6 * (k1x + 2*k2x + 2*k3x + k4x);
y_new = py + h/6 * (k1y + 2*k2y + 2*k3y + k4y);
end
Hi everyone, I am struggling with making code which can simulate 2D compressible fluid which is off gas when battery thermal runaway situation. I made initial condition for particles inside the rectangle area before vent isn’t destructed. After pressure is over the certain pressure threshold, vent become destructed and particles should move outside of rectangle area.
Right now, code upon is just showing particles inside vent(red rectangle), and calculating pressure value is too massive. I wanna modify this code to make particles move outside of vent after certain pressure value.
Method of updating model is based on continuity equation, Navier-Stokes momentum equation, Energy equation & Runge-Kutta 4th method. Main problem is with type 1. Mainly, what I wanna show is particle movement after the vent is destructed. Please help me, I’m waiting for u guys advise. clear; clc; close all;
% Simulation type:
% 1 – Particle Advection
% 2 – Velocity Heat Map
% 3 – Curl Heat Map
TYPE = 1;
% Simulation parameters
s = 100; % Grid size
ar = 5; % Aspect ratio
n = 120000; % Maximum number of particles
timestep = 0.01; % Time step
% Physical constants
initial_density = 1.225; % kg/m^3 (Air at sea level)
initial_temperature = 300; % K
initial_pressure = 101325; % Pa
R = 287; % Specific gas constant for air (J/kg/K)
viscosity = 1.8e-5; % Dynamic viscosity (Pa.s)
heat_diffusion = 0.001; % Heat diffusion coefficient
% Vent properties for thermal runaway
vent_temperature = 500; % High temperature vented gas (K)
vent_density = 0.5; % Low density vented gas (kg/m^3)
vent_velocity = 1; % High velocity out of the vent (m/s)
%vent_pressure_threshold = 2 * initial_pressure; % Vent opens when pressure exceeds this value
% Initialize colormap
jetMap = colormap(jet);
negJetMap = flipud(jetMap);
% Define vent/cube vertices
a = 40;
b = 60;
c = 50;
d = 55;
% Create grid
[X, Y] = meshgrid(1:s*ar, 1:s);
% Initialize fields for compressible flow
rho = ones(s, s*ar) * initial_density; % Density
T = ones(s, s*ar) * initial_temperature; % Temperature
p = ones(s, s*ar) * initial_pressure; % Pressure
vx = zeros(s, s*ar); % Velocity in x
vy = zeros(s, s*ar); % Velocity in y
% Initial positions of particles
[px, py] = meshgrid(0:d-c, a:b);
% Store initial positions for inflow
pxo = px;
pyo = py;
% Set up figure for visualization
f = figure(1);
set(f, ‘WindowState’, ‘maximized’);
% Simulation parameters
total_time = 10; % Total simulation time (adjust this as necessary)
num_steps = total_time / timestep; % Total number of time steps
% Set up figure for visualization
f = figure(1);
set(f, ‘WindowState’, ‘maximized’);
% Main simulation loop (for a fixed number of time steps)
for step = 1:num_steps
start = tic;
vent_pressure_threshold = sum(abs(p(:))); % Vent opens when pressure exceeds this value
if max(sum(p(1:d-c, a:b))) >= vent_pressure_threshold
% Update the venting region with high-temperature, high-velocity gas
T(1:d-c, a:b) = vent_temperature; % High temperature for vented gas
rho(1:d-c, a:b) = vent_density; % Low density for vented gas
vx(1:d-c, a:b) = vent_velocity; % High velocity out of the vent in x-direction
vy(1:d-c, a:b) = 0; % No vertical velocity for now
end
% Apply boundary conditions (no-slip walls and open boundaries)
vx(1, 🙂 = 0; vy(1, 🙂 = 0; % Top boundary (no-slip)
vx(end, 🙂 = 0; vy(end, 🙂 = 0; % Bottom boundary (no-slip)
vx(:, 1) = 0; vy(:, 1) = 0; % Left boundary (no-slip)
vx(:, end) = vx(:, end-1); % Open boundary (allow gas to exit freely)
vy(:, end) = vy(:, end-1); % Open boundary (allow gas to exit freely)
% Update pressure using the equation of state (Ideal Gas Law)
p = rho .* R .* T;
% Continuity equation (mass conservation)
drho_dt = -divergence(rho .* vx, rho .* vy);
% Momentum equations for compressible Navier-Stokes (simplified)
dvx_dt = -(vx .* gradient(vx) + vy .* gradient(vx)) …
– (1 ./ rho) .* gradient(p) …
+ viscosity * del2(vx); % Viscous term
dvy_dt = -(vx .* gradient(vy) + vy .* gradient(vy)) …
– (1 ./ rho) .* gradient(p) …
+ viscosity * del2(vy);
% Energy equation (heat transfer due to venting gas) (simplified)
dT_dt = -vx .* gradient(T) – vy .* gradient(T) …
+ heat_diffusion * del2(T);
% Update fields for the next timestep(matrix..?)
rho = rho + drho_dt * timestep;
vx = vx + dvx_dt * timestep;
vy = vy + dvy_dt * timestep;
T = T + dT_dt * timestep;
% Advect velocity field using Runge-Kutta 4th order method =>입자의 속도=vx,
% vy/ 속도장=pvx, pvy
[pvx, pvy] = RK4(X, Y, vx, vy, -1);
vx = interp2(vx, pvx, pvy, ‘cubic’, 0);
vy = interp2(vy, pvx, pvy, ‘cubic’, 0);
% Visualization and display updates can remain the same
if TYPE == 1
% Advect particles using Runge-Kutta 4th order method
[px, py] = RK4(px, py, vx, vy, timestep);
% Ensure px, py remain within the grid
px = max(min(px, s*ar), 1); % Constrain px within grid range
py = max(min(py, s), 1); % Constrain py within grid range
% 벤트 영역에 있는 입자들을 벤트 외부로 이동시키기 위한 조건 추가
% 벤트 내에 있는 입자들의 위치를 벤트 외부로 업데이트
inside_vent = (px >= 1 & px <= d-c & py >= a & py <= b);
px(inside_vent) = px(inside_vent) + vent_velocity * timestep;
% 벤트 영역을 벗어난 입자들이 계속 밖으로 나갈 수 있도록 처리
[pxo, pyo] = meshgrid(0:d-c, a:b);
% Add inflow particles only if vent opens (pressure threshold exceeded)
if max(max(p(a:b, c:d))) >= vent_pressure_threshold
px = [px; pxo];
py = [py; pyo];
end
% Plot particles
scatter(px(:), py(:), 1, ‘filled’);
axis equal;
axis([0 s*ar 0 s]);
xticks([]);
yticks([]);
hold on;
% Highlight vent/cube region
rectangle(‘Position’, [0, a, d-c, b-a], ‘EdgeColor’, ‘r’, ‘LineWidth’, 2);
stop = toc(start);
FPS = 1/stop;
% Update title with simulation metrics
title(sprintf("Pressure: %.5f # Particles: %d FPS: %.2f", …
sum(abs(p(:))) / (s*ar), length(px), FPS));
hold off;
drawnow;
elseif TYPE == 2
% Visualize velocity magnitude
velocity_Mag = sqrt(vx.^2 + vy.^2);
velocity_Mag = imresize(velocity_Mag, 10, ‘bicubic’);
imagesc(velocity_Mag);
colormap(negJetMap);
xticks([]);
yticks([]);
axis equal;
stop = toc(start);
FPS = 1/stop;
title(sprintf("FPS: %.2f", FPS));
drawnow;
elseif TYPE == 3
% Visualize curl field (vorticity)
CURL = abs(curl(vx, vy));
CURL = imresize(CURL, 10, ‘bicubic’);
imagesc(CURL);
colormap(negJetMap);
xticks([]);
yticks([]);
axis equal;
drawnow;
end
end
% Function for Runge-Kutta 4th order method for advection
function [x_new, y_new] = RK4(px, py, vx, vy, h)
k1x = interp2(vx, px, py, ‘linear’, 0);
k1y = interp2(vy, px, py, ‘linear’, 0);
k2x = interp2(vx, px + h/2 * k1x, py + h/2 * k1y, ‘linear’, 0);
k2y = interp2(vy, px + h/2 * k1x, py + h/2 * k1y, ‘linear’, 0);
k3x = interp2(vx, px + h/2 * k2x, py + h/2 * k2y, ‘linear’, 0);
k3y = interp2(vy, px + h/2 * k2x, py + h/2 * k2y, ‘linear’, 0);
k4x = interp2(vx, px + h * k3x, py + h * k3y, ‘linear’, 0);
k4y = interp2(vy, px + h * k3x, py + h * k3y, ‘linear’, 0);
x_new = px + h/6 * (k1x + 2*k2x + 2*k3x + k4x);
y_new = py + h/6 * (k1y + 2*k2y + 2*k3y + k4y);
end
Hi everyone, I am struggling with making code which can simulate 2D compressible fluid which is off gas when battery thermal runaway situation. I made initial condition for particles inside the rectangle area before vent isn’t destructed. After pressure is over the certain pressure threshold, vent become destructed and particles should move outside of rectangle area.
Right now, code upon is just showing particles inside vent(red rectangle), and calculating pressure value is too massive. I wanna modify this code to make particles move outside of vent after certain pressure value.
Method of updating model is based on continuity equation, Navier-Stokes momentum equation, Energy equation & Runge-Kutta 4th method. Main problem is with type 1. Mainly, what I wanna show is particle movement after the vent is destructed. Please help me, I’m waiting for u guys advise. #2d simulation, #navier-stokes, #compressible fluid, #venting system MATLAB Answers — New Questions
Can’t change line style from plot browser in R2014b
I recently updated from R2012b to R2014b, and I’m having trouble with the plot browser and property editor for figures in R2014b. I have a figure with multiple curves (objects) that I made using a script. When I select one of the curves from the plot browser and change the line style (i.e solid line to dashed line) or change the marker using the property editor, the changes are not made. The drop-down boxes for "Line" and "Marker" are changed, but the curve itself is not changed. If I click somewhere else on the figure and then re-select the same curve, the old line style and marker settings are in the property editor. I can, however, change the line color and the line width from the property editor. My current work-around is to open the figure in my old copy of R2012b, change the line style and marker, save the figure, and then open it back in R2014b. This works, but it is not a long-term solution. Is this a bug with the new graphics in R2014b, or is there a setting I need to change in the new version of Matlab?I recently updated from R2012b to R2014b, and I’m having trouble with the plot browser and property editor for figures in R2014b. I have a figure with multiple curves (objects) that I made using a script. When I select one of the curves from the plot browser and change the line style (i.e solid line to dashed line) or change the marker using the property editor, the changes are not made. The drop-down boxes for "Line" and "Marker" are changed, but the curve itself is not changed. If I click somewhere else on the figure and then re-select the same curve, the old line style and marker settings are in the property editor. I can, however, change the line color and the line width from the property editor. My current work-around is to open the figure in my old copy of R2012b, change the line style and marker, save the figure, and then open it back in R2014b. This works, but it is not a long-term solution. Is this a bug with the new graphics in R2014b, or is there a setting I need to change in the new version of Matlab? I recently updated from R2012b to R2014b, and I’m having trouble with the plot browser and property editor for figures in R2014b. I have a figure with multiple curves (objects) that I made using a script. When I select one of the curves from the plot browser and change the line style (i.e solid line to dashed line) or change the marker using the property editor, the changes are not made. The drop-down boxes for "Line" and "Marker" are changed, but the curve itself is not changed. If I click somewhere else on the figure and then re-select the same curve, the old line style and marker settings are in the property editor. I can, however, change the line color and the line width from the property editor. My current work-around is to open the figure in my old copy of R2012b, change the line style and marker, save the figure, and then open it back in R2014b. This works, but it is not a long-term solution. Is this a bug with the new graphics in R2014b, or is there a setting I need to change in the new version of Matlab? r2014b, graphics, plot browser, property editor, line style, marker MATLAB Answers — New Questions
I want to index a element of a vector after defining it
I want to select the first element of a vector without having to store it in a variable. For example, if i want to know the smallest prime divider of a number, i want to write this
factor(56)(1)
However this is invalid. Any correct way to do this?I want to select the first element of a vector without having to store it in a variable. For example, if i want to know the smallest prime divider of a number, i want to write this
factor(56)(1)
However this is invalid. Any correct way to do this? I want to select the first element of a vector without having to store it in a variable. For example, if i want to know the smallest prime divider of a number, i want to write this
factor(56)(1)
However this is invalid. Any correct way to do this? indexing, vector MATLAB Answers — New Questions
Age Formula
Hi,
I’m looking for some help / advice.
I have a spreadsheet which hold details of patients I provide anaesthetic care for. Part of this information includes date of birth, and date of their procedure.
I’ve just tried to add a column to determine the patient’s age at time of their procedure using the formula =DATEDIF(C3,G3,”Y”) where C3 is DOB & G3 DOP.
This works fine until I have any patients aged 99 or older, when #VALUE! displays.
Thanks in anticipation, Rory
Hi, I’m looking for some help / advice. I have a spreadsheet which hold details of patients I provide anaesthetic care for. Part of this information includes date of birth, and date of their procedure. I’ve just tried to add a column to determine the patient’s age at time of their procedure using the formula =DATEDIF(C3,G3,”Y”) where C3 is DOB & G3 DOP. This works fine until I have any patients aged 99 or older, when #VALUE! displays. Thanks in anticipation, Rory Read More
Why the AIGP Credential is Crucial for AI Governance Professionals
As artificial intelligence (AI) continues to grow and evolve across industries, there is a rising need for professionals who can ensure the responsible development, deployment, and governance of AI systems. This is where the AIPP Certification Programs AIGP Exam credential becomes crucial.
Why Pursue the AIGP Designation?
Foundational Knowledge of AI Systems
The AIGP certification equips professionals with a solid understanding of AI systems, their use cases, and the ethical principles that govern their responsible use. It provides an essential foundation in how AI technology impacts various sectors and the importance of managing AI responsibly.
Legal and Regulatory Understanding
AI governance is deeply intertwined with both current and emerging laws. With an AIGP credential, professionals can demonstrate their ability to navigate legal frameworks that apply to AI systems and ensure they are governed in compliance with regulatory standards.
Comprehension of the AI Life Cycle and Risk Management
The certification also covers the AI life cycle, offering insights into how AI risks are identified, assessed, and mitigated. It prepares professionals to implement responsible governance throughout the AI development process, from inception to deployment and ongoing management.
Awareness of Unforeseen AI Issues
AI governance is not just about what we know today; it’s also about preparing for the unexpected. The AIGP credential ensures that professionals stay informed about potential risks, ethical concerns, and debated issues surrounding AI technology, allowing them to anticipate and address challenges effectively.
As artificial intelligence (AI) continues to grow and evolve across industries, there is a rising need for professionals who can ensure the responsible development, deployment, and governance of AI systems. This is where the AIPP Certification Programs AIGP Exam credential becomes crucial.Why Pursue the AIGP Designation?Foundational Knowledge of AI SystemsThe AIGP certification equips professionals with a solid understanding of AI systems, their use cases, and the ethical principles that govern their responsible use. It provides an essential foundation in how AI technology impacts various sectors and the importance of managing AI responsibly.Legal and Regulatory UnderstandingAI governance is deeply intertwined with both current and emerging laws. With an AIGP credential, professionals can demonstrate their ability to navigate legal frameworks that apply to AI systems and ensure they are governed in compliance with regulatory standards.Comprehension of the AI Life Cycle and Risk ManagementThe certification also covers the AI life cycle, offering insights into how AI risks are identified, assessed, and mitigated. It prepares professionals to implement responsible governance throughout the AI development process, from inception to deployment and ongoing management.Awareness of Unforeseen AI IssuesAI governance is not just about what we know today; it’s also about preparing for the unexpected. The AIGP credential ensures that professionals stay informed about potential risks, ethical concerns, and debated issues surrounding AI technology, allowing them to anticipate and address challenges effectively. Read More
Hello ! Sybil resistant app for Microsoft
Hello Microsoft team and community,
I’d like to introduce Humanode, a pioneering solution in decentralized verification and Sybil resistance. We’ve developed a cutting-edge biometric-based system that provides a privacy-centric alternative to traditional KYC, ensuring unique identity verification without compromising user privacy.
In today’s landscape, ensuring authenticity while respecting user data is crucial, and Humanode’s technology can complement Microsoft’s verification systems to provide a more secure, cost-effective, and scalable solution.
I’d love to connect and discuss how this could benefit Microsoft, its users, and platforms like WhatsApp and others. How can I reach the right team to present a more detailed value proposal?
Looking forward to hearing from you!
Best regards, Andrei
Hello Microsoft team and community, I’d like to introduce Humanode, a pioneering solution in decentralized verification and Sybil resistance. We’ve developed a cutting-edge biometric-based system that provides a privacy-centric alternative to traditional KYC, ensuring unique identity verification without compromising user privacy.In today’s landscape, ensuring authenticity while respecting user data is crucial, and Humanode’s technology can complement Microsoft’s verification systems to provide a more secure, cost-effective, and scalable solution.I’d love to connect and discuss how this could benefit Microsoft, its users, and platforms like WhatsApp and others. How can I reach the right team to present a more detailed value proposal?Looking forward to hearing from you!Best regards, Andrei Read More
Add custom table style in Design section of SharePoint page
I have migrated recently from SharePoint on-premise on Online with custom table layout style. Now in online I want the same custom style on Site page(classic site page). Is it possible to add my custom style in Design->Styles section on the ribbon of the page.
I have migrated recently from SharePoint on-premise on Online with custom table layout style. Now in online I want the same custom style on Site page(classic site page). Is it possible to add my custom style in Design->Styles section on the ribbon of the page. Read More
E-Mail-Bestätigung nur an Kunden möglich?
Wir möchten, dass die Bestätigungsmail nur an den Kunden, nicht auch an den zugewiesenen Mitarbeiter gesendet wird. Ist das möglich?
Wir möchten, dass die Bestätigungsmail nur an den Kunden, nicht auch an den zugewiesenen Mitarbeiter gesendet wird. Ist das möglich? Read More
Korean letters turn to # in pdf
I do Publish .m file to pdf but each Korean letters change to # in pdf. Any fix for this?I do Publish .m file to pdf but each Korean letters change to # in pdf. Any fix for this? I do Publish .m file to pdf but each Korean letters change to # in pdf. Any fix for this? m file, pdf, convert to # MATLAB Answers — New Questions
Error in SIL execution for model within a resettable subsystem
Hello,
I am trying to test my model using simulink test, by placing it within a resettable subsystem, however only the MIL mode passes and the SIL mode fails for the reset functionality with a message "Simulation Error: Subsystem Model_xxx contains referenced models, which is not supported for SIL and PIL simulations.". The model within the resettable subsystem contains 2 Unit Delay blocks with the ‘Initial Condition’ set which I want to reset. I would appreciate any hints or alternate options to test the rest functionality in SIL mode.
Thanks,
Jerome.Hello,
I am trying to test my model using simulink test, by placing it within a resettable subsystem, however only the MIL mode passes and the SIL mode fails for the reset functionality with a message "Simulation Error: Subsystem Model_xxx contains referenced models, which is not supported for SIL and PIL simulations.". The model within the resettable subsystem contains 2 Unit Delay blocks with the ‘Initial Condition’ set which I want to reset. I would appreciate any hints or alternate options to test the rest functionality in SIL mode.
Thanks,
Jerome. Hello,
I am trying to test my model using simulink test, by placing it within a resettable subsystem, however only the MIL mode passes and the SIL mode fails for the reset functionality with a message "Simulation Error: Subsystem Model_xxx contains referenced models, which is not supported for SIL and PIL simulations.". The model within the resettable subsystem contains 2 Unit Delay blocks with the ‘Initial Condition’ set which I want to reset. I would appreciate any hints or alternate options to test the rest functionality in SIL mode.
Thanks,
Jerome. simulink, sil, resettale subsystem, mil MATLAB Answers — New Questions
HELP with activating license from server for Ubuntu 22.04 R2024b
I was able to install R2024b to /usr/local/MATLAB/R2024b. I then ran /usr/local/MATLAB/R2024b/bin/ ./MathWorksProductAuthorizer.sh to pick browse for a .LIC file.
I read online to put (below) into the .LIC file.
SERVER MyServer 123456789ABC 27000
DAEMON MLM /usr/local/MATLAB/R2024b/etc/glnxa64/MLM port=XXXXXXX
However, I noticed that directory doesn’t exist nor does the MLM executable exist for R2024b. So I tried correcting it to (below). The closest thing I can find is mlMergeExecutable
SERVER MyServer 123456789ABC 27000
DAEMON MLM /usr/local/MATLAB/R2024b/bin/glnxa64/MlMergeExecutable port=XXXXXX
*Note… Our license server is usually for Windows.
What am I doing wrong since everytime I launch MATLAB, it wants me to sign in. The purpose here is to use the license server so that anyone that uses that lab computer, can obtain a license from the server. Please advise.I was able to install R2024b to /usr/local/MATLAB/R2024b. I then ran /usr/local/MATLAB/R2024b/bin/ ./MathWorksProductAuthorizer.sh to pick browse for a .LIC file.
I read online to put (below) into the .LIC file.
SERVER MyServer 123456789ABC 27000
DAEMON MLM /usr/local/MATLAB/R2024b/etc/glnxa64/MLM port=XXXXXXX
However, I noticed that directory doesn’t exist nor does the MLM executable exist for R2024b. So I tried correcting it to (below). The closest thing I can find is mlMergeExecutable
SERVER MyServer 123456789ABC 27000
DAEMON MLM /usr/local/MATLAB/R2024b/bin/glnxa64/MlMergeExecutable port=XXXXXX
*Note… Our license server is usually for Windows.
What am I doing wrong since everytime I launch MATLAB, it wants me to sign in. The purpose here is to use the license server so that anyone that uses that lab computer, can obtain a license from the server. Please advise. I was able to install R2024b to /usr/local/MATLAB/R2024b. I then ran /usr/local/MATLAB/R2024b/bin/ ./MathWorksProductAuthorizer.sh to pick browse for a .LIC file.
I read online to put (below) into the .LIC file.
SERVER MyServer 123456789ABC 27000
DAEMON MLM /usr/local/MATLAB/R2024b/etc/glnxa64/MLM port=XXXXXXX
However, I noticed that directory doesn’t exist nor does the MLM executable exist for R2024b. So I tried correcting it to (below). The closest thing I can find is mlMergeExecutable
SERVER MyServer 123456789ABC 27000
DAEMON MLM /usr/local/MATLAB/R2024b/bin/glnxa64/MlMergeExecutable port=XXXXXX
*Note… Our license server is usually for Windows.
What am I doing wrong since everytime I launch MATLAB, it wants me to sign in. The purpose here is to use the license server so that anyone that uses that lab computer, can obtain a license from the server. Please advise. license, linux, r2024b, ubuntu MATLAB Answers — New Questions
shifting a column in Matlab of CSV
Hello , I have two CSV files attached in ZIP format.one of the colums is from -1 to 1.
Is the a way in matlab to import the CSV ,ater that shift -1 to 1 coulms into 0 to 2?
adding 1 to each cell of the column?
then saving the CSV in updated form?
Thanks.Hello , I have two CSV files attached in ZIP format.one of the colums is from -1 to 1.
Is the a way in matlab to import the CSV ,ater that shift -1 to 1 coulms into 0 to 2?
adding 1 to each cell of the column?
then saving the CSV in updated form?
Thanks. Hello , I have two CSV files attached in ZIP format.one of the colums is from -1 to 1.
Is the a way in matlab to import the CSV ,ater that shift -1 to 1 coulms into 0 to 2?
adding 1 to each cell of the column?
then saving the CSV in updated form?
Thanks. csv, shift MATLAB Answers — New Questions
MS Booking does not forward invitation to clients
we’ve setup a ms booking with the following options:
but our clients do not receive an ordinary msteams invitation/appointment
they all double checked their inbox (spam / junk / intrusion / not-relevant-filter) but it seems that the appointment got lost on the way to the client…
Does someone have any ideas if that issue is client specific or a global issue?
we’ve setup a ms booking with the following options:but our clients do not receive an ordinary msteams invitation/appointmentthey all double checked their inbox (spam / junk / intrusion / not-relevant-filter) but it seems that the appointment got lost on the way to the client… Does someone have any ideas if that issue is client specific or a global issue? Read More
Changed and missing Shortcut key in Swedish version of Word
Hi
Since last week the shortcut key for Bold is changed in the Swedish version of Word.
Ctrl+F has changed to Ctrl+B.
It has always been Ctrl+F for “Fet” in Swedish and it has now changed to Ctrl+B, the same as in English version of Word for “Bold”.
In English version of Word does the shortcut key Ctrl+F opens the “Navigations panel” for “Seach” and in Swedish version is has been Ctrl+B to open the “Navigations panel”.
But now there is no shortcut key at all, to open the “Navigations panel” in Swedish version of Word anymore.
The is no change of the shortcut key for Bold in Word Online and the other desktop Office programs, Excel, Power Point, Outlook, OneNote and Publisher. My colleges have also tested and have the same problem in Word only.
Word version 2409 (version 18025.20104)
In english version of Word e shortcut key Ctrl+F opens the Navigations panel for Seach and in Swedish version is has been
Version 2409 (version 18025.20104 Klicka-och-kör)
HiSince last week the shortcut key for Bold is changed in the Swedish version of Word. Ctrl+F has changed to Ctrl+B. It has always been Ctrl+F for “Fet” in Swedish and it has now changed to Ctrl+B, the same as in English version of Word for “Bold”. In English version of Word does the shortcut key Ctrl+F opens the “Navigations panel” for “Seach” and in Swedish version is has been Ctrl+B to open the “Navigations panel”. But now there is no shortcut key at all, to open the “Navigations panel” in Swedish version of Word anymore. The is no change of the shortcut key for Bold in Word Online and the other desktop Office programs, Excel, Power Point, Outlook, OneNote and Publisher. My colleges have also tested and have the same problem in Word only. Word version 2409 (version 18025.20104) In english version of Word e shortcut key Ctrl+F opens the Navigations panel for Seach and in Swedish version is has been Version 2409 (version 18025.20104 Klicka-och-kör) Read More
Property name (guid / namespace) scope and rules for custom single value extended properties
Hello,
To develop an application using the API Microsoft GRAPH to import calendar events from an other corporate application (via data in an ICS file) and be able to update/delete them in the future,
i need to add a custom extended property on events and intend to use a “named” “single-value extended properties” as explained in extended properties overview , with a property identifiers in the 0x8000-0xfffe range as in the example :
“{type} {guid} Name {name}” “String {8ECCC264-6880-4EBE-992F-8888D2EEAA1D} Name TestProperty” Identifies a property by the namespace (the GUID) it belongs to, and a string name.
The MAPI Property Identifier Overview states that :
Beyond 0x8000 is the range for what is known as named properties, or properties that include a 128-bit globally unique identifier (GUID) and either a Unicode character string or 32-bit numeric value. Clients can use named properties to customize their property set
As a new developper in Office365 environment, the GUID generation and its scope in office365 are not quite clear to me :
Does it means that we are free to use any 128-bit GUID/Namespace in the 0x8000 range to set a custom named property ?What is the scope of the GUID/namespace in that context ? Is it limited to my graph client application or shared with others ?Even if the conflict risk looks weak, is there a method to check/generate my GUID ? or to get some GUIDs already used somewhere that could collide with the one i am using ?
Regards,
Hello, To develop an application using the API Microsoft GRAPH to import calendar events from an other corporate application (via data in an ICS file) and be able to update/delete them in the future,i need to add a custom extended property on events and intend to use a “named” “single-value extended properties” as explained in extended properties overview , with a property identifiers in the 0x8000-0xfffe range as in the example :”{type} {guid} Name {name}” “String {8ECCC264-6880-4EBE-992F-8888D2EEAA1D} Name TestProperty” Identifies a property by the namespace (the GUID) it belongs to, and a string name.The MAPI Property Identifier Overview states that :Beyond 0x8000 is the range for what is known as named properties, or properties that include a 128-bit globally unique identifier (GUID) and either a Unicode character string or 32-bit numeric value. Clients can use named properties to customize their property set As a new developper in Office365 environment, the GUID generation and its scope in office365 are not quite clear to me :Does it means that we are free to use any 128-bit GUID/Namespace in the 0x8000 range to set a custom named property ?What is the scope of the GUID/namespace in that context ? Is it limited to my graph client application or shared with others ?Even if the conflict risk looks weak, is there a method to check/generate my GUID ? or to get some GUIDs already used somewhere that could collide with the one i am using ? Regards, Read More